mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-05 00:15:59 -06:00
29 lines
820 B
HTML
29 lines
820 B
HTML
<h2 class="header">
|
|
<a href="{{ "/" | relURL }}">{{ .Site.Title | markdownify }}</a>
|
|
</h2>
|
|
|
|
<nav class="navbar">
|
|
{{ with .Site.GetPage "/" }}
|
|
{{/* if I use relLangURL, then it does /es/es/ instead of /es/ (for example) */}}
|
|
<a class="navbar-item" href="{{ .Permalink | relURL }}">{{ .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 }}
|
|
<b><a class="langbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></b>
|
|
{{ else }}
|
|
<a class="langbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
</nav>
|
|
{{ end }}
|