mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
BBaoVanC
7bc8a4cb57
- Add vim folds to make organized sections - Rename a lot of classes from post- to page- - Generalize series CSS classes better - Clean up navbar div structure - Remove langpicker and most of multilingual support - many other minor tweaks
22 lines
804 B
HTML
22 lines
804 B
HTML
<header class="header">
|
|
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
|
|
{{ .Site.Title | markdownify }}
|
|
</a>
|
|
</header>
|
|
|
|
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
|
{{ with .Site.Home }}
|
|
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
|
{{ end }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
{{ $isActive := false }}
|
|
{{ if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }}
|
|
{{ $isActive = true }}
|
|
{{ end }}
|
|
<a class="navbar-item{{ if $isActive }} active{{ end }}"
|
|
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
|
href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
</nav>
|