Fork off the Project

This commit is contained in:
Evan G. 2024-05-18 17:43:45 -05:00
parent affe4cced4
commit 1891bd816c
Signed by: fbievan
GPG key ID: 55FAB8CB6842F080
3 changed files with 28 additions and 8 deletions

View file

@ -1,15 +1,20 @@
<h1>{{ $.Site.Title }}</h1>
<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 }}>
{{ 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 }}
{{ 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 }}
</nav>
<h1>{{ $.Site.Title }}</h1>
{{ else if .IsPage }}
<a href="/">Go Home</a>
</nav>
<p>{{ $.Site.Params.subtitle }}</p>
{{ end }}