From e000c1e461fe395eae220d58e95e9fd5569eecff Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 5 Feb 2020 01:15:51 +0100 Subject: [PATCH] add option to include a privacy policy and legal notice page --- exampleSite/config.yaml | 3 +++ exampleSite/content/usage/configuration.md | 16 ++++++++++++++++ layouts/partials/page-footer.html | 2 +- layouts/partials/page-header.html | 2 +- layouts/partials/site-footer.html | 15 ++++++++++++--- src/sass/_base.scss | 10 +++++++++- 6 files changed, 42 insertions(+), 6 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 51290d2..ec7ab8a 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -25,3 +25,6 @@ params: geekdocDateFormat: "Jan 2, 2006" geekdocSearch: true + + geekdocLegalNotice: https://geeklabor.de/legal-notice/#impressum + geekdocPrivacyPolicy: https://geeklabor.de/legal-notice/#datenschutzerkl%C3%A4rung diff --git a/exampleSite/content/usage/configuration.md b/exampleSite/content/usage/configuration.md index 8c3231f..4fac50f 100644 --- a/exampleSite/content/usage/configuration.md +++ b/exampleSite/content/usage/configuration.md @@ -41,6 +41,14 @@ # (Optional, default true) Enables search function with flexsearch. # Index is built on the fly and might slowdown your website. geekdocSearch = false + + # (Optional, default none) Add a link to your Legal Notice page to the site footer. + # It can be either a remote url or a local file path relative to your content directory. + geekdocLegalNotice = 'https://blog.example.com/legal' + + # (Optional, default none) Add a link to your Privacy Policy page to the site footer. + # It can be either a remote url or a local file path relative to your content directory. + geekdocPrivacyPolicy = '/privacy' ``` {{< /tab >}} @@ -85,6 +93,14 @@ params: # (Optional, default true) Enables search function with flexsearch. # Index is built on the fly and might slowdown your website. geekdocSearch: false + + # (Optional, default none) Add a link to your Legal Notice page to the site footer. + # It can be either a remote url or a local file path relative to your content directory. + geekdocLegalNotice: https://blog.example.com/legal + + # (Optional, default none) Add a link to your Privacy Policy page to the site footer. + # It can be either a remote url or a local file path relative to your content directory. + geekdocPrivacyPolicy: /privacy ``` {{< /tab >}} diff --git a/layouts/partials/page-footer.html b/layouts/partials/page-footer.html index 0cece83..383d49e 100644 --- a/layouts/partials/page-footer.html +++ b/layouts/partials/page-footer.html @@ -43,7 +43,7 @@ {{ end }} -