From 208080766e5b269053c6d16453248dc87c5985ff Mon Sep 17 00:00:00 2001 From: violette Date: Fri, 10 May 2024 00:14:39 -0400 Subject: [PATCH] added about handling ; bugfix --- themes/violette/layouts/index.html | 4 +++- themes/violette/layouts/partials/head.html | 1 - themes/violette/layouts/partials/head/js.html | 12 ------------ themes/violette/layouts/partials/menu.html | 2 +- 4 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 themes/violette/layouts/partials/head/js.html diff --git a/themes/violette/layouts/index.html b/themes/violette/layouts/index.html index 51b3a1e..945abbc 100644 --- a/themes/violette/layouts/index.html +++ b/themes/violette/layouts/index.html @@ -1,3 +1,5 @@ {{ define "main" }} - {{ .Content }} + {{ with $.GetPage "about" }} + {{ .Content }} + {{ end }} {{ end }} diff --git a/themes/violette/layouts/partials/head.html b/themes/violette/layouts/partials/head.html index df69150..d26e87b 100644 --- a/themes/violette/layouts/partials/head.html +++ b/themes/violette/layouts/partials/head.html @@ -9,4 +9,3 @@ {{ partialCached "head/css.html" . }} -{{ partialCached "head/js.html" . }} diff --git a/themes/violette/layouts/partials/head/js.html b/themes/violette/layouts/partials/head/js.html deleted file mode 100644 index 18fe842..0000000 --- a/themes/violette/layouts/partials/head/js.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- with resources.Get "js/main.js" }} - {{- if eq hugo.Environment "development" }} - {{- with . | js.Build }} - - {{- end }} - {{- else }} - {{- $opts := dict "minify" true }} - {{- with . | js.Build $opts | fingerprint }} - - {{- end }} - {{- end }} -{{- end }} diff --git a/themes/violette/layouts/partials/menu.html b/themes/violette/layouts/partials/menu.html index 19ad9bf..c29b618 100644 --- a/themes/violette/layouts/partials/menu.html +++ b/themes/violette/layouts/partials/menu.html @@ -55,7 +55,7 @@ Renders a menu for the given menu ID. - {{ i18n "language" }} + {{ i18n "language" }}