diff options
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 86db932..37c595b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@ <main class="main"> {{- block "main" . }}{{ end }} </main> - {{ partialCached "footer.html" . .Layout .Kind -}} + {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") -}} </body> </html> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2c1113c..3cebf48 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,4 @@ +{{- if not (.Param "hideFooter") }} <footer class="footer"> {{- if .Site.Copyright }} <span>{{ .Site.Copyright | markdownify }}</span> @@ -10,6 +11,7 @@ <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a> </span> </footer> +{{- end }} {{- if (not .Site.Params.disableScrollToTop) }} <a href="#top" aria-label="go to top" title="Go to Top (Alt + G)"> |
