Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/gohugoioTheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-28 11:56:01 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-28 11:56:01 +0300
commit7cfbda06d135fff01cb889a44994aba117d5c82e (patch)
treef5642d94b2f5ef512d5a9de21d750d596c88ac94
parente398da01b5ce461a5780ac20b84dae7c1887c2d5 (diff)
Add some partial hooks
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/partials/hooks/after-body-start.html1
-rw-r--r--layouts/partials/hooks/before-body-end.html1
3 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 47019072..04261a88 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -58,6 +58,7 @@
</head>
<body class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
+ {{ partial "hooks/after-body-start" . }}
{{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
{{ block "header" . }}{{ end }}
<main role="main" class="content-with-sidebar min-vh-100 pb7 pb0-ns">
@@ -65,6 +66,9 @@
</main>
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
+
+ {{ partial "hooks/before-body-end" . }}
+
</body>
diff --git a/layouts/partials/hooks/after-body-start.html b/layouts/partials/hooks/after-body-start.html
new file mode 100644
index 00000000..426abd01
--- /dev/null
+++ b/layouts/partials/hooks/after-body-start.html
@@ -0,0 +1 @@
+{{/* Deliberately empty */}}
diff --git a/layouts/partials/hooks/before-body-end.html b/layouts/partials/hooks/before-body-end.html
new file mode 100644
index 00000000..426abd01
--- /dev/null
+++ b/layouts/partials/hooks/before-body-end.html
@@ -0,0 +1 @@
+{{/* Deliberately empty */}}