From 7ebf1b9f71a7f4caf7fe72ba2af06e941a528e2b Mon Sep 17 00:00:00 2001 From: Olof Nord Date: Tue, 16 Jun 2020 21:48:32 +0200 Subject: [PATCH 1/2] Add Xing and GitLab services to the footer partial This closes #75 --- exampleSite/config.toml | 2 ++ i18n/en.toml | 4 ++++ layouts/partials/footer.html | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8a0436d..cb4436f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -24,7 +24,9 @@ disableKinds = ["taxonomy", "taxonomyTerm"] # This theme does not currently use # Social media links in footer twitter = "TomaNistor" linkedin = "tomanistor" + xing = "" github = "tomanistor" + gitlab = "" facebook = "" # Copyright and theme author credit in footer diff --git a/i18n/en.toml b/i18n/en.toml index 645eda0..5e24fd6 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -35,7 +35,11 @@ other = "Copyright" other = "Facebook" [github] other = "GitHub" +[gitlab] +other = "GitLab" [linkedin] other = "LinkedIn" +[xing] +other = "Xing" [twitter] other = "Twitter" \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0ce30cb..f699289 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,10 +8,18 @@
{{ i18n "github" }}
{{ end }} + {{ if .Site.Params.gitlab }} +
{{ i18n "gitlab" }}
+ {{ end }} + {{ if .Site.Params.linkedin }}
{{ i18n "linkedin" }}
{{ end }} + {{ if .Site.Params.xing }} +
{{ i18n "xing" }}
+ {{ end }} + {{ if .Site.Params.twitter }}
{{ i18n "twitter" }}
{{ end }} From ffc94b2ddbfafe14f8bbabbf2c402135f9a96f0d Mon Sep 17 00:00:00 2001 From: Olof Nord Date: Tue, 16 Jun 2020 21:51:27 +0200 Subject: [PATCH 2/2] Also bring the main readme up to date --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 46328c7..c5e6fa4 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,9 @@ disableKinds = ["taxonomy", "taxonomyTerm"] # This theme does not currently use # Social media links in footer twitter = "TomaNistor" linkedin = "tomanistor" + xing = "" github = "tomanistor" + gitlab = "" facebook = "" # Copyright and theme author credit in footer