From 4e95b58a7fea9aa3ff611289cb28cb73118182e1 Mon Sep 17 00:00:00 2001 From: anoduck <11767-anoduck@users.noreply.gitgud.io> Date: Fri, 11 Oct 2024 09:56:32 -0400 Subject: feat(_baseof.html): :sparkles: Supports charset designation added charset designation to site, reverted persons section to card for temp. --- config/_default/params.toml | 2 +- hinode-template.code-workspace | 3 +- hugo_stats.json | 17 +++++---- layouts/_default/baseof.html | 82 ++++++++++++++++++++++++++++++++++++++++++ layouts/_default/baseof.xml | 2 ++ 5 files changed, 98 insertions(+), 8 deletions(-) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/baseof.xml diff --git a/config/_default/params.toml b/config/_default/params.toml index 8c14cbd..d1405dc 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -142,7 +142,7 @@ [sections.persons] title = "Persons" reference = "More People" - layout = "list" + layout = "card" sort = "title" reverse = false nested = true diff --git a/hinode-template.code-workspace b/hinode-template.code-workspace index 94f63db..618bcd2 100644 --- a/hinode-template.code-workspace +++ b/hinode-template.code-workspace @@ -9,7 +9,8 @@ "content", "frontmatter.json", ".frontMatter", - "persons page" + "persons page", + "_baseof.html" ], "deno.enable": true } diff --git a/hugo_stats.json b/hugo_stats.json index 5038296..22122a1 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -99,6 +99,7 @@ "card-body", "card-body-link", "card-img-bg", + "card-img-h100", "card-img-top", "card-img-wrap", "card-text", @@ -113,6 +114,7 @@ "col-3", "col-4", "col-6", + "col-8", "col-9", "col-lg-2", "col-lg-8", @@ -151,6 +153,10 @@ "end-0", "fa", "fa-10x", + "fa-angle-left", + "fa-angle-right", + "fa-angles-left", + "fa-angles-right", "fa-arrow-left", "fa-arrow-right", "fa-book-open", @@ -175,7 +181,6 @@ "fa-wrapper", "fa-x-twitter", "fab", - "fade-bottom", "fas", "figure-caption", "fixed-top", @@ -269,14 +274,16 @@ "next", "no-js", "order-first", - "order-last", "p-0", "p-1", "p-2", "p-3", "p-4", - "p-5", "p-auto", + "page-item", + "page-link", + "pagination", + "pagination-terse", "pb-2", "pb-3", "pb-4", @@ -290,7 +297,6 @@ "previous", "ps-1", "ps-3", - "psw-lg-5", "pt-2", "pt-3", "pt-5", @@ -307,11 +313,10 @@ "py-5", "ratio", "ratio-16x9", - "ratio-section", - "reveal", "rounded", "rounded-5", "rounded-pill", + "rounded-start", "row", "row-cols-1", "row-cols-2", diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..9e342f1 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,82 @@ +{{- /* 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 -}} + + + +