From 6ce0bb9a8f9fd7d169cbb414a9537d68c5290aae Mon Sep 17 00:00:00 2001 From: Prefetch Date: Fri, 14 Oct 2022 23:25:28 +0200 Subject: Initial commit after migration from Hugo --- source/_layouts/blog.html | 8 ++++++++ source/_layouts/category.html | 34 ++++++++++++++++++++++++++++++++++ source/_layouts/concept.html | 21 +++++++++++++++++++++ source/_layouts/default.html | 12 ++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 source/_layouts/blog.html create mode 100644 source/_layouts/category.html create mode 100644 source/_layouts/concept.html create mode 100644 source/_layouts/default.html (limited to 'source/_layouts') diff --git a/source/_layouts/blog.html b/source/_layouts/blog.html new file mode 100644 index 0000000..4049297 --- /dev/null +++ b/source/_layouts/blog.html @@ -0,0 +1,8 @@ +--- +layout: "default" +--- + +

{{ page.title }}

+ +{{ content | toc_only }} +{{ content | inject_anchors }} diff --git a/source/_layouts/category.html b/source/_layouts/category.html new file mode 100644 index 0000000..8393bd6 --- /dev/null +++ b/source/_layouts/category.html @@ -0,0 +1,34 @@ +--- +layout: "default" +--- + +

{{ page.title }}

+ +{% assign by_letter = site.pages + | where_exp: "item", "item.layout == 'concept'" + | where_exp: "item", "item.categories contains page.title" + | group_by_exp: "item", "item.title | truncate: 1, ''" + | sort: "name" +%} + +

+This is an alphabetical list of the concepts in this category. +

+ +
+‐ +{% for letter in by_letter %} +{{ letter.name }} +‐ +{% endfor %} +
+ +{% for letter in by_letter %} +

{{ letter.name }}

+ +{% endfor %} diff --git a/source/_layouts/concept.html b/source/_layouts/concept.html new file mode 100644 index 0000000..7a0849c --- /dev/null +++ b/source/_layouts/concept.html @@ -0,0 +1,21 @@ +--- +layout: "default" +--- + +

+{% assign categories = page.categories | sort %} +Categories: +{% for category in categories %} +{% assign url = category | slugify %} +{{ category }}{% if forloop.last == false %},{% endif %}{% endfor %}. +

+ +

{{ page.title }}

+ +{% capture markdown_after_katex %} +{% katexmm %} +{{ page.content }} +{% endkatexmm %} +{% endcapture %} + +{{ markdown_after_katex | markdownify }} diff --git a/source/_layouts/default.html b/source/_layouts/default.html new file mode 100644 index 0000000..2f1cac2 --- /dev/null +++ b/source/_layouts/default.html @@ -0,0 +1,12 @@ + + + +{% include preamble.html %} +{{ page.title }} | {{ site.title }} + + +{% include navigation.html %} +{{ content }} +{% include footer.html %} + + -- cgit v1.2.3