Rev | Line | |
---|
[16971] | 1 | {{ if and .Site.Params.permanentTopNav .Site.Params.stickyNav }} |
---|
| 2 | <header class="sticky"> |
---|
| 3 | {{ else }} |
---|
| 4 | <header> |
---|
| 5 | {{ end }} |
---|
| 6 | <div class="container"> |
---|
| 7 | <div class="logo"> |
---|
| 8 | <a href="{{ .Site.BaseURL | relLangURL }}" class="logo"> |
---|
| 9 | {{ if and (isset .Site.Params "customimage") (ne .Site.Params.customImage "") }} |
---|
| 10 | <img src="{{ .Site.Params.customImage | relURL }}" alt=""> |
---|
| 11 | {{ else }} |
---|
| 12 | {{ $avatarEmail := "" }} |
---|
| 13 | {{ if not (eq .Site.Params.avatarEmail nil) }} |
---|
| 14 | {{ $avatarEmail = .Site.Params.avatarEmail }} |
---|
| 15 | {{ else }} |
---|
| 16 | {{ $avatarEmail = .Site.Params.gravatarEMail }} |
---|
| 17 | {{ end }} |
---|
| 18 | <img src="https://seccdn.libravatar.org/avatar/{{ md5 $avatarEmail }}?d=mm&size=200" alt=""> |
---|
| 19 | {{ end }} |
---|
| 20 | |
---|
| 21 | <span class="overlay"><i class="fa {{ .Site.Params.overlayIcon | default "fa-home" }}"></i></span> |
---|
| 22 | </a> |
---|
| 23 | </div> |
---|
| 24 | <div class="titles"> |
---|
| 25 | <h3 class="title"> |
---|
| 26 | <a href="{{ .Site.BaseURL | relLangURL }}"> |
---|
| 27 | {{ .Site.Title | default "My cool new blog" }} |
---|
| 28 | </a> |
---|
| 29 | </h3> |
---|
| 30 | |
---|
| 31 | {{ with .Site.Params.Subtitle }} |
---|
| 32 | <span class="subtitle">{{ . }}</span> |
---|
| 33 | {{ end }} |
---|
| 34 | </div> |
---|
| 35 | |
---|
| 36 | {{ if and (gt .Site.Languages 1) (.Site.Params.showHeaderLanguageChooser | default true) }} |
---|
| 37 | {{- $language := .Language -}} |
---|
| 38 | <div class="languages"> |
---|
| 39 | {{ range $.Site.Home.AllTranslations }} |
---|
| 40 | {{ if eq $language .Language }} |
---|
| 41 | <a href="{{ .Permalink }}" class="active">{{ .Language }}</a> |
---|
| 42 | {{ else }} |
---|
| 43 | <a href="{{ .Permalink }}">{{ .Language }}</a> |
---|
| 44 | {{ end }} |
---|
| 45 | {{ end }} |
---|
| 46 | </div> |
---|
| 47 | {{ end }} |
---|
| 48 | |
---|
| 49 | {{ if .Site.Params.permanentTopNav }} |
---|
| 50 | <div class="toggler permanentTopNav"> |
---|
| 51 | {{ else }} |
---|
| 52 | <div class="toggler"> |
---|
| 53 | {{ end }} |
---|
| 54 | <i class="fa fa-bars" aria-hidden="true"></i> |
---|
| 55 | </div> |
---|
| 56 | </div> |
---|
| 57 | </header> |
---|
Note: See
TracBrowser for help on using the repository browser.