hugo-theme-paradox/layouts/partials/site-header.html

27 lines
869 B
HTML
Raw Normal View History

2022-10-11 09:54:07 +00:00
<header class="site-header">
<div class="container">
2022-12-18 14:10:54 +00:00
<div class='hang-left'>
<a href="/" class="site-masthead">
{{ with .Site.Params.masthead.image }}
<img class="site-masthead__image" height="32" src="{{.}}">
{{ end }}
{{ with resources.Get .Site.Params.masthead.svg }}
{{ .Content | safeHTML }}
{{ end }}
{{if .Site.Params.masthead.hideTitle}}
{{ else }}
<p class="site-title">{{or .Site.Params.masthead.title .Site.Title}}</p>
{{ end }}
</a>
{{ partial "color-switcher.html" . }}
</div>
{{ if in .Site.Params.search.showIn "header" }}
2022-10-16 22:15:34 +00:00
{{ partial "search/search-form.html" . }}
2022-12-18 14:10:54 +00:00
{{ end }}
2022-10-14 08:36:35 +00:00
{{ partial "nav-header.html" . }}
2022-10-11 09:54:07 +00:00
</div>
</header>
<div class="scroll-margin" style="position: relative;">
<div id="top" style="scroll-margin-top: var(--header-height);"></div>
</div>
2022-10-14 08:36:35 +00:00
{{ partial "nav-docs.html" . }}