small fixes

This commit is contained in:
teldra 2022-04-11 17:06:46 +02:00
parent 18ed6b38e4
commit 11ee4d6bcf
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{{ if gt .Site.Taxonomies.categories 0 }}
<a href="{{ "/news" | relLangURL}}"><h3 class="align_menu">{{ if i18n "news" }}{{ i18n "news" }}{{ else }}{{ "News" }}{{ end }}</h3></a>
<h3 class="align_menu"><a href="{{ "/news" | relLangURL}}">{{ if i18n "news" }}{{ i18n "news" }}{{ else }}{{ "News" }}{{ end }}</a></h3>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
@ -7,11 +7,11 @@
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
<div class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
{{ end }}
{{ if gt .Site.Taxonomies.events 0 }}
<a href="{{ "/events" | relLangURL}}"><h3 class="align_menu">{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "Events" }}{{ end }}</h3></a>
<h3 class="align_menu"><a href="{{ "/events" | relLangURL}}">{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "Events" }}{{ end }}</a></h3>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
@ -19,7 +19,7 @@
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
<div class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
{{ end }}
{{ if .IsHome }}

View File

@ -1,6 +1,6 @@
<div id="headerinner">
<a href="/">
<img src="/images/logo.svg" alt="SVG mit img laden" width="auto" height="100%" >
<img src="/images/logo.svg" alt="SVG mit img laden" height="100%" >
</a>
<div id="menu">
{{- range site.Params.mainMenu -}}