From b15ab4adb837e43409e5e3cf3a40a83ef4dbf62f Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 8 Jan 2023 22:12:24 -0300 Subject: Initial commit --- .../layouts/_default/baseof.html | 73 ++++++++++++++++++++++ .../hugo-whisper-theme/layouts/_default/list.html | 17 +++++ .../layouts/_default/single.html | 11 ++++ .../layouts/_default/summary.html | 7 +++ 4 files changed, 108 insertions(+) create mode 100644 themes/hugo-whisper-theme/layouts/_default/baseof.html create mode 100644 themes/hugo-whisper-theme/layouts/_default/list.html create mode 100644 themes/hugo-whisper-theme/layouts/_default/single.html create mode 100644 themes/hugo-whisper-theme/layouts/_default/summary.html (limited to 'themes/hugo-whisper-theme/layouts/_default') diff --git a/themes/hugo-whisper-theme/layouts/_default/baseof.html b/themes/hugo-whisper-theme/layouts/_default/baseof.html new file mode 100644 index 0000000..79eede4 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/_default/baseof.html @@ -0,0 +1,73 @@ + + + + + + + {{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }} + + {{ block "meta_tags" . }}{{end}} + + + {{ if .Site.IsServer }} + {{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }} + + {{ else }} + {{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" false) }} + + {{ end }} + + {{ block "header_css" . }}{{ end }} + + + + + {{ partial "main-menu-mobile.html" . }} +
+ {{ partial "header.html" . }} + + {{ $displaySidebar := false }} + {{ range .Site.Params.mainSections }} + {{ if eq $.Section . }} + {{ $displaySidebar = true }} + {{ end }} + {{ end }} + + {{ if $displaySidebar }} +
+
+
+ +
+
+ {{ block "main" . }} + {{ end }} +
+
+
+ {{ else }} + {{ block "main" . }} + {{ end }} + {{ end}} +
+ + {{ partial "sub-footer.html" . }} + + {{ $scripts := resources.Get "js/scripts.js" }} + + {{ block "footer_js" . }} + {{ end }} + + {{ if .Site.IsServer }} + + {{ else }} + + {{ end }} + + {{ partial "google-analytics.html" . }} + + + + diff --git a/themes/hugo-whisper-theme/layouts/_default/list.html b/themes/hugo-whisper-theme/layouts/_default/list.html new file mode 100644 index 0000000..180e5ad --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-default-list{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "main" }} + +Overview +

{{ .Title }}

+
+ {{ .Content }} +
+ +{{ range.Pages }} +{{ .Render "summary" }} +{{ end }} + +{{ end }} \ No newline at end of file diff --git a/themes/hugo-whisper-theme/layouts/_default/single.html b/themes/hugo-whisper-theme/layouts/_default/single.html new file mode 100644 index 0000000..67d1129 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/_default/single.html @@ -0,0 +1,11 @@ +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-default-single{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "main" }} +

{{.Title}}

+
+ {{.Content}} +
+ +{{ end }} \ No newline at end of file diff --git a/themes/hugo-whisper-theme/layouts/_default/summary.html b/themes/hugo-whisper-theme/layouts/_default/summary.html new file mode 100644 index 0000000..1231103 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/_default/summary.html @@ -0,0 +1,7 @@ +
+ {{ if .Params.image }} + {{ .Title }} + {{ end}} +

{{ .Title }}

+

{{ .Summary }}

+
-- cgit v1.2.3