small fixes

This commit is contained in:
teldra 2022-04-03 02:33:46 +02:00
parent 12ac6cf0e9
commit 9323c0cd75
11 changed files with 38 additions and 32 deletions

View File

@ -236,4 +236,16 @@ other = "Über uns"
other = "Wichtige Neuigkeiten"
[all]
other = "Alle"
other = "Alle"
[ku]
other = "Kurdî"
[en]
other = "English"
[de]
other = "Deutsch"
[translations]
other = "Übersetzungen"

View File

@ -1,12 +1,12 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
{{- partial "structure/head.html" . -}}
{{ block "css" . -}}{{- end }}
<body>
<div class="container">
<header>
{{ partialCached "header" . }}
{{ partial "submenu" . }}
{{ partialCached "structure/header" . }}
{{ partial "structure/submenu" . }}
</header>
<div class="content">
<main>
@ -20,7 +20,7 @@
</aside>
</div>
<footer>
{{- partial "footer" . -}}
{{- partial "structure/footer" . -}}
</footer>
</div>
</body>

View File

@ -194,5 +194,5 @@
{{- end -}}
{{ define "sidebar" }}
{{- partial "sidebar" . }}
{{- partial "structure/sidebar" . }}
{{ end }}

View File

@ -232,5 +232,5 @@
{{ end }}
{{ define "sidebar" }}
{{- partial "sidebar" . }}
{{- partial "structure/sidebar" . }}
{{ end }}

View File

@ -1,18 +0,0 @@
{{ $all_lang := $.Site.Home.Translations }}
{{ range site.RegularPages }}
<a href="{{ .Permalink}}">{{ .Name }}:</a>
{{ if .Translations }}
{{ range .Translations }}
{{ $t1 := .Language }}
{{ range $all_lang }}
{{- $a := .Language -}}
{{- $b := $.Site.Language.Lang -}}
{{ if ne $t1 .Language }}
missing: {{ .Language }}<br>
{{ end }}
{{ end }}
{{ end }}
{{ else }}
no translations<br>
{{ end }}
{{ end }}

View File

@ -45,4 +45,20 @@
</div>
</div>
</div>
</article>
<div id="article_footer" style="margin-top: 1rem; display: flex; align-items: baseline; font-size: x-small; border-top: 1px solid var(--background); color: var(--text-muted);">
{{ if .IsTranslated }}
<div style="flex-grow: 0; flex-direction: column; width: 10rem;">
<b>{{ "Translations" }}</b>
{{ range .Translations }}
<li style="list-style: none; text-decoration: none; font-size: x-small; color: var(--text-muted);">
<a href="{{ .Permalink }}" class="underline">{{ T .Lang }}</a>
</li>
{{ end }}
</div>
{{ end }}
<div style="flex-grow: 1; flex-direction: column;">
<b>Verfasst am</b><br>
{{ .Date | time.Format ":date_full" }}
</div>
</div>
</article>

View File

@ -16,7 +16,7 @@
<h4>{{ "Languages" }}</h3>
{{ range .Translations }}
{{ if ne .Lang $.Lang }}
<li style="list-style: none;"><a href="{{- .Permalink -}}" class="underline">{{- .Lang -}}</a></li>
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- T .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ end }}

View File

@ -5,10 +5,6 @@
<div class="footer_color" style="margin-top: 0; text-align: right;"><b>Termine</b></div>
<li style="list-style: none; text-align: right;"><a href="{{ "/events" | relLangURL}}">{{ "all" | T }}</a></li>
<!-- {{- $recurrent := where .Site.RegularPages "Params.recurrent" true }}
{{ if $recurrent }}
<li style="list-style: none; text-align: right;"><a href="{{ "/" | relLangURL}}{{ "recurrent" | urlize }}">{{ "recurrent" | T | humanize }}</a></li>
{{ end }} -->
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
@ -25,7 +21,7 @@
<li style="list-style: none; text-align: right;"><a href="{{- .Permalink -}}" class="underline">{{- .Lang -}}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</p>
</details>
</div>