hugo-theme-readable

Fork of https://github.com/cjtheham/hugo-theme-readable
git clone https://git.eamoncaddigan.net/hugo-theme-readable.git
Log | Files | Refs | README | LICENSE

header.html (636B)


      1 <h1>{{ $.Site.Title }}</h1>
      2 <p>{{ $.Site.Params.subtitle }}</p>
      3 
      4 <!-- readable.css v1.1.0 introduced different navbar styles and defaults to a
      5 navbar without animations. We default to "classy" to keep the animations and be
      6 backwards compatible to earlier versions of this theme without requiring a
      7 config change. -->
      8 {{ $navbar_style := (default "classy" $.Site.Params.navbar_style) }}
      9 <nav data-style={{ $navbar_style }}>
     10   {{ range .Site.Menus.main -}}
     11   {{ if eq $navbar_style "classy" }}<span>{{ end }}
     12       <a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
     13   {{ if eq $navbar_style "classy" }}</span>{{ end }}
     14   {{- end }}
     15 </nav>