diff options
-rw-r--r-- | assets/css/main.css | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 9 | ||||
-rw-r--r-- | layouts/partials/footer-license.html | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index b08eb15..4fd7bae 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -146,6 +146,7 @@ hr { footer { font-size: small; display: flex; + flex-direction: column; /* Stack children vertically */ justify-content: center; align-items: center; max-height: var(--footer-height); diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 373e635..fdee79d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,7 +25,14 @@ </div> <footer> - {{ partial "footer.html" . }} + {{ if .Param "showFooterLicense" }} + <div> + {{ partial "footer-license.html" . }} + </div> + {{ end }} + <div> + {{ partial "footer.html" . }} + </div> </footer> </body> diff --git a/layouts/partials/footer-license.html b/layouts/partials/footer-license.html new file mode 100644 index 0000000..6b05b04 --- /dev/null +++ b/layouts/partials/footer-license.html @@ -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> |