summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/main.css1
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/partials/footer-license.html6
-rw-r--r--layouts/partials/footer.html18
4 files changed, 15 insertions, 21 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 4fd7bae..b08eb15 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -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);
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index fdee79d..08a2d25 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -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>
diff --git a/layouts/partials/footer-license.html b/layouts/partials/footer-license.html
deleted file mode 100644
index 6b05b04..0000000
--- a/layouts/partials/footer-license.html
+++ /dev/null
@@ -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>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9f307e1..5e97056 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -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" . }}