From 99e0edf9bb63dbdea003a255cb7a3a2ff4f80e1b Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 10 Sep 2018 19:50:54 +0100 Subject: [PATCH] config: Allow twitter social icon to be commented out Breaking change: `twitter` option added to `config.toml` for social sharing metadata --- exampleSite/config.toml | 1 + layouts/partials/header.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 139e33a5..fe457e7e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -70,6 +70,7 @@ enableGitInfo = false address = "Building 1 Room 1, Stanford University, California, 90210, USA" office_hours = "Monday 10:00 to 13:00 or email for appointment" phone = "888 888 88 88" + twitter = "" skype = "echo123" telegram = "" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 56739b8d..80df0363 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -118,9 +118,9 @@ - {{ range where $.Site.Params.social ".icon" "twitter" }} - - + {{ with .Site.Params.twitter }} + + {{ end }}