summaryrefslogtreecommitdiff
path: root/tags.liquid
diff options
context:
space:
mode:
Diffstat (limited to 'tags.liquid')
-rw-r--r--tags.liquid30
1 files changed, 30 insertions, 0 deletions
diff --git a/tags.liquid b/tags.liquid
new file mode 100644
index 0000000..039b5f7
--- /dev/null
+++ b/tags.liquid
@@ -0,0 +1,30 @@
+---
+layout: default
+permalink: /tags.html
+---
+
+<div class="column">
+ <h1 class="mb-4">
+ {{ site.data[site.active_lang].strings.global.tags }}
+ </h1>
+ {% capture site_tags %}
+ {% for tag in site.tags %}
+ {{ tag | first }}{% unless forloop.last %},{% endunless %}
+ {% endfor %}
+ {% endcapture %}
+ {% assign tags_list = site_tags | split:',' | sort_natural %}
+ {% for tag in tags_list %}
+ <div class="columns is-vcentered">
+ <div class="column is-1">
+ <svg class="tag-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-tag-fill" viewBox="0 0 16 16">
+ <path d="M2 1a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7-7A1 1 0 0 0 6.586 1zm4 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
+ </svg>
+ </div>
+ <div class="column">
+ <a class="tag-name" href="/tags/{{ tag | slugify: "latin" }}" >
+ {{ tag }}
+ </a>
+ </div>
+ </div>
+ {% endfor %}
+</div>