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/partials/google-analytics.html | 26 ++++++++++++++++++++++ .../layouts/partials/hamburger.html | 5 +++++ .../layouts/partials/header.html | 12 ++++++++++ .../layouts/partials/main-menu-mobile.html | 12 ++++++++++ .../layouts/partials/main-menu.html | 12 ++++++++++ .../layouts/partials/sidebar.html | 11 +++++++++ .../layouts/partials/sub-footer.html | 13 +++++++++++ 7 files changed, 91 insertions(+) create mode 100644 themes/hugo-whisper-theme/layouts/partials/google-analytics.html create mode 100644 themes/hugo-whisper-theme/layouts/partials/hamburger.html create mode 100644 themes/hugo-whisper-theme/layouts/partials/header.html create mode 100644 themes/hugo-whisper-theme/layouts/partials/main-menu-mobile.html create mode 100644 themes/hugo-whisper-theme/layouts/partials/main-menu.html create mode 100644 themes/hugo-whisper-theme/layouts/partials/sidebar.html create mode 100644 themes/hugo-whisper-theme/layouts/partials/sub-footer.html (limited to 'themes/hugo-whisper-theme/layouts/partials') diff --git a/themes/hugo-whisper-theme/layouts/partials/google-analytics.html b/themes/hugo-whisper-theme/layouts/partials/google-analytics.html new file mode 100644 index 0000000..63c84ab --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/google-analytics.html @@ -0,0 +1,26 @@ +{{- if .Site.IsServer -}} + +{{ else }} + {{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }} + {{ if $gid }} + + + + {{ else }} + {{ if .Site.Params.google_analytics_id }} + + + + {{ end }} + {{ end}} +{{ end }} \ No newline at end of file diff --git a/themes/hugo-whisper-theme/layouts/partials/hamburger.html b/themes/hugo-whisper-theme/layouts/partials/hamburger.html new file mode 100644 index 0000000..a6d7de9 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/hamburger.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/themes/hugo-whisper-theme/layouts/partials/header.html b/themes/hugo-whisper-theme/layouts/partials/header.html new file mode 100644 index 0000000..5f2c1f3 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/header.html @@ -0,0 +1,12 @@ +
+
+ +
+ Logo +
+ {{ partial "main-menu.html" . }} + {{ partial "hamburger.html" . }} +
+
diff --git a/themes/hugo-whisper-theme/layouts/partials/main-menu-mobile.html b/themes/hugo-whisper-theme/layouts/partials/main-menu-mobile.html new file mode 100644 index 0000000..5211ea7 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/main-menu-mobile.html @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/themes/hugo-whisper-theme/layouts/partials/main-menu.html b/themes/hugo-whisper-theme/layouts/partials/main-menu.html new file mode 100644 index 0000000..7ea303c --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/main-menu.html @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/themes/hugo-whisper-theme/layouts/partials/sidebar.html b/themes/hugo-whisper-theme/layouts/partials/sidebar.html new file mode 100644 index 0000000..dd1404d --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/sidebar.html @@ -0,0 +1,11 @@ +{{$currentNode := .}} +
+

{{ .Section | humanize }}

+ +
diff --git a/themes/hugo-whisper-theme/layouts/partials/sub-footer.html b/themes/hugo-whisper-theme/layouts/partials/sub-footer.html new file mode 100644 index 0000000..99cf2d0 --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/sub-footer.html @@ -0,0 +1,13 @@ + -- cgit v1.2.3