aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/_tags.json10
-rw-r--r--src/tags.liquid11
2 files changed, 11 insertions, 10 deletions
diff --git a/src/_tags.json b/src/_tags.json
deleted file mode 100644
index 3e698f20..00000000
--- a/src/_tags.json
+++ /dev/null
@@ -1,10 +0,0 @@
----
----
-{ {% for icon in site.icons %}
-{% assign slug-tags = icon.slug | split: '-' %}{% assign tags = slug-tags | concat: icon.tags %} "{{ icon.slug }}": {
- "category": "{{ icon.category }}",
- "tags": ["{{ tags | join: '", "' }}"],
- "version": "{{ icon.version }}",
- "unicode": "{{ icon.unicode }}"
- }{% unless forloop.last %}, {% endunless %}{% endfor %}
-}
diff --git a/src/tags.liquid b/src/tags.liquid
new file mode 100644
index 00000000..bc17a103
--- /dev/null
+++ b/src/tags.liquid
@@ -0,0 +1,11 @@
+---
+permalink: tags.json
+---
+{ {% for icon in collections.icons %}
+{% assign slug-tags = icon.fileSlug | split: '-' %}{% assign tags = slug-tags | concat: icon.data.tags %} "{{ icon.fileSlug }}": {
+ "category": "{{ icon.data.category }}",
+ "tags": ["{{ tags | join: '", "' }}"],
+ "version": "{{ icon.data.version }}",
+ "unicode": "{{ icon.data.unicode }}"
+ }{% unless forloop.last %}, {% endunless %}{% endfor %}
+}