small fixes

This commit is contained in:
teldra 2022-04-11 21:04:28 +02:00
parent f6dc6ebce8
commit 8a24512214
9 changed files with 29 additions and 93 deletions

View File

@ -46,6 +46,7 @@
.align_menu {
list-style: none;
text-align: right;
margin-bottom: .3rem;
}
.notgrow {

View File

@ -1,26 +1,34 @@
{{ if gt .Site.Taxonomies.categories 0 }}
<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) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<div class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
{{ end }}
<div>
<h3 class="align_menu"><a href="{{ "/news" | relLangURL}}">{{ if i18n "news" }}{{ i18n "news" }}{{ else }}{{ "News" }}{{ end }}</a></h3>
{{ if eq .Section "news" }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.categories }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<div class="align_menu"><a href="{{ "categories/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ if gt .Site.Taxonomies.events 0 }}
<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) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<div class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
{{ end }}
<div>
<h3 class="align_menu"><a href="{{ "/events" | relLangURL}}">{{ if i18n "events" }}{{ i18n "events" }}{{ else }}{{ "Events" }}{{ end }}</a></h3>
{{ if eq .Section "events" }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.events }}
{{ $orig := $taxonomyname }}
{{ if ne (i18n $taxonomyname) "" }}
{{ $taxonomyname = i18n $taxonomyname }}
{{ else }}
{{ $taxonomyname = $taxonomyname | humanize }}
{{ end }}
<div class="align_menu"><a href="{{ "events/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ if .IsHome }}
{{ partial "snippets/langs" . }}

View File

@ -1,6 +0,0 @@
{{ site.Title }}<br>
{{ site.Params.imprintdata.street }}<br>
{{ if i18n "pobox" }}{{ i18n "pobox" }}{{ else }}{{ "Po.Box" }}{{ end }} {{ site.Params.imprintdata.pobox }}<br>
{{ site.Params.imprintdata.city }}<br>
{{ if site.Params.imprintdata.tel }}<p>{{ if i18n "phone" }}{{ i18n "phone" }}{{ else }}{{ "phone" }}{{ end }}: {{ site.Params.imprintdata.tel }}</p>{{ end }}
{{ if site.Params.imprintdata.mail }}<p>{{ if i18n "mail" }}{{ i18n "mail" }}{{ else }}{{ "mail" }}{{ end }}: {{ site.Params.imprintdata.mail | markdownify }}{{ end }}</p>

View File

@ -1,34 +0,0 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ $water := resources.Get "css/color.css" }}
{{ $header := resources.Get "css/header.css" }}
{{ $main := resources.Get "css/main.css" }}
{{ $article := resources.Get "css/article.css" }}
{{ $paginator := resources.Get "css/paginator.css" }}
{{ $footer := resources.Get "css/footer.css" }}
{{ $classes := resources.Get "css/classes.css" }}
{{ $generator := resources.Get "css/generator.css" }}
{{ $big := resources.Get "css/big.css" }}
{{ $allcss := slice $water $header $main $article $paginator $footer $generator $big $classes | resources.Concat "/css/vendor.css" | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $allcss.RelPermalink }}" integrity="{{ $allcss.Data.Integrity }}">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<meta property="og:title" content="{{ site.Title }}" />
<link rel="canonical" href="{{ .Permalink }}">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ if .Site.Params.keywords -}}
<meta name="keywords" content="{{ .Site.Params.keywords }}" />
{{- end }}
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
{{ template "_internal/opengraph.html" . }}

View File

@ -1,15 +0,0 @@
<div id="headerinner">
<a href="/">
<img src="/images/logo.svg" alt="SVG mit img laden">
</a>
<div id="menu">
{{- range site.Params.mainMenu -}}
{{ $name := . }}
{{ if i18n . }}
{{ $name = i18n . }}
{{ end }}
<a href="{{- . | relLangURL -}}" style="color: white;">{{- $name | humanize -}}</a>
{{- end -}}
</div>
</div>

View File

@ -1,10 +0,0 @@
{{ if not .IsHome }}
{{ if .Translations }}
<li class="align_menu"><h3>{{ "Languages" }}</h3></li>
{{ range .Translations }}
{{ if ne .Lang $.Lang }}
<li class="align_menu"><a href="{{- .Permalink -}}">{{- if i18n .Lang -}}{{- i18n .Lang -}}{{- else -}}{{- humanize .Lang -}}{{ end }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}

View File

@ -1,2 +0,0 @@
{{ partial "snippets/menu" . }}

View File

@ -1,6 +0,0 @@
<div>
<details>
<summary>Menü ☰</summary>
{{ partial "snippets/menu" . }}
</details>
</div>