From: Danilo M. Date: Wed, 15 Apr 2026 13:50:35 +0000 (+0200) Subject: feat: create article type dispatcher template X-Git-Tag: release_22042026-1342~269 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=2fa847c5a4db9d12a8ee949dcfa5c28945110f71;p=danix.xyz-2.git feat: create article type dispatcher template --- 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 }}