feat: show generic footer

Former-commit-id: 072bf0b81b
Former-commit-id: 6ee9cb9bd0c033b9783276699aaa2fc211ff0efa
This commit is contained in:
Arun 2024-09-15 00:00:26 +05:30
parent 97ce865eb3
commit c484bb4ed1
4 changed files with 15 additions and 21 deletions

View file

@ -146,7 +146,6 @@ hr {
footer {
font-size: small;
display: flex;
flex-direction: column; /* Stack children vertically */
justify-content: center;
align-items: center;
max-height: var(--footer-height);

View file

@ -25,14 +25,7 @@
</div>
<footer>
{{ if .Param "showFooterLicense" }}
<div>
{{ partial "footer-license.html" . }}
</div>
{{ end }}
<div>
{{ partial "footer.html" . }}
</div>
</footer>
</body>

View file

@ -1,6 +0,0 @@
<p>
All content licensed under
<b>{{ .Param "licenseType" }}</b>
license unless otherwise stated.
<b>Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}.</b>
</p>

View file

@ -1,8 +1,16 @@
<p>Powered by
{{ if .Site.Params.showFooter }}
{{ if not .Site.Params.footerContent }}
<p>Powered by
<a href="https://gohugo.io/">Hugo</a>
and
<a href="https://github.com/tomfran/typo">tomfran/typo</a>
</p>
</p>
{{ end }}
{{ with .Site.Params.footerContent }}
<p>{{ . | markdownify }}</p>
{{ end }}
{{ end }}
{{ if .Param "math" }}
{{ partialCached "math.html" . }}