summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun <me@arunmathaisk.in>2024-09-14 00:40:35 +0530
committerArun <me@arunmathaisk.in>2024-09-14 00:40:35 +0530
commit974bc9f6ffa10d22c5d6f692fe79d71606bbb2d3 (patch)
tree1b7a4217c2f42ba1cb48de6c58997ed97141f6f6
parentaafdd813d7e7d169f64a3081ed6fecd8f6f72569 (diff)
feat: Content License and Copyright holder as Footer
-rw-r--r--assets/css/main.css1
-rw-r--r--layouts/_default/baseof.html9
-rw-r--r--layouts/partials/footer-license.html6
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>