mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-13 11:56:33 +02:00
2.2 KiB
2.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 %}
{% 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 %}
{{ toplevel.category }}
{% assign Item_processed = Item_processed | plus: 1 %} {% assign isHeader = Item_processed | modulo: itemInRow %} {% if isHeader == 0 %}{% for toplevel in site.data.merchants %}
{{toplevel.category}}
{% assign sortedMerchants = toplevel.merchants | sort: 'name' %}
{% for merchants in sortedMerchants %}
{% endfor %}
{% t merchants.disclaimer %}
{% t global.untranslated %} README.