hermit-V2/layouts/partials/header.html

31 lines
1.4 KiB
HTML
Raw Normal View History

<header id="site-header" class="animated slideInUp">
2018-10-23 01:15:50 -04:00
<div class="hdr-wrapper section-inner">
<div class="hdr-left">
<div class="site-branding">
<a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a>
</div>
2023-11-12 10:26:10 -05:00
<nav class="site-nav hide-in-mobile">{{- partialCached "menu.html" . -}}</nav>
2018-10-23 01:15:50 -04:00
</div>
<div class="hdr-right hdr-icons">
2018-12-31 10:23:46 -05:00
{{ if (or .Params.images .Params.featuredImg) -}}
2023-11-12 10:26:10 -05:00
<button id="img-btn" class="hdr-btn" title="{{i18n "featuredImage"}}">{{- partial "svg.html" (dict "context" . "name" "featuredImg") -}}</button>
{{- end }}
2018-12-28 09:52:23 -05:00
{{- with .Params.toc -}}
2023-11-12 10:26:10 -05:00
<button id="toc-btn" class="hdr-btn desktop-only-ib" title="{{i18n "tableOfContents"}}">{{- partial "svg.html" (dict "context" . "name" "toc") -}}</button>
2023-11-04 09:07:47 -04:00
{{- end -}}
2023-10-31 07:01:32 -04:00
{{- with .Site.Params.socialLinks -}}
2023-11-12 10:26:10 -05:00
<span class="hdr-social hide-in-mobile">{{- partialCached "social-icons.html" . -}}</span>
{{- end -}}
2023-11-04 09:07:47 -04:00
{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}}{{- partial "social-share.html" . -}}{{- end -}}
2023-11-12 10:26:10 -05:00
<button id="menu-btn" class="hdr-btn" title="{{i18n "menu"}}">{{- partial "svg.html" (dict "context" . "name" "menuBtn") -}}</button>
2018-10-23 01:15:50 -04:00
</div>
</div>
</header>
<div id="mobile-menu" class="animated fast">
2018-10-23 01:15:50 -04:00
<ul>
{{- range .Site.Menus.main }}
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
2018-10-23 01:15:50 -04:00
{{- end }}
</ul>
</div>