forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
f165a06f82
commit
c014d309d0
|
@ -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) {...}
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
24
themes/buha/layouts/partials/structure/sidebar_submenu.html
Normal file
24
themes/buha/layouts/partials/structure/sidebar_submenu.html
Normal 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 }}
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user