{% macro listing_card() %} {% set index_path = current_path ~ "_index.md" | trim_start_matches(pat="/") %} {% set index = get_section(path=index_path) %} {% for page in index.pages %}
{{ page.title }} {{ page.description }}
{% if page.taxonomies.status %} {% for state in page.taxonomies.status %} {{ state }} {% endfor %} {% endif %} {% if page.taxonomies.packaged_in %} {% set distrocount = page.taxonomies.packaged_in | length %} {% if distrocount > 3 %}
available in {{ distrocount }} distros{% endif %} {% for distribution in page.taxonomies.packaged_in %} {{ distribution|title()|replace(from="_",to=" ")|replace(from="3 ",to="3.")|replace(from="Archlinuxarm",to="Arch Linux ARM")|replace(from="Aur",to="AUR")|replace(from="4 ",to="4.") |replace(from="Postmarketos",to="postmarketOS")|replace(from="Gnuguix",to="GNU Guix")|replace(from="22 ",to="22.")|replace(from="Opensuse t",to="openSUSE T")|replace(from="Pureos",to="PureOS") }} {% endfor %} {% if distrocount > 3 %}
{% endif %} {% endif %} {% if page.taxonomies.services %} {% for service in page.taxonomies.services %} {{ service }} {% endfor %} {% endif %} {% for category in page.taxonomies.categories %} {{ category }} {% endfor %} {% if page.taxonomies.frameworks %} {% for framework in page.taxonomies.frameworks %} {{ framework }} {% endfor %} {% endif %} {% for compatibility in page.taxonomies.mobile_compatibility %} {{ compatibility }} {% endfor %}
{% endfor %} {% endmacro %}