diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-09-02 20:19:52 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-09-02 20:19:52 +0530 |
| commit | 3442d5cb528c83c07123257503259ea654bed6e1 (patch) | |
| tree | 5f15c843ae9b721dbc57424d1c3f6b8ce70d63d2 | |
| parent | b4393b3d6e775d9c05b92b3f35bd74f5c3475ef5 (diff) | |
Allow hiding copyright/footer text
closes: #543
| -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)"> |
