contact widget: Add office hours and Skype options

This commit is contained in:
George Cushen 2016-12-19 03:42:15 +00:00
commit 991a343d48
2 changed files with 19 additions and 1 deletions

View file

@ -21,8 +21,10 @@ googleAnalytics = ""
organization = "Stanford University" organization = "Stanford University"
avatar = "portrait.jpg" avatar = "portrait.jpg"
email = "test@example.org" 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" phone = "888 888 88 88"
skype = "echo123"
# Enable Keybase in Contact section by entering your keybase.io username. # Enable Keybase in Contact section by entering your keybase.io username.
keybase = "" keybase = ""

View file

@ -40,6 +40,15 @@
</li> </li>
{{ end }} {{ end }}
{{ with $.Site.Params.skype }}
<li>
<i class="fa-li fa fa-skype fa-2x" aria-hidden="true"></i>
<span>
{{- if $autolink }}<a href="skype:{{ . }}?call">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
</span>
</li>
{{ end }}
{{ with $.Site.Params.address }} {{ with $.Site.Params.address }}
<li> <li>
<i class="fa-li fa fa-map-marker fa-2x" aria-hidden="true"></i> <i class="fa-li fa fa-map-marker fa-2x" aria-hidden="true"></i>
@ -47,6 +56,13 @@
</li> </li>
{{ end }} {{ end }}
{{ with $.Site.Params.office_hours }}
<li>
<i class="fa-li fa fa-clock-o fa-2x" aria-hidden="true"></i>
<span>{{ . }}</span>
</li>
{{ end }}
</ul> </ul>
</div> </div>