From 1bf4d8aca6f81f2dddd0262e74b278cd9985b53d Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Fri, 8 Aug 2025 20:50:19 +0200 Subject: initial commit, basic setup --- layouts/partials/head/css.html | 10 +++++++++ layouts/partials/head/js.html | 17 ++++++++++++++ layouts/partials/head/meta.html | 22 ++++++++++++++++++ layouts/partials/head/seo.html | 50 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 layouts/partials/head/css.html create mode 100644 layouts/partials/head/js.html create mode 100644 layouts/partials/head/meta.html create mode 100644 layouts/partials/head/seo.html (limited to 'layouts/partials/head') diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html new file mode 100644 index 0000000..8e6c145 --- /dev/null +++ b/layouts/partials/head/css.html @@ -0,0 +1,10 @@ +{{- with resources.Get "css/main.css" }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} + diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html new file mode 100644 index 0000000..6123e7f --- /dev/null +++ b/layouts/partials/head/js.html @@ -0,0 +1,17 @@ +{{- with resources.Get "js/main.js" }} + {{- $opts := dict + "minify" (not hugo.IsDevelopment) + "sourceMap" (cond hugo.IsDevelopment "external" "") + "targetPath" "js/main.js" + }} + {{- with . | js.Build $opts }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | fingerprint }} + + {{- end }} + {{- end }} + {{- end }} +{{- end }} + diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html new file mode 100644 index 0000000..d0358a1 --- /dev/null +++ b/layouts/partials/head/meta.html @@ -0,0 +1,22 @@ + + + + + + + + + + +{{- with .Params.images }} + +{{- end }} + + + + + +{{- with .Params.images }} + +{{- end }} + diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html new file mode 100644 index 0000000..2c617e1 --- /dev/null +++ b/layouts/partials/head/seo.html @@ -0,0 +1,50 @@ +{{ if .IsPage }} + +{{ else if .IsHome }} + +{{ end }} + -- cgit v1.2.3