small fixes

This commit is contained in:
teldra 2022-04-04 19:28:17 +02:00
parent f165a06f82
commit c014d309d0
4 changed files with 30 additions and 45 deletions

View File

@ -237,6 +237,10 @@ input, textarea {
max-width: auto;
}
.align_menu {
list-style: none; text-align: right;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...}

View File

@ -1,29 +1,6 @@
{{ $s := .Site.Params }}
<section class="sidebar_inner">
{{ if gt .Site.Taxonomies.categories 0 }}
<a href="{{ "/news" | relLangURL}}"><h3>{{ T "news" }}</h3></a>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
{{ end }}
{{ if gt .Site.Taxonomies.events 0 }}
<a href="{{ "/events" | relLangURL}}"><h3>{{ T "events" }}</h3></a>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li style="list-style: none;"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
{{ end }}
{{ partial "structure/sidebar_submenu" . }}
{{ if .IsHome }}
<h4>{{ "Languages" }}</h3>
{{ range .Translations }}

View File

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

View File

@ -2,27 +2,7 @@
<details>
<summary style="list-style: none; text-align: right;">Menü ☰</summary>
<p>
<li style="list-style: none; text-align: right;"><a href="{{ "/news" | relLangURL}}"><b>{{ "news" | T }}</b></a></li>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li style="list-style: none; text-align: right;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
<li style="list-style: none; text-align: right; margin-top: 1rem;"><a href="{{ "/events" | relLangURL}}"><b>{{ "events" | T }}</b></a></li>
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<li style="list-style: none; text-align: right;"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></li>
{{ end }}
{{ partial "structure/sidebar_submenu" . }}
{{ if .IsHome }}
<div class="footer_color" style="margin-top: 1rem; text-align: right;"><b>Languages</b></div>
{{ range $.Site.Home.AllTranslations }}