From 991a343d488ca19cd85a61847876851fedd0419a Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 19 Dec 2016 03:42:15 +0000 Subject: [PATCH] contact widget: Add office hours and Skype options --- exampleSite/config.toml | 4 +++- layouts/partials/widgets/contact.html | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ce981907..6c0b5ba3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,8 +21,10 @@ googleAnalytics = "" organization = "Stanford University" avatar = "portrait.jpg" email = "test@example.org" - address = "Stanford AI Lab, Stanford University, California, 90210, USA." + 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" + skype = "echo123" # Enable Keybase in Contact section by entering your keybase.io username. keybase = "" diff --git a/layouts/partials/widgets/contact.html b/layouts/partials/widgets/contact.html index f61abcaa..07d9bbf1 100644 --- a/layouts/partials/widgets/contact.html +++ b/layouts/partials/widgets/contact.html @@ -40,6 +40,15 @@ {{ end }} + {{ with $.Site.Params.skype }} +
  • + + + {{- if $autolink }}{{ . }}{{ else }}{{ . }}{{ end -}} + +
  • + {{ end }} + {{ with $.Site.Params.address }}
  • @@ -47,6 +56,13 @@
  • {{ end }} + {{ with $.Site.Params.office_hours }} +
  • + + {{ . }} +
  • + {{ end }} +