Files
cryptoanarchywiki.github.io/_includes/index_section.html
2018-05-30 23:38:06 +02:00

24 lines
800 B
HTML

{% if include.title %}
<h2 id="{{ include.title | downcase | replace: ' ', '-' | replace: '&', 'and' }}">{{ include.title }}</h2>
{% endif %}
{% if include.description %}
{{ include.description }}
{% endif %}
<ul>
{% assign items = site[include.collection_name] | sort: 'order' %}
{% for item in items %}
<li>
{% if item.link-date-prefix %}
{{ item.link-date-prefix }} -
{% endif %}
{% if item.external_link == true %}
<a href="{{ item.external_url }}">{{ item.title }}</a>
{% elsif item.no_content == true %}
{{ item.title }}
{% else %}
<a href="{{ item.permalink }}">{{ item.title }}</a>
{% endif %}
</li>
{% endfor %}
</ul>