From 8628a4ae2e7c8998c8d2ffe2ecc51f2624aa66b1 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sat, 18 Nov 2023 12:15:16 +0200 Subject: Massive changes - migrating to Hermit with a few tweaks. Changes to be committed: new file: .gitignore modified: .gitmodules modified: config.toml new file: content/about.md deleted: content/blog/_index.md deleted: content/blog/first.md deleted: content/blog/second.md new file: content/posts/_index.md new file: content/posts/code_test.md new file: content/posts/good_first_post.md new file: content/posts/later_posts.md new file: content/posts/typography.md deleted: description deleted: index.html deleted: public/blog/first/index.html deleted: public/blog/index.html deleted: public/blog/second/index.html deleted: public/elasticlunr.min.js deleted: public/search_index.en.js deleted: public/typography.css new file: sass/_animate.scss new file: sass/_icons.scss new file: sass/_normalize.scss new file: sass/_predefined.scss new file: sass/_syntax.scss new file: sass/style.scss new file: static/favicon-32x32.png new file: static/favicon.ico new file: static/js/main.js modified: templates/404.html deleted: templates/base.html deleted: templates/blog-page.html deleted: templates/blog.html new file: templates/index.html new file: templates/macros.html new file: templates/page.html new file: templates/section.html new file: templates/tags/list.html new file: templates/tags/single.html new file: themes/404.html new file: themes/config.toml deleted: themes/hermit_zola --- templates/tags/list.html | 54 +++++++++++++++++++++++++++++++++++ templates/tags/single.html | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 templates/tags/list.html create mode 100644 templates/tags/single.html (limited to 'templates/tags') diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..8f9a35f --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,54 @@ +{% extends "index.html" %} {% import "macros.html" as macros %} {% block header +%} + +
+ +
+{% endblock header %} {% block title %} {% endblock title %} {% block main %} + +
+ {% block content %} + {% for tag in terms %} +
+

{{ tag.name }}

+

+ {{ tag.pages | length }} post{{ tag.pages | length | pluralize }} +

+
+ {% endfor %} + {% endblock content %} +
+ +{% endblock main %} {% block footer %} {{ macros::footer() }} {% endblock footer +%} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..e04b872 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,71 @@ +{% extends "index.html" %} {% import "macros.html" as macros %} {% block header +%} + +
+ +
+{% endblock header %} {% block title %} {% endblock title %} {% block main %} + +
+

{{ term.name }}

+ {% for year, pages in term.pages | group_by(attribute="year") %} +
+
{{ year }}
+ +
+ {% endfor %} +
+ +{% endblock main %} {% block footer %} {{ macros::footer() }} {% endblock footer +%} -- cgit v1.2.3