We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b015a7e commit 24ad9c5Copy full SHA for 24ad9c5
assets/minima-social-icons.liquid
@@ -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