Skip to content

Commit 24ad9c5

Browse files
Add files via upload
- minima-social-icons-liquid
1 parent b015a7e commit 24ad9c5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

assets/minima-social-icons.liquid

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
permalink: /assets/minima-social-icons.svg
3+
---
4+
5+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
6+
{% comment %}
7+
Iterate through {{ site.minima.social_links }} and render platform related SVG-symbol
8+
unless the platform is "rss" because we need the "rss" symbol for the `Subscribe` link
9+
in the footer and therefore inject the "rss" icon outside the iteration loop.
10+
{% endcomment %}
11+
{% for entry in site.minima.social_links %}
12+
{%- assign symbol_id = entry.platform -%}
13+
{%- unless symbol_id == "rss" -%}
14+
{%- include svg_symbol.html key = symbol_id -%}
15+
{% endunless %}
16+
{%- endfor -%}
17+
{%- include svg_symbol.html key = "rss" -%}
18+
</svg>

0 commit comments

Comments
 (0)