From e4e8c804f54f3e909e698f67598bb00e436b1e53 Mon Sep 17 00:00:00 2001 From: mms Date: Sun, 24 Dec 2023 23:35:44 +0100 Subject: feat: hier menu --- layouts/_default/baseof.html | 37 +++++++++++++++++++++++-------------- layouts/_default/index.html | 1 + layouts/partials/back_nav.html | 2 ++ layouts/shortcodes/menu.html | 12 ++++++++++++ 4 files changed, 38 insertions(+), 14 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e0fdb94..be7e066 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -52,22 +52,27 @@ {{ $section_class = "blog" }} {{ else if in .Page.Params.categories "article" }} {{ $section_class = "article" }} + {{ else if in .Page.Params.categories "emacs" }} + {{ $section_class = "emacs" }} {{ end }}
@@ -99,17 +104,21 @@ diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 60957e2..4df8057 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -17,6 +17,7 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we

Blog: my shorter publications withount any theme. You can treat it as E/N site.

Articles: longer publications that don't fit blog or any other category.

BSD site: my writings on Berkley Standard Distribution flavors. Those are the OSes I use on the daily basis.

+

C-X Emacs: this is my Emacs. There are many like it, but this one is mine. My Emacs is my best friend. It is my life.

Star Trek fan site: my little shrine to the greatest american Sci-Fi that has ever graced our screens.

Funnies: A small, curated collection of things I found funny or ammusing.

Version control system : My little code repository. I don't expect to cooporate on any of those, so it's just stagit.

diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html index a1dded7..c3a3371 100644 --- a/layouts/partials/back_nav.html +++ b/layouts/partials/back_nav.html @@ -12,6 +12,8 @@ ← Back to Michal's blog {{- else if in .Page.Params.Categories "article" }} ← Back to Article Library +{{- else if in .Page.Params.Categories "emacs" }} + ← Back to C-X emacs {{- end }} {{- if not .Page.Params.hardback }}
diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html index 1b3dc54..356c675 100644 --- a/layouts/shortcodes/menu.html +++ b/layouts/shortcodes/menu.html @@ -8,6 +8,18 @@ {{ .Name }} + + {{ if .HasChildren }} + + + {{ end }} {{- end }} -- cgit v1.2.3