monero-site/community/merchants/index.md
erciccione 1d534a4a04
Remove 'untranslated' snippet logic from all pages (except where it's called using 'include')
It's not compatible with Weblate and will be not needed after the migration
2020-01-27 12:26:31 +01:00

2 KiB

layout title permalink
custom titles.merchants /community/merchants/index.html

{% t global.lang_tag %}

{% t merchants.intro1 %} {% t merchants.intro2 %} {% t merchants.intro3 %}

{% assign itemCount = site.data.merchants | size %} {% assign headerRow = itemCount | divided_by: 5.0 | ceil | times: 1.0 %} {% assign itemInRow = itemCount | divided_by: headerRow | ceil %}

{% assign Item_processed = 0 %}

{% for toplevel in site.data.merchants %} {% assign isHeader = Item_processed | modulo: itemInRow %} {% if isHeader == 0 %}
{% endif %}

{{ toplevel.category }}

{% assign Item_processed = Item_processed | plus: 1 %} {% assign isHeader = Item_processed | modulo: itemInRow %} {% if isHeader == 0 %}
{% if Item_processed != itemCount %} {% assign headerRow = itemCount | minus: Item_processed | divided_by: 5.0 | ceil | times: 1.0 %} {% assign itemInRow = itemCount | minus: Item_processed | divided_by: headerRow | ceil %} {% endif %} {% endif %} {% endfor %}

{% for toplevel in site.data.merchants %}

{{toplevel.category}}

{% assign sortedMerchants = toplevel.merchants | sort: 'name' %} {% for merchants in sortedMerchants %} {% endfor %}
{%endfor%}

{% t merchants.disclaimer %}