monero-site/community/merchants/index.md

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 %}

{{ 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 %}

{% t global.untranslated %} README.