Allow hiding copyright/footer text

closes: #543
This commit is contained in:
Aditya Telange 2021-09-02 20:19:52 +05:30
parent b4393b3d6e
commit 3442d5cb52
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -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)">