mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
Add option to disable email/phone linking in Contact section
This commit is contained in:
parent
1a20f5e6d7
commit
be17a08fda
2 changed files with 13 additions and 1 deletions
|
@ -20,7 +20,7 @@ googleAnalytics = ""
|
||||||
address = "Stanford AI Lab, Stanford University, California, 90210, USA."
|
address = "Stanford AI Lab, Stanford University, California, 90210, USA."
|
||||||
phone = "888 888 88 88"
|
phone = "888 888 88 88"
|
||||||
|
|
||||||
# Date format (refer to Go's formatting options)
|
# Date format (refer to Go's date format: http://flippinggodateformat.com )
|
||||||
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
|
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
|
||||||
date_format = "Mon, Jan 2, 2006"
|
date_format = "Mon, Jan 2, 2006"
|
||||||
|
|
||||||
|
@ -46,6 +46,10 @@ googleAnalytics = ""
|
||||||
institution = "Massachusetts Institute of Technology"
|
institution = "Massachusetts Institute of Technology"
|
||||||
year = 2008
|
year = 2008
|
||||||
|
|
||||||
|
[params.contact]
|
||||||
|
# Automatically link email and phone?
|
||||||
|
autolink = true
|
||||||
|
|
||||||
# Social/Academic Networking
|
# Social/Academic Networking
|
||||||
#
|
#
|
||||||
# Icon pack "fa" includes the following social network icons:
|
# Icon pack "fa" includes the following social network icons:
|
||||||
|
|
|
@ -3,14 +3,22 @@
|
||||||
{{ with .Site.Params.phone }}
|
{{ with .Site.Params.phone }}
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-phone fa-fw" aria-hidden="true"></i>
|
<i class="fa fa-phone fa-fw" aria-hidden="true"></i>
|
||||||
|
{{ if and (isset $.Site.Params.contact "autolink") (eq $.Site.Params.contact.autolink false) }}
|
||||||
|
<span>{{ . }}</span>
|
||||||
|
{{ else }}
|
||||||
<span><a href="tel:{{ . }}">{{ . }}</a></span>
|
<span><a href="tel:{{ . }}">{{ . }}</a></span>
|
||||||
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Site.Params.email }}
|
{{ with .Site.Params.email }}
|
||||||
<li>
|
<li>
|
||||||
<i class="fa fa-envelope fa-fw" aria-hidden="true"></i>
|
<i class="fa fa-envelope fa-fw" aria-hidden="true"></i>
|
||||||
|
{{ if and (isset $.Site.Params.contact "autolink") (eq $.Site.Params.contact.autolink false) }}
|
||||||
|
<span>{{ . }}</span>
|
||||||
|
{{ else }}
|
||||||
<span><a href="mailto:{{ . }}">{{ . }}</a></span>
|
<span><a href="mailto:{{ . }}">{{ . }}</a></span>
|
||||||
|
{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue