helloworldhellwoorldeofoehfafihuofijoahfgyioafjpafhzguirg uvuizerurg_ozerygvoiuhrgreqiogrehh
This commit is contained in:
parent
3379242f31
commit
c00a301523
79 changed files with 1614 additions and 3 deletions
29
themes/vmems-theme/layouts/partials/header.html
Normal file
29
themes/vmems-theme/layouts/partials/header.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<header class=navbar>
|
||||
<a href="/" class=navbar-logo-container>
|
||||
{{ if default false .Site.Params.disabled_logo }}
|
||||
<span>{{ .Site.Params.logo_text }}</span>
|
||||
{{ else }}
|
||||
<img src="{{ .Site.Params.logo | relURL }}" alt="{{ .Title }} logo" class="navbar-logo desktop-only-element">
|
||||
<img src="{{ .Site.Params.logo_small | relURL}}" alt="{{ .Title }} logo" class="navbar-logo mobile-only-element">
|
||||
{{ end }}
|
||||
</a>
|
||||
<input type=checkbox id=navbar-list-toggler hidden>
|
||||
{{ $current := . }}
|
||||
<ul class="desktop-only-element navbar-list">
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ $active := "" }}
|
||||
{{ $menu_item_url := .URL | relLangURL }}
|
||||
{{ $page_url:= $current.RelPermalink | relLangURL }}
|
||||
|
||||
{{ if eq $menu_item_url $page_url }}
|
||||
{{ $active = "active" }}
|
||||
{{ end }}
|
||||
{{ if (and (hasPrefix $page_url "/blog/") (eq $menu_item_url "/blog/")) }}
|
||||
{{ $active = "active" }}
|
||||
{{ end }}
|
||||
<li class="navbar-list-item {{ $active }}">{{ if .URL }}<a href="{{ .URL }}">{{ .Name }}</a>{{ else }}{{ .Name }}{{ end }}</li>
|
||||
|
||||
{{ end }}
|
||||
</ul>
|
||||
<label id=navbar-list-toggler-label for=navbar-list-toggler class="mobile-only-element"><i class="fa-solid fa-bars"></i></label>
|
||||
</header>
|
||||
Loading…
Add table
Add a link
Reference in a new issue