diff options
author | mertbakir <2335694-mertbakir@users.noreply.gitlab.com> | 2023-12-24 14:17:24 +0300 |
---|---|---|
committer | mertbakir <2335694-mertbakir@users.noreply.gitlab.com> | 2023-12-24 14:17:24 +0300 |
commit | 37e648c1d03444308adeb8b8f1b921a27d18446a (patch) | |
tree | 213e673d58a4eb57c4c36a84e1a9b19c8634d033 /layouts/partials/header.html | |
parent | a4948115181eb177096ef97f368ead78278dd55b (diff) |
CSS & Layout Updates:
- New fields added in education and experience sections.
- Now a section can be separated into multiple pages.
- You can define page number for each item, see experience.yaml
- Header:
- if no avatar is displayed, then contact links will be on the right.
- header will repeat for each page.
- CSS class names are mostly kept unchanged.
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b2ddd55..b4e0111 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,35 +2,16 @@ {{ with .Data.features.about }} <h1 class="name">{{ .name }}</h1> {{ if $.Header.tagline }}<h2 class="tagline">{{ .tagline }}</h2>{{end}} - {{ 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 -}} - <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 }} | {{ end -}} - {{- end -}} - </span> + {{ if $.Header.avatar }} + {{ partial "_header_links" (dict "Header" $.Header "Data" $.Data "useFontAwesome" $.useFontAwesome "Separator" " | ") }} {{ end }} {{ end }} </div> + {{ if .Header.avatar }} <div><img class="avatar right" src="{{ .Header.avatar }}"></div> -{{ end }} +{{ else }} + <div class="title"> + {{ partial "_header_links" (dict "Header" .Header "Data" .Data "useFontAwesome" .useFontAwesome "Separator" "<br>") }} + </div> +{{ end }}
\ No newline at end of file |