mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 20:23:18 -06:00
28 lines
754 B
HTML
28 lines
754 B
HTML
<h2 class="header">
|
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
|
</h2>
|
|
|
|
<nav class="navbar">
|
|
{{ with .Site.Home }}
|
|
<a class="navbar-item" href="{{ .Permalink | absLangURL }}">{{ .Title }}</a>
|
|
{{ end }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
<a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
</nav>
|
|
|
|
{{ if .Site.IsMultiLingual }}
|
|
<nav class="langbar">
|
|
{{ range .Site.Home.AllTranslations }}
|
|
|
|
{{ if eq .Language $.Site.Language }}
|
|
<a class="langbar-item selected" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
{{ else }}
|
|
<a class="langbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
</nav>
|
|
{{ end }}
|