bulma/docs/_includes/components/links.html

29 lines
795 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 %}
2018-04-10 21:50:18 +00:00
{%
include elements/link.html
2020-06-07 13:15:06 +00:00
path=link.path
2018-04-10 21:50:18 +00:00
color=link.color
icon_brand=link.icon_brand
icon_regular=link.icon_regular
icon=link.icon
name=link.name
subtitle=link.subtitle
2020-09-27 10:29:35 +00:00
new=link.new
2018-04-10 21:50:18 +00:00
%}
2018-04-09 19:19:29 +00:00
{% endfor %}
</nav>