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"> <main class="main">
{{- block "main" . }}{{ end }} {{- block "main" . }}{{ end }}
</main> </main>
{{ partialCached "footer.html" . .Layout .Kind -}} {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") -}}
</body> </body>
</html> </html>

View File

@ -1,3 +1,4 @@
{{- if not (.Param "hideFooter") }}
<footer class="footer"> <footer class="footer">
{{- if .Site.Copyright }} {{- if .Site.Copyright }}
<span>{{ .Site.Copyright | markdownify }}</span> <span>{{ .Site.Copyright | markdownify }}</span>
@ -10,6 +11,7 @@
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a> <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
</span> </span>
</footer> </footer>
{{- end }}
{{- if (not .Site.Params.disableScrollToTop) }} {{- if (not .Site.Params.disableScrollToTop) }}
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)"> <a href="#top" aria-label="go to top" title="Go to Top (Alt + G)">