From d2e2e6bb89e95f226063bac1698bea6ad8efd29f Mon Sep 17 00:00:00 2001 From: Stephan Hadan Date: Mon, 21 Apr 2025 15:53:01 +0200 Subject: [PATCH] added feature license in footer --- CHANGELOG.md | 5 +++++ README.md | 10 +++++++++- layouts/partials/page_footer.html | 5 ++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1509531..0ab9f2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [v1.4](https://git.hadan-it.com/stiebke/hugo-internet-weblog/releases/tag/v1.4) - 2025-04-21 + +* ENHANCEMENTS + * Add optional license text and AI opt-out-text to footer (#40) + ## [v1.3.3](https://git.hadan-it.com/stiebke/hugo-internet-weblog/releases/tag/v1.3.3) - 2025-03-03 * ENHANCEMENTS diff --git a/README.md b/README.md index 28b20ba..ee23c42 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,10 @@ If you want to enable a dark appearance, there is limited support for that. Curr | `[params]`- `statuspageenabled` | `true` or `false` | No. If true an all parameters are set a link to your status page is shown in the page_footer. | | `[params]`- `statuspage` | `Your Statuspage-URL`| No. i.e. `https://status.example.com`. | | `[params]`- `statuspagename` | `Name your Statuspage` | No. Set a specific name for your statuspage in de page_footer. | +| `[params]`- `showlicense` | `true` or `false` | No. Show license in footer. | +| `[params]`- `license` | `Name your license` | No. i.e. `CC BY NC SA 4.0` | +| `[params]`- `licensepage` | `Your license-url` | No. i.e. `https://example.com/license` | +| `[params]`- `tdmurl` | `Your AI/ML-Opt-Out-URL` | No. i.e. `https://example.com/imprint/` | Here is an example `hugo.toml`: @@ -202,7 +206,11 @@ SectionPagesMenu = "main" umamiid = "xxxxxxxxxxxxxxxxxxx-yyyyyyyyyy-zzzzzzzzzzzzz" statuspageenabled = true statuspage = "https://status.example.com/status/preview-demo" - statuspagename = "Statusseite" + statuspagename = "Statusseite" + showlicense = true + licensepage = "https://example.com/license/" + tdmurl = "https://example.com/imprint/" + license= "CC BY NC SA 4.0" [taxonomies] tag = "tags" diff --git a/layouts/partials/page_footer.html b/layouts/partials/page_footer.html index a8c5c60..3551822 100644 --- a/layouts/partials/page_footer.html +++ b/layouts/partials/page_footer.html @@ -18,7 +18,10 @@ {{ if .Site.Params.showcopyright }} {{ end }} \ No newline at end of file