mirror of
https://github.com/tomfran/typo.git
synced 2025-04-26 13:39:55 +03:00
feat: show generic footer
Former-commit-id: 072bf0b81b
Former-commit-id: 6ee9cb9bd0c033b9783276699aaa2fc211ff0efa
This commit is contained in:
parent
97ce865eb3
commit
c484bb4ed1
4 changed files with 15 additions and 21 deletions
|
@ -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);
|
||||
|
|
|
@ -25,14 +25,7 @@
|
|||
</div>
|
||||
|
||||
<footer>
|
||||
{{ if .Param "showFooterLicense" }}
|
||||
<div>
|
||||
{{ partial "footer-license.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -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>
|
|
@ -1,8 +1,16 @@
|
|||
{{ 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>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.footerContent }}
|
||||
<p>{{ . | markdownify }}</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Param "math" }}
|
||||
{{ partialCached "math.html" . }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue