From 2fb2a08382d8171ee316a910d563826d6509bf86 Mon Sep 17 00:00:00 2001 From: Dudi Levy Date: Mon, 22 Jan 2018 22:10:03 +0200 Subject: [PATCH 1/4] Added the linkedin parameter and placeholder icon --- exampleSite/config.toml | 1 + layouts/partials/footer.html | 1 + layouts/partials/header-sori-tag.html | 2 ++ layouts/partials/header-sori-term.html | 2 ++ layouts/partials/header-sori.html | 2 ++ layouts/partials/header.html | 2 ++ 6 files changed, 10 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 672d9a0..bb50662 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,6 +21,7 @@ canonifyurls = true twitterName = "faketryghost" fbName = "fakeghost" githubName = "eueung" + linkedinName = "eueung" logo = "hugo-logo.png" orgName = "EM" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index bc5e1c0..3706b76 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -9,6 +9,7 @@ {{with .Site.Params.fbName}}Facebook{{end}} {{with .Site.Params.twitterName}}Twitter{{end}} {{with .Site.Params.githubName}}Github{{end}} + {{with .Site.Params.linkedinName}}LinkedIn{{end}} diff --git a/layouts/partials/header-sori-tag.html b/layouts/partials/header-sori-tag.html index e915bff..37540da 100644 --- a/layouts/partials/header-sori-tag.html +++ b/layouts/partials/header-sori-tag.html @@ -21,6 +21,8 @@ {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} {{ if .Site.Params.RSSLink}} Subscribe diff --git a/layouts/partials/header-sori-term.html b/layouts/partials/header-sori-term.html index c2d3f6f..44e278d 100644 --- a/layouts/partials/header-sori-term.html +++ b/layouts/partials/header-sori-term.html @@ -21,6 +21,8 @@ {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} {{ if .Site.Params.RSSLink}} Subscribe diff --git a/layouts/partials/header-sori.html b/layouts/partials/header-sori.html index ef0fdaa..e325d43 100644 --- a/layouts/partials/header-sori.html +++ b/layouts/partials/header-sori.html @@ -21,6 +21,8 @@ {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} {{ if .Site.Params.RSSLink}} Subscribe diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3507ec4..4e96dd8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -25,6 +25,8 @@

{{ .Site.Params.subtitle }}

{{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} {{ if .Site.Params.RSSLink}} Subscribe From e853c4001c0ed2054a065d3ec4a9027c6fd47f5c Mon Sep 17 00:00:00 2001 From: Dudi Levy Date: Mon, 22 Jan 2018 23:16:32 +0200 Subject: [PATCH 2/4] Added Medium social netowrk link / parameter / icon --- exampleSite/config.toml | 2 ++ layouts/partials/footer.html | 2 ++ layouts/partials/header-sori-tag.html | 4 ++++ layouts/partials/header-sori-term.html | 4 ++++ layouts/partials/header-sori.html | 4 ++++ layouts/partials/header.html | 4 ++++ 6 files changed, 20 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 672d9a0..4ad2586 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,6 +21,8 @@ canonifyurls = true twitterName = "faketryghost" fbName = "fakeghost" githubName = "eueung" + linkedinName = "eueung" + mediumName = "" logo = "hugo-logo.png" orgName = "EM" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index bc5e1c0..b551174 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -9,6 +9,8 @@ {{with .Site.Params.fbName}}Facebook{{end}} {{with .Site.Params.twitterName}}Twitter{{end}} {{with .Site.Params.githubName}}Github{{end}} + {{with .Site.Params.linkedinName}}LinkedIn{{end}} + {{with .Site.Params.mediumName}}Medium{{end}} diff --git a/layouts/partials/header-sori-tag.html b/layouts/partials/header-sori-tag.html index e915bff..dde3ddc 100644 --- a/layouts/partials/header-sori-tag.html +++ b/layouts/partials/header-sori-tag.html @@ -21,6 +21,10 @@ {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} + + {{ if .Site.Params.mediumName }}{{end}} {{ if .Site.Params.RSSLink}} diff --git a/layouts/partials/header-sori-term.html b/layouts/partials/header-sori-term.html index c2d3f6f..9a2ec21 100644 --- a/layouts/partials/header-sori-term.html +++ b/layouts/partials/header-sori-term.html @@ -21,6 +21,10 @@ {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} + + {{ if .Site.Params.mediumName }}{{end}} {{ if .Site.Params.RSSLink}} diff --git a/layouts/partials/header-sori.html b/layouts/partials/header-sori.html index ef0fdaa..785f760 100644 --- a/layouts/partials/header-sori.html +++ b/layouts/partials/header-sori.html @@ -21,6 +21,10 @@ {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} + + {{ if .Site.Params.mediumName }}{{end}} {{ if .Site.Params.RSSLink}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3507ec4..4445381 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -25,6 +25,10 @@

{{ .Site.Params.subtitle }}

{{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}} + + {{ if .Site.Params.linkedinName }}{{end}} + + {{ if .Site.Params.mediumName }}{{end}} {{ if .Site.Params.RSSLink}} From 1f800c6d992f6aba4e43e145d7f3ccce6e28e290 Mon Sep 17 00:00:00 2001 From: Dudi Levy Date: Tue, 23 Jan 2018 11:16:58 +0200 Subject: [PATCH 3/4] made the supported by optional --- exampleSite/config.toml | 2 ++ layouts/partials/footer.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4ad2586..d54ba3b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -29,6 +29,8 @@ canonifyurls = true orgWebsite = "https://www.telematika.org" orgDescription = "Here is a description placeholder for your org" + showSupport = true + author = "EM" authorAvatar = "img/ghost-icon.png" authorLocation = "Bandung, ID" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b551174..a48bc4a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,7 +2,7 @@ {{ if .Site.Params.RSSLink}} - {{else}} + {{else if .Site.Params.showSubscribe}} {{end}} diff --git a/layouts/partials/header-sori-term.html b/layouts/partials/header-sori-term.html index 9a2ec21..06388d1 100644 --- a/layouts/partials/header-sori-term.html +++ b/layouts/partials/header-sori-term.html @@ -28,7 +28,7 @@ {{ if .Site.Params.RSSLink}} - {{else}} + {{else if .Site.Params.showSubscribe}} {{end}} diff --git a/layouts/partials/header-sori.html b/layouts/partials/header-sori.html index 785f760..b3dcdb7 100644 --- a/layouts/partials/header-sori.html +++ b/layouts/partials/header-sori.html @@ -28,7 +28,7 @@ {{ if .Site.Params.RSSLink}} - {{else}} + {{else if .Site.Params.showSubscribe}} {{end}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4445381..2262936 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -32,7 +32,7 @@

{{ .Site.Params.subtitle }}

{{ if .Site.Params.RSSLink}} - {{else}} + {{else if .Site.Params.showSubscribe}} {{end}}