|
13 | 13 | <meta property="og:title" content="<%= I18n.t(:'meta.index.og.title').strip %>"> |
14 | 14 | <meta property="og:description" content="<%= I18n.t(:'meta.index.og.description').strip %>"> |
15 | 15 | <meta property="og:image" content="https://www.bitcoincash.org/img/bitcoincash-twitter.webp"> |
16 | | - <%- if ['ar', 'fa'].include?(I18n.locale.to_s.split('-').first) -%> |
| 16 | + <%- if ['ar', 'fa'].include?(I18n.locale.to_s.split('-').first) %> |
17 | 17 | <style> |
18 | 18 | section { direction: rtl; } |
19 | 19 | </style> |
20 | | - <%- end -%> |
21 | | - <link rel="preconnect" href="https://fonts.gstatic.com" /> |
22 | | - <link href="/css/deps.min.css?v=<%= Digest::SHA256.file 'html/css/deps.min.css' %>" rel="stylesheet" type="text/css" media="all" /> |
23 | | - <link href="/css/theme.min.css?v=<%= Digest::SHA256.file 'html/css/theme.min.css' %>" rel="stylesheet" type="text/css" media="all" /> |
24 | | - <link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet" type="text/css" media="all" /> |
| 20 | + <%- end %> |
| 21 | + <link rel="preconnect" href="https://fonts.gstatic.com"> |
| 22 | + <link href="/css/deps.min.css?v=<%= Digest::SHA256.file 'html/css/deps.min.css' %>" rel="stylesheet" type="text/css" media="all"> |
| 23 | + <link href="/css/theme.min.css?v=<%= Digest::SHA256.file 'html/css/theme.min.css' %>" rel="stylesheet" type="text/css" media="all"> |
| 24 | + <link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet" type="text/css" media="all"> |
25 | 25 | <script async src="https://www.googletagmanager.com/gtag/js?id=G-4P1RG1J9TQ"></script> |
26 | 26 | <script> |
27 | 27 | window.dataLayer = window.dataLayer || []; |
|
55 | 55 | <span><%= I18n.t(:'sections.wallets').strip %></span> |
56 | 56 | </a> |
57 | 57 | </li> |
58 | | - <%- if !I18n.t(:'content.why').is_a?(String) -%> |
| 58 | + <%- if !I18n.t(:'content.why').is_a?(String) %> |
59 | 59 | <li> |
60 | 60 | <a href="#why" data-nav-section="why" class="inner-link"> |
61 | 61 | <span><%= I18n.t(:'sections.benefits').strip %></span> |
62 | 62 | </a> |
63 | 63 | </li> |
64 | | - <%- else -%> |
| 64 | + <%- else %> |
65 | 65 | <li> |
66 | 66 | <a href="#why" data-nav-section="faq" class="inner-link"> |
67 | 67 | <span><%= I18n.t(:'sections.faq').strip %></span> |
68 | 68 | </a> |
69 | 69 | </li> |
70 | | - <%- end -%> |
| 70 | + <%- end %> |
71 | 71 | <li> |
72 | 72 | <a href="#nodes" data-nav-section="nodes" class="inner-link"> |
73 | 73 | <span><%= I18n.t(:'sections.nodes').strip %></span> |
|
95 | 95 | <%= I18n.t(:'sections.exchanges').strip %> |
96 | 96 | </a> |
97 | 97 | </li> |
98 | | - <%- if I18n.exists?(:'sections.graphics') -%> |
| 98 | + <%- if I18n.exists?(:'sections.graphics') %> |
99 | 99 | <li> |
100 | 100 | <a href="graphics/" class="external"> |
101 | 101 | <%= I18n.t(:'sections.graphics').strip %> |
102 | 102 | </a> |
103 | 103 | </li> |
104 | | - <%- end -%> |
| 104 | + <%- end %> |
105 | 105 | </ul> |
106 | 106 | </div> |
107 | 107 | </div> |
|
118 | 118 | I18n.available_locales.map do |locale| |
119 | 119 | [locale, I18n.t(:language, :locale => locale).strip] unless locale == :tl |
120 | 120 | end.compact.sort_by { |pair| pair[1] }.each_slice(8) do |group| |
121 | | - -%> |
| 121 | + %> |
122 | 122 | <ul class="menu-vertical"> |
123 | | - <%- group.each do |pair| -%> |
| 123 | + <%- group.each do |pair| %> |
124 | 124 | <li> |
125 | 125 | <a href="/<%= pair[0].to_s.downcase %>/" class="external"> |
126 | 126 | <%= pair[1] %> |
127 | 127 | </a> |
128 | 128 | </li> |
129 | | - <%- end -%> |
| 129 | + <%- end %> |
130 | 130 | </ul> |
131 | | - <%- end -%> |
| 131 | + <%- end %> |
132 | 132 | </div> |
133 | 133 | </div> |
134 | 134 | </div> |
|
292 | 292 | </div> |
293 | 293 | </div> |
294 | 294 | </section> |
295 | | - <%- if !I18n.t(:'content.faq').is_a?(String) -%> |
| 295 | + <%- if !I18n.t(:'content.faq').is_a?(String) %> |
296 | 296 | <a href="#" id="faq"></a> |
297 | 297 | <section class="space--xxs" id="faq-section" data-section="faq"> |
298 | 298 | <div class="container"> |
|
306 | 306 | <% I18n.t(:'content.faq').each do |qa| %><%= ' ' * 16 %> |
307 | 307 | <p class="question"><%= qa[:question].strip %></p> |
308 | 308 | <%= qa[:answer].map { |a| "<p>#{a.strip}</p>" }.join("\n#{' ' * 14}") %> |
309 | | - <%- end -%> |
| 309 | + <%- end %> |
310 | 310 | </div> |
311 | 311 | </div> |
312 | 312 | </div> |
313 | 313 | </section> |
314 | | - <%- end -%> |
| 314 | + <%- end %> |
315 | 315 | <a href="#" id="why"></a> |
316 | | - <%- if !I18n.t(:'content.why').is_a?(String) -%> |
| 316 | + <%- if !I18n.t(:'content.why').is_a?(String) %> |
317 | 317 | <section class="space--xxs" id="why-section" data-section="why"> |
318 | 318 | <div class="container"> |
319 | 319 | <div class="row text-center"> |
|
323 | 323 | </div> |
324 | 324 | <div class="row"> |
325 | 325 | <div class="col-xs-12"> |
326 | | - <%- I18n.t(:'content.why').each do |qa| -%> |
| 326 | + <%- I18n.t(:'content.why').each do |qa| %> |
327 | 327 | <p class="question"><%= qa[:benefit].strip %></p> |
328 | 328 | <%= qa[:descrip].map { |a| "<p>#{a.strip}</p>" }.join("\n#{' ' * 14}") %> |
329 | | - <%- end -%> |
| 329 | + <%- end %> |
330 | 330 | </div> |
331 | 331 | </div> |
332 | 332 | </div> |
333 | 333 | </section> |
334 | | - <%- end -%> |
335 | | - <%- if !I18n.t(:'content.benefits').is_a?(String) -%> |
| 334 | + <%- end %> |
| 335 | + <%- if !I18n.t(:'content.benefits').is_a?(String) %> |
336 | 336 | <section class="space--xxs" id="merchant-benefits-section" data-section="benefits"> |
337 | 337 | <div class="container"> |
338 | 338 | <div class="row text-center"> |
|
342 | 342 | </div> |
343 | 343 | <div class="row"> |
344 | 344 | <div class="col-xs-12"> |
345 | | - <%- I18n.t(:'content.benefits').each do |qa| -%> |
| 345 | + <%- I18n.t(:'content.benefits').each do |qa| %> |
346 | 346 | <p class="question"><%= qa[:benefit].strip %></p> |
347 | 347 | <%= qa[:descrip].map { |a| "<p>#{a.strip}</p>" }.join("\n#{' ' * 14}") %> |
348 | | - <%- end -%> |
| 348 | + <%- end %> |
349 | 349 | </div> |
350 | 350 | </div> |
351 | 351 | </div> |
352 | 352 | </section> |
353 | | - <%- end -%> |
354 | | - <%- if !I18n.t(:'content.history').is_a?(String) -%> |
| 353 | + <%- end %> |
| 354 | + <%- if !I18n.t(:'content.history').is_a?(String) %> |
355 | 355 | <section class="space--xxs" id="history-section" data-section="history"> |
356 | 356 | <div class="container"> |
357 | 357 | <div class="row text-center"> |
|
366 | 366 | </div> |
367 | 367 | </div> |
368 | 368 | </section> |
369 | | - <%- end -%> |
370 | | - <%- if !I18n.t(:'content.development').is_a?(String) -%> |
| 369 | + <%- end %> |
| 370 | + <%- if !I18n.t(:'content.development').is_a?(String) %> |
371 | 371 | <section class="space--xxs" id="development-section" data-section="development"> |
372 | 372 | <div class="container"> |
373 | 373 | <div class="row text-center"> |
|
382 | 382 | </div> |
383 | 383 | </div> |
384 | 384 | </section> |
385 | | - <%- end -%> |
| 385 | + <%- end %> |
386 | 386 | <a href="#" id="nodes"></a> |
387 | 387 | <section class="space--xxs text-center gray border-bottom" id="nodes-section" data-section="nodes"> |
388 | 388 | <div class="container nodes"> |
|
0 commit comments