From: Danilo M. Date: Wed, 15 Apr 2026 13:28:22 +0000 (+0200) Subject: feat: create base template with theme toggle, fonts, and Alpine.js X-Git-Tag: release_22042026-1342~291 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=64f240a3a626969e1c2ea548a0f0688aded93ca8;p=danix.xyz-2.git feat: create base template with theme toggle, fonts, and Alpine.js --- diff --git a/themes/danix-xyz-hacker/layouts/_default/baseof.html b/themes/danix-xyz-hacker/layouts/_default/baseof.html new file mode 100644 index 0000000..89653a9 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/_default/baseof.html @@ -0,0 +1,75 @@ + + + + + + + + + + + {{ .Title }}{{ if ne .Title .Site.Title }} — {{ .Site.Title }}{{ end }} + + + + + + + + + {{ $css := resources.Get "css/main.css" | resources.ExecuteAsTemplate "css/main.css" . | minify }} + + + + {{ $chroma := resources.Get "css/chroma-custom.css" | minify }} + + + + +
+ + + + + + {{ partial "header.html" . }} + + +
+ {{ block "main" . }}{{ end }} +
+ + + {{ partial "footer.html" . }} + + + + + + + + + + {{ $themeScript := resources.Get "js/theme-toggle.js" | minify }} + + + + {{ $menuScript := resources.Get "js/menu.js" | minify }} + + + + {{ $langScript := resources.Get "js/language-switcher.js" | minify }} + + +