mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 21:19:55 +03:00
feat: show generic footer
This commit is contained in:
parent
f3000f6830
commit
1ec074201b
4 changed files with 15 additions and 21 deletions
|
@ -25,16 +25,9 @@
|
|||
</div>
|
||||
|
||||
<footer>
|
||||
{{ if .Param "showFooterLicense" }}
|
||||
<div>
|
||||
{{ partial "footer-license.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</footer>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -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
|
||||
<a href="https://gohugo.io/">Hugo</a>
|
||||
and
|
||||
<a href="https://github.com/tomfran/typo">tomfran/typo</a>
|
||||
</p>
|
||||
{{ 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