mirror of
https://github.com/tomfran/typo.git
synced 2025-04-26 21:49:54 +03:00
feat: Content License and Copyright holder as Footer
This commit is contained in:
parent
640a6c6956
commit
f3000f6830
3 changed files with 15 additions and 1 deletions
|
@ -146,6 +146,7 @@ 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,7 +25,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
{{ partial "footer.html" . }}
|
{{ if .Param "showFooterLicense" }}
|
||||||
|
<div>
|
||||||
|
{{ partial "footer-license.html" . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
<div>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
6
layouts/partials/footer-license.html
Normal file
6
layouts/partials/footer-license.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<p>
|
||||||
|
All content licensed under
|
||||||
|
<b>{{ .Param "licenseType" }}</b>
|
||||||
|
license unless otherwise stated.
|
||||||
|
<b>Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}.</b>
|
||||||
|
</p>
|
Loading…
Add table
Add a link
Reference in a new issue