diff options
Diffstat (limited to 'layouts/partials/_header_links.html')
-rw-r--r-- | layouts/partials/_header_links.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/partials/_header_links.html b/layouts/partials/_header_links.html new file mode 100644 index 0000000..572bb6c --- /dev/null +++ b/layouts/partials/_header_links.html @@ -0,0 +1,33 @@ +{{ with .Data.features.about }} + {{ $sep := $.Separator | default "<br>" }} + {{- if $.Header.contact -}} + <span class="contact"> + {{- with .phone -}} + {{- if $.useFontAwesome }}<i class="fas fa-tty"></i> {{ end -}} + <!-- fas fa-phone-alt --> + {{- . -}} + {{- end -}} + {{- if and .phone .email }} {{- $sep | safeHTML -}} {{ end -}} + {{- with .email -}} + <a href="mailto:{{- . -}}" class="no-external-icon"> + {{- if $.useFontAwesome }}<i class="fas fa-envelope"></i> {{ end -}} + {{- . -}} + </a> + {{- end -}} + </span> + {{- end -}} + + {{- if $.Header.links -}} + <span class="contact-links"> + {{- $last := sub (len .links) 1 -}} + {{- range $i, $e := .links -}} + <a href="{{ $e.url }}" class="no-external-icon"> + {{- if and $e.icon $.useFontAwesome }}<i class="{{ $e.icon }}"></i> {{ end -}} + {{- $e.title -}} + </a> + {{- if ne $i $last }} {{- $sep | safeHTML -}} {{ end -}} + {{- end -}} + </span> + {{- end -}} + +{{- end -}}
\ No newline at end of file |