From 4e30ae95eaf52a7f427bdf020d118f40e00ab291 Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Mon, 9 Oct 2023 13:41:04 -0400 Subject: add some homemade svg, wpartials, and darkmode --- layouts/_default/baseof.html | 2 +- layouts/partials/func/GetSvg.html | 5 +++++ layouts/partials/head.html | 4 ++-- layouts/partials/scripts.html | 3 ++- layouts/partials/site-actions.html | 12 ++++++++++++ 5 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/func/GetSvg.html create mode 100644 layouts/partials/site-actions.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index bb27232..cceaa25 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,7 @@ {{- partial "head.html" . -}} - + {{- partial "site-actions" . -}} {{- partial "header.html" . -}}
{{ .Title }} - + {{ end }} {{ with resources.Get "css/main.css" }} {{ end }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 152c32b..f7c95bd 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,4 +1,5 @@ {{ $scripts := resources.Match "js/*.js" }} {{ range $script := $scripts }} + {{ $script := $script | minify | fingerprint }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/site-actions.html b/layouts/partials/site-actions.html new file mode 100644 index 0000000..b9afa66 --- /dev/null +++ b/layouts/partials/site-actions.html @@ -0,0 +1,12 @@ +
+ + +
\ No newline at end of file -- cgit v1.1