summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/_default/params.toml2
-rw-r--r--hinode-template.code-workspace3
-rw-r--r--hugo_stats.json17
-rw-r--r--layouts/_default/baseof.html82
-rw-r--r--layouts/_default/baseof.xml2
5 files changed, 98 insertions, 8 deletions
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) }}
+
+<!doctype html>
+<html lang="{{ .Site.Language.Lang }}" class="no-js">
+ <head>
+ <meta charset="utf-8">
+ {{- partial "footer/scripts.html" (dict "page" . "type" "critical") -}}
+ {{- partial "footer/scripts.html" (dict "page" . "type" "functional") -}}
+ {{ block "head" . }}{{ end -}}
+ </head>
+
+ <body>
+ <div class="d-flex flex-column min-vh-100">
+ <div class="d-flex flex-column {{ if $fullCover }} fullscreen{{ end }}{{ if .IsHome }} {{ .Site.Params.home.style }}{{ end }}">
+ {{- partial "assets/navbar.html" (dict
+ "page" .
+ "fixed" site.Params.navigation.fixed
+ "overlay" site.Params.navigation.overlay
+ "overlayMode" site.Params.navigation.overlayMode
+ "color" site.Params.navigation.color
+ "style" (default "light" site.Params.navigation.style)
+ "size" (default "md" site.Params.navigation.size))
+ -}}
+ <div class="main-content">
+ {{ block "featured" . }}{{ end -}}
+ </div>
+ {{ if .Site.Params.main.footerBelowFold }}
+ {{ block "main" . }}{{ end -}}
+ {{ end }}
+ </div>
+
+ {{ if not .Site.Params.main.footerBelowFold }}
+ {{ block "main" . }}{{ end -}}
+ {{- partial "footer/social.html" . -}}
+ {{- partial "footer/footer.html" . -}}
+ {{ end }}
+ </div>
+
+ {{ if .Site.Params.main.footerBelowFold }}
+ {{- partial "footer/social.html" . -}}
+ {{- partial "footer/footer.html" . -}}
+ {{ end }}
+
+ {{- partial "footer/toast-container.html" . -}}
+ {{- partial "assets/symbols.html" . -}}
+ {{- partialCached "footer/scripts.html" (dict "page" .) -}}
+ {{- partial "footer/scripts.html" (dict "page" . "type" "optional") -}}
+ </body>
+</html>
diff --git a/layouts/_default/baseof.xml b/layouts/_default/baseof.xml
new file mode 100644
index 0000000..197b19f
--- /dev/null
+++ b/layouts/_default/baseof.xml
@@ -0,0 +1,2 @@
+{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
+{{ block "main" . }}{{ end }} \ No newline at end of file