From 2fa847c5a4db9d12a8ee949dcfa5c28945110f71 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 15:50:35 +0200 Subject: feat: create article type dispatcher template --- .../danix-xyz-hacker/layouts/articles/single.html | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/articles/single.html (limited to 'themes/danix-xyz-hacker/layouts/articles') diff --git a/themes/danix-xyz-hacker/layouts/articles/single.html b/themes/danix-xyz-hacker/layouts/articles/single.html new file mode 100644 index 0000000..af51739 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/articles/single.html @@ -0,0 +1,36 @@ +{{ define "main" }} +{{ $articleType := .Params.type | default "life" }} +{{ $template := printf "article-types/%s.html" $articleType }} +
+
+ +
+ + {{ partial "article-header.html" . }} + + + {{ partial $template . }} + + + {{ if .Params.tags }} +
+

{{ i18n "tags" }}

+
+ {{ range .Params.tags }} + + {{ . }} + + {{ end }} +
+
+ {{ end }} +
+ + + {{ partial "sidebar.html" . }} +
+
+{{ end }} -- cgit v1.2.3