From 6c7ef74b557b8600e32cddef108f6af946e9de06 Mon Sep 17 00:00:00 2001 From: anoduck <9925396+anoduck@users.noreply.github.com> Date: Mon, 11 Aug 2025 18:19:28 -0400 Subject: fix: wip: revisions for hugo templating sys changes WIP: Revisions for fixing changes to hugo's templating system upgrade. BREAKING CHANGE: Will not build on versions of hugo prior to 0.145. --- layouts/_default/baseof.html | 81 -------------------------------------------- layouts/_default/single.html | 45 ------------------------ 2 files changed, 126 deletions(-) delete mode 100644 layouts/_default/baseof.html delete mode 100644 layouts/_default/single.html (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 189d800..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,81 +0,0 @@ -{{- /* Set version-aware sidebar menu */ -}} -{{- $version := partial "utilities/GetVersion.html" (dict "page" . "base" true) -}} -{{- $.Scratch.Set "version" $version -}} -{{ with partial "utilities/GetMenu" (dict "page" . "version" $version) }}{{ $.Scratch.Set "sidebar" . }}{{ end }} - -{{- /* Validate if current version is latest */ -}} -{{- if and site.Params.docs.checkVersion $version -}} - {{- if ne $version "latest" -}} - {{- if partial "utilities/IsOlder" (dict "current" $version) -}} - {{- $.Scratch.Set "pageAlertMsg" (T "newerVersionAlert" site.Title) -}} - {{- $.Scratch.Set "pageAlertURL" (or site.Params.docs.latestURL site.baseURL) -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{- /* Initialize module configuration */ -}} -{{- $modules := partialCached "utilities/InitModules.html" . -}} -{{- $.Scratch.Set "modules" $modules -}} - -{{- $fullCover := or (or (and .IsHome .Site.Params.home.fullCover) .Page.Params.fullCover) .Site.Params.main.footerBelowFold }} -{{- $.Scratch.Set "fullCover" $fullCover -}} - -{{- /* Define section headings */ -}} -{{- $loading := "" -}} -{{- if $fullCover }}{{ $loading = .Site.Params.main.loading }}{{ end -}} -{{ $sections := partial "utilities/GetSections.html" (dict "page" . "loading" $loading) }} -{{- $.Scratch.Set "sections" $sections -}} - -{{- /* Define main breakpoint */ -}} -{{- $.Scratch.Set "breakpoint" (partialCached "utilities/GetBreakpoint.html" .) }} - -{{- /* Define base URL */ -}} -{{ $lang := site.LanguageCode | default site.Language.Lang }} -{{ $.Scratch.Set "baseURL" (strings.TrimSuffix (printf "%s/" $lang) site.Home.RelPermalink) }} - - - -
- {{- partial "footer/scripts.html" (dict "page" . "type" "critical") -}} - {{- partial "footer/scripts.html" (dict "page" . "type" "functional") -}} - {{ block "head" . }}{{ end -}} - - - -