From 97ce865eb39089bf5dc4112a682b17be8c9a55c5 Mon Sep 17 00:00:00 2001 From: Arun Date: Sat, 14 Sep 2024 00:40:35 +0530 Subject: [PATCH 1/3] feat: Content License and Copyright holder as Footer Former-commit-id: cc2f2c797124cec1700ea72c5b403d06ed296c07 Former-commit-id: d85890679461279fc4a37af3a7f620a1de352786 --- assets/css/main.css | 1 + layouts/_default/baseof.html | 9 ++++++++- layouts/partials/footer-license.html | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/footer-license.html 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 @@ 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 @@ +

+ All content licensed under + {{ .Param "licenseType" }} + license unless otherwise stated. + Copyright © {{ .Param "copyrightYear" }} {{ .Param "copyrightHolder" }}. +

From c484bb4ed1eba82425a75cf756f5e54ea10ca623 Mon Sep 17 00:00:00 2001 From: Arun Date: Sun, 15 Sep 2024 00:00:26 +0530 Subject: [PATCH 2/3] feat: show generic footer Former-commit-id: 072bf0b81b8d3152e83c1e9112cdeff534d04b48 Former-commit-id: 6ee9cb9bd0c033b9783276699aaa2fc211ff0efa --- assets/css/main.css | 1 - layouts/_default/baseof.html | 11 ++--------- layouts/partials/footer-license.html | 6 ------ layouts/partials/footer.html | 18 +++++++++++++----- 4 files changed, 15 insertions(+), 21 deletions(-) delete mode 100644 layouts/partials/footer-license.html 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 @@
- {{ if .Param "showFooterLicense" }} -
- {{ partial "footer-license.html" . }} -
- {{ end }} -
- {{ partial "footer.html" . }} -
+ {{ partial "footer.html" . }}
- +