forked from jgthms/bulma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinks.html
More file actions
28 lines (27 loc) · 795 Bytes
/
Copy pathlinks.html
File metadata and controls
28 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<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 %}
{%
include elements/link.html
path=link.path
color=link.color
icon_brand=link.icon_brand
icon_regular=link.icon_regular
icon=link.icon
name=link.name
subtitle=link.subtitle
new=link.new
%}
{% endfor %}
</nav>