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 {
|
footer {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; /* Stack children vertically */
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
max-height: var(--footer-height);
|
max-height: var(--footer-height);
|
||||||
|
|
|
@ -25,14 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
{{ if .Param "showFooterLicense" }}
|
{{ partial "footer.html" . }}
|
||||||
<div>
|
|
||||||
{{ partial "footer-license.html" . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
<div>
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</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 @@
|
||||||
<p>Powered by
|
{{ if .Site.Params.showFooter }}
|
||||||
<a href="https://gohugo.io/">Hugo</a>
|
{{ if not .Site.Params.footerContent }}
|
||||||
and
|
<p>Powered by
|
||||||
<a href="https://github.com/tomfran/typo">tomfran/typo</a>
|
<a href="https://gohugo.io/">Hugo</a>
|
||||||
</p>
|
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" }}
|
{{ if .Param "math" }}
|
||||||
{{ partialCached "math.html" . }}
|
{{ partialCached "math.html" . }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue