[ci skip] Update the site-navigation partial

This commit is contained in:
Luca Beltrame 2022-04-24 09:19:41 +02:00
parent 2644d68db3
commit 8fada916f2
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -2,7 +2,7 @@
<div class="flex-l justify-between items-center center b">
<a href="{{ .Site.Home.RelPermalink }}" class="site-logo f3 fw4 hover-white no-underline white-90 dib">
{{ with .Site.Params.site_logo }}
<img src="{{ . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}">
<img src="{{ relURL . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}">
{{ else }}
{{ .Site.Title }}
{{ end }}
@ -12,10 +12,10 @@
{{ if .Site.Menus.main }}
<input class="main-menu-button" type="checkbox" id="main-menu-button" />
<label class="main-menu-label" for="main-menu-button"><span class="main-menu-icon"></span></label>
<ul class="main-menu-list pl0 mr3">
<ul class="{{ cond (eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
{{ range .Site.Menus.main }}
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white no-underline white-90 fw4" href="{{ .URL }}" title="{{ .Name }} page">
<a class="hover-white no-underline white-90 fw4" href="{{ .URL }}" title="{{ i18n "pageTitle" . }}">
{{ .Name }}
</a>
</li>