bulma/docs/_includes/components/links.html

27 lines
802 B
HTML
Raw Normal View History

2018-04-09 19:19:29 +00:00
<nav class="bd-links">
{% if include.category_id %}
{% assign category_id = include.category_id %}
{% assign category_links = site.data.links.categories[category_id] %}
{% else %}
{% assign category_links = site.data.links.categories %}
{% endif %}
{% for link_id in category_links %}
{% if include.category_id %}
{% assign link = site.data.links.by_id[link_id] %}
{% else %}
{% assign thingy = link_id[0] %}
{% assign link = site.data.links.by_id[thingy] %}
{% endif %}
<a class="bd-link" href="{{ site.url }}{{ link.path }}">
2018-04-09 20:16:50 +00:00
<h2 class="bd-link-name">
<span class="bd-link-counter"></span>
{{ link.name }}
</h2>
<p class="bd-link-subtitle">
{{ link.subtitle }}
</p>
2018-04-09 19:19:29 +00:00
</a>
{% endfor %}
</nav>