From 2e90f71d547dd9294a26861b66b6344bc49ab9af Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 17 Dec 2022 22:07:08 +0100 Subject: theme: change to after-dark --- .gitmodules | 3 + config.toml | 24 ++++++- content/_index.md | 1 + overlays/hyde/templates/index.html | 104 +++++++++++++++++++++++++++++++ overlays/hyde/templates/tags/list.html | 14 +++++ overlays/hyde/templates/tags/single.html | 16 +++++ templates/index.html | 104 ------------------------------- templates/tags/list.html | 14 ----- templates/tags/single.html | 16 ----- themes/after-dark | 1 + 10 files changed, 160 insertions(+), 137 deletions(-) create mode 100644 overlays/hyde/templates/index.html create mode 100644 overlays/hyde/templates/tags/list.html create mode 100644 overlays/hyde/templates/tags/single.html delete mode 100644 templates/index.html delete mode 100644 templates/tags/list.html delete mode 100644 templates/tags/single.html create mode 160000 themes/after-dark diff --git a/.gitmodules b/.gitmodules index c1f2100..237bb4b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/hyde"] path = themes/hyde url = https://github.com/getzola/hyde.git +[submodule "themes/after-dark"] + path = themes/after-dark + url = https://github.com/getzola/after-dark.git diff --git a/config.toml b/config.toml index 8acf8d3..dce350b 100644 --- a/config.toml +++ b/config.toml @@ -2,11 +2,13 @@ base_url = "https://blog.memzero.de" #base_url = "https://memzero.de/blog" title = "memzero" -description = "Cow says .*" +#description = "Cow says .*" -theme = "hyde" +#theme = "hyde" +theme = "after-dark" taxonomies = [ + { name = "categories" }, { name = "tags" }, ] @@ -16,8 +18,11 @@ build_search_index = true [markdown] highlight_code = true # https://www.getzola.org/documentation/getting-started/configuration/#syntax-highlighting -highlight_theme = "OneHalfLight" +# -- light +#highlight_theme = "OneHalfLight" #highlight_theme = "Tomorrow" +# -- dark +highlight_theme = "one-dark" [extra] hyde_links = [ @@ -27,4 +32,17 @@ hyde_links = [ ] #hyde_theme = "theme-base-0d" +author = "Johannes Stoelp" +after_dark_menu = [ + { url = "$BASE_URL/", name = "Posts" }, + { url = "$BASE_URL/tags", name = "Tags" }, + { url = "https://github.com/johannst", name = "GitHub" }, + { url = "https://twitter.com/xjohannst", name = "Twitter" }, + { url = "https://memzero.de", name = "About" }, +] +after_dark_title = "blog.memzero.de" + +[link_checker] +external_level = "error" + # vim:ft=config diff --git a/content/_index.md b/content/_index.md index 8bc0069..e9dbbc0 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,3 +1,4 @@ +++ sort_by = "date" +paginate_by = 25 +++ diff --git a/overlays/hyde/templates/index.html b/overlays/hyde/templates/index.html new file mode 100644 index 0000000..c1cd4e8 --- /dev/null +++ b/overlays/hyde/templates/index.html @@ -0,0 +1,104 @@ + + + + + + + + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + + + + + + + {% if config.generate_feed %} + + {% endif %} + + {% block extra_head %} + {% endblock extra_head %} + + + + {% block sidebar %} + + {% endblock sidebar %} + + +
+ + {% block content %} +
+ + {% for page in section.pages %} + +
+

+ + {{ page.title }} + +

+ + + + + {% if page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} + #{{ tag }} + {% endfor %} + {% endif %} + + +
+ {% endfor %} +
+ {% endblock content %} +
+ + +
+
+
+ + + + + + + + diff --git a/overlays/hyde/templates/tags/list.html b/overlays/hyde/templates/tags/list.html new file mode 100644 index 0000000..9fdee7e --- /dev/null +++ b/overlays/hyde/templates/tags/list.html @@ -0,0 +1,14 @@ +{% extends "index.html" %} + +{% block title %}Tags{% endblock title%} + +{% block content %} +

Tags

+ +{% endblock content %} diff --git a/overlays/hyde/templates/tags/single.html b/overlays/hyde/templates/tags/single.html new file mode 100644 index 0000000..4062e4a --- /dev/null +++ b/overlays/hyde/templates/tags/single.html @@ -0,0 +1,16 @@ +{% extends "index.html" %} + +{% block title %}#{{ term.name }}{% endblock title%} + +{% block content %} +

Tag: #{{ term.name }}

+ + + +{% endblock content %} diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index c1cd4e8..0000000 --- a/templates/index.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - - - - {% block title %}{{ config.title }}{% endblock title %} - - - - - - - - {% if config.generate_feed %} - - {% endif %} - - {% block extra_head %} - {% endblock extra_head %} - - - - {% block sidebar %} - - {% endblock sidebar %} - - -
- - {% block content %} -
- - {% for page in section.pages %} - -
-

- - {{ page.title }} - -

- - - - - {% if page.taxonomies.tags %} - {% for tag in page.taxonomies.tags %} - #{{ tag }} - {% endfor %} - {% endif %} - - -
- {% endfor %} -
- {% endblock content %} -
- - -
-
-
- - - - - - - - diff --git a/templates/tags/list.html b/templates/tags/list.html deleted file mode 100644 index 9fdee7e..0000000 --- a/templates/tags/list.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "index.html" %} - -{% block title %}Tags{% endblock title%} - -{% block content %} -

Tags

- -{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html deleted file mode 100644 index 4062e4a..0000000 --- a/templates/tags/single.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "index.html" %} - -{% block title %}#{{ term.name }}{% endblock title%} - -{% block content %} -

Tag: #{{ term.name }}

- - - -{% endblock content %} diff --git a/themes/after-dark b/themes/after-dark new file mode 160000 index 0000000..e2c7a20 --- /dev/null +++ b/themes/after-dark @@ -0,0 +1 @@ +Subproject commit e2c7a20ae254942af1f30830baadd6b33e74f6c7 -- cgit v1.2.3