resume-a4/layouts/partials/header.html

37 lines
1.1 KiB
HTML
Raw Permalink Normal View History

<div class="title">
{{ with .Data.features.about }}
<h1 class="name">{{ .name }}</h1>
{{ if $.Header.tagline }}<h2 class="tagline">{{ .tagline }}</h2>{{end}}
2021-03-04 00:27:21 +01:00
{{ if $.Header.contact -}}
<span class="contact">
{{- with .phone -}}
{{- if $.useFontAwesome }}<i class="fas fa-phone-square-alt"></i> {{ end -}}
{{- . -}}
{{- end -}}
{{- if and .phone .email }} | {{ end -}}
{{- with .email -}}
2022-04-10 12:42:30 +02:00
<a href="mailto:{{- . -}}" class="no-external-icon">
{{- if $.useFontAwesome }}<i class="fas fa-envelope"></i> {{ end -}}
{{- . -}}
</a>
2021-03-04 00:27:21 +01:00
{{- 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 }} | {{ end -}}
{{- end -}}
</span>
{{ end }}
{{ end }}
2020-09-01 00:03:58 +02:00
</div>
{{ if .Header.avatar }}
<div><img class="avatar right" src="{{ .Header.avatar }}"></div>
{{ end }}