From 6fb49b31bf03153b8f9645a3b1e92258d5675d5d Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Wed, 18 Oct 2017 17:23:42 +0000 Subject: [PATCH] Add visual attribution --- exampleSite/config.toml | 1 + i18n/de.yaml | 2 ++ i18n/en.yaml | 2 ++ layouts/partials/footer.html | 16 ++++++++++++++++ 4 files changed, 21 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2e7d49c1..cb84185b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,6 +12,7 @@ googleAnalytics = "" [params] name = "Okkur Labs" description = "Open Source Theme for your next project" + attribution = "true" # Branding options [params.branding] diff --git a/i18n/de.yaml b/i18n/de.yaml index 4d541b2c..90c4dd5f 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,4 +1,6 @@ # General +- id: attribution + translation: "Webseite basiert auf" - id: de translation: "deutsch" diff --git a/i18n/en.yaml b/i18n/en.yaml index d74cccb1..d061b27b 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,4 +1,6 @@ # General +- id: attribution + translation: "Website based on" - id: en translation: "English" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index aea71f53..c8ebd579 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -30,6 +30,22 @@ + {{ if .Site.Params.attribution }} +
+ +
+ {{ end }} {{ if .Site.Menus.legalfooter }}