From 631547a75142326a7c71bdf123e1475217a5ad73 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:42:56 +0200 Subject: chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme) --- layouts/_default/baseof.html | 130 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 layouts/_default/baseof.html (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..482006e --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,130 @@ + + + + + + {{ partial "head-meta.html" . }} + {{ .Title }}{{ if ne .Title .Site.Title }} — {{ .Site.Title }}{{ end }} + + + + + + + + + + + + {{ $css := resources.Get "css/main.min.css" }} + + + + {{ $chroma := resources.Get "css/chroma-custom.css" | minify }} + + + + + {{ if eq .Kind "page" }} +
+ {{ partial "back-to-top.html" . }} + {{ end }} + + + {{ i18n "skipToContent" }} + + + +
+ + + + + + + + + {{ partial "header.html" . }} + + +
+ {{ block "main" . }}{{ end }} +
+ + + {{ partial "footer.html" . }} + + + {{ partial "search-modal.html" . }} + + + + + + + + + + {{ $themeScript := resources.Get "js/theme-toggle.js" | minify }} + + + + {{ $menuScript := resources.Get "js/menu.js" | minify }} + + + + {{ $contactScript := resources.Get "js/contact-form.js" | minify }} + + + + {{ $notFoundScript := resources.Get "js/not-found-page.js" | minify }} + + + + {{ if eq .Kind "page" }} + {{ $progressScript := resources.Get "js/reading-progress.js" | minify }} + + {{ end }} + + + {{ if eq .Kind "page" }} + {{ $codeScript := resources.Get "js/code-copy.js" | minify }} + + {{ end }} + + + {{ with resources.Get "js/matrix-rain.js" }} + {{ $s := . | minify }} + + {{ end }} + + + {{ $searchScript := resources.Get "js/search.js" | minify }} + + + + {{ if eq .Kind "section" }} + {{ $lazyScript := resources.Get "js/article-lazy.js" | minify }} + + {{ end }} + + + {{ $tagCloudScript := resources.Get "js/tag-cloud-spiral.js" | minify }} + + + -- cgit v1.2.3