diff --git a/layouts/partials/widgets/contact.html b/layouts/partials/widgets/contact.html index b50220fe..fc298e7a 100644 --- a/layouts/partials/widgets/contact.html +++ b/layouts/partials/widgets/contact.html @@ -1,5 +1,6 @@ {{ $ := .root }} {{ $page := .page }} +{{ $autolink := default true $page.Params.autolink }}
@@ -18,11 +19,9 @@ {{ with $.Site.Params.email }}
  • - {{ if and (isset $.Params "autolink") (eq $.Params.autolink false) }} - {{ . }} - {{ else }} - {{ . }} - {{ end }} + + {{- if $autolink }}{{ . }}{{ else }}{{ . }}{{ end -}} +
  • {{ end }} @@ -38,11 +37,9 @@ {{ with $.Site.Params.phone }}
  • - {{ if and (isset $.Params "autolink") (eq $.Params.autolink false) }} - {{ . }} - {{ else }} - {{ . }} - {{ end }} + + {{- if $autolink }}{{ . }}{{ else }}{{ . }}{{ end -}} +
  • {{ end }}