hugo-djem-so

Hugo theme for my blog

git clone git://git.shimmy1996.com/hugo-djem-so.git

nav.html (415B)

    1 <nav>
    2   {{ if .IsHome }}
    3   {{- range $i, $menu := .Site.Menus.main -}}
    4   {{- if (ge $i 1) }}&nbsp;|&nbsp;{{ end -}}
    5   <a href="{{ .URL | relURL }}">{{ .Name }}</a>
    6   {{- end -}}
    7   {{- else -}}
    8   <a href="{{ .Site.Home.Permalink | relURL }}">←{{ .Site.Title }}</a>
    9   {{- end -}}
   10   {{- range .Translations -}}
   11   &nbsp;|&nbsp;<a href="{{ .Permalink | relURL }}">{{ .Language.LanguageName }}</a>
   12   {{- end -}}
   13 </nav>