2023-05-17 20:13:27 -05:00
|
|
|
<!-- 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 }}>
|
2024-05-18 17:43:45 -05:00
|
|
|
{{ if .IsHome }}
|
|
|
|
{{ range .Site.Menus.main -}}
|
|
|
|
{{ if eq $navbar_style "classy" }}<span>{{ end }}
|
|
|
|
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
|
|
|
{{ if eq $navbar_style "classy" }}</span>{{ end }}
|
|
|
|
{{- end }}
|
2024-05-29 12:46:47 -05:00
|
|
|
|
2023-05-02 16:15:28 -05:00
|
|
|
</nav>
|
2024-05-18 17:43:45 -05:00
|
|
|
<h1>{{ $.Site.Title }}</h1>
|
2024-05-29 13:20:45 -05:00
|
|
|
<p>{{ $.Site.Params.subtitle }}</p>
|
2024-05-20 10:20:24 -05:00
|
|
|
{{ else }}
|
2024-05-18 17:43:45 -05:00
|
|
|
<a href="/">Go Home</a>
|
2024-05-29 12:46:47 -05:00
|
|
|
{{ $path := .Path }}
|
|
|
|
{{ $bpath := path.Dir $path }}
|
|
|
|
{{ if eq $bpath "/" }}
|
|
|
|
{{ else }}
|
|
|
|
<a href="{{ $bpath }}">Back to {{ $bpath }}</a>
|
|
|
|
{{ end }}
|
2024-05-18 17:43:45 -05:00
|
|
|
</nav>
|
|
|
|
{{ end }}
|
|
|
|
|