hugo-theme-readable/layouts/partials/header.html

16 lines
636 B
HTML
Raw Permalink Normal View History

2023-01-30 13:14:33 -06:00
<h1>{{ $.Site.Title }}</h1>
2023-02-16 13:51:44 -06:00
<p>{{ $.Site.Params.subtitle }}</p>
<!-- readable.css v1.1.0 introduced different navbar styles and defaults to a
navbar without animations. We default to "classy" to keep the animations and be
backwards compatible to earlier versions of this theme without requiring a
config change. -->
{{ $navbar_style := (default "classy" $.Site.Params.navbar_style) }}
<nav data-style={{ $navbar_style }}>
2023-02-16 13:51:44 -06:00
{{ range .Site.Menus.main -}}
{{ if eq $navbar_style "classy" }}<span>{{ end }}
2023-02-16 13:51:44 -06:00
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ if eq $navbar_style "classy" }}</span>{{ end }}
2023-02-16 13:51:44 -06:00
{{- end }}
</nav>