aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-12 01:04:48 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-12 01:04:48 +0200
commit8e6654ddc8a5801ac5c73488e45635e15b575774 (patch)
tree133dfe197baccac3e2c0169301e1b42be05f2a10
parentd854b9c47bced5067b4e75f18f6f3068431ccdcf (diff)
downloadblog-8e6654ddc8a5801ac5c73488e45635e15b575774.tar.gz
blog-8e6654ddc8a5801ac5c73488e45635e15b575774.zip
added "tags" taxonomy
-rw-r--r--config.toml8
-rw-r--r--templates/tags/list.html14
-rw-r--r--templates/tags/single.html16
3 files changed, 36 insertions, 2 deletions
diff --git a/config.toml b/config.toml
index f9c51ce..94e4e3f 100644
--- a/config.toml
+++ b/config.toml
@@ -5,6 +5,10 @@ build_search_index = true
title = "memzero"
description = "Cow says .*"
+taxonomies = [
+ { name = "tags" },
+]
+
theme = "hyde"
[markdown]
@@ -13,8 +17,8 @@ highlight_code = true
[extra]
hyde_links = [
- {url = "https://github.com/johannst", name = "GitHub"},
- {url = "https://twitter.com/xjohannst", name = "Twitter"},
+ { url = "https://github.com/johannst", name = "GitHub" },
+ { url = "https://twitter.com/xjohannst", name = "Twitter" },
]
#hyde_theme = "theme-base-0d"
diff --git a/templates/tags/list.html b/templates/tags/list.html
new file mode 100644
index 0000000..9fdee7e
--- /dev/null
+++ b/templates/tags/list.html
@@ -0,0 +1,14 @@
+{% extends "index.html" %}
+
+{% block title %}Tags{% endblock title%}
+
+{% block content %}
+<h1>Tags</h1>
+<ul>
+ {% for term in terms %}
+ <li>
+ <a href="{{ term.permalink }}">#{{ term.name }}</a>
+ </li>
+ {% endfor %}
+</ul>
+{% endblock content %}
diff --git a/templates/tags/single.html b/templates/tags/single.html
new file mode 100644
index 0000000..4062e4a
--- /dev/null
+++ b/templates/tags/single.html
@@ -0,0 +1,16 @@
+{% extends "index.html" %}
+
+{% block title %}#{{ term.name }}{% endblock title%}
+
+{% block content %}
+<h1>Tag: #{{ term.name }}</h1>
+
+<ul>
+ {% for page in term.pages %}
+ <li>
+ <a href="{{ page.permalink }}">{{ page.title }}</a>
+ </li>
+ {% endfor %}
+</ul>
+
+{% endblock content %}