small fixes

This commit is contained in:
teldra 2022-04-11 20:53:58 +02:00
parent bd0f3487db
commit f6dc6ebce8
9 changed files with 71 additions and 7 deletions

View File

@ -37,7 +37,7 @@ aside {
}
section {
flex-grow: 1;
flex-grow: 0;
flex-shrink: 0;
margin-left: 0rem;
padding: 1rem;

View File

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

View File

@ -32,7 +32,6 @@
{{ end }}
{{- if or .context.Content .context.Summary -}}
<div id="articletext" class="{{ $text }}">
{{ if eq .type "contact" }}{{ partial "structure/contact" }}{{ end }}
{{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }}
{{ if and .context.Truncated (eq .type "list") }}
<div id="readmore">{{- if i18n "readmore" -}}{{- i18n "readmore" -}}{{- else -}}{{- "readmore" -}}{{- end -}}..</div>

View File

@ -5,7 +5,7 @@
{{ $contact = i18n "contact" }}
{{ end }}
<a href="{{- "contact" | absLangURL -}}">{{- $contact | strings.FirstUpper -}}:</a><br><br>
{{- partial "structure/contact" -}}
{{- partial "snippets/contact" -}}
</div>
{{- end -}}

View File

@ -0,0 +1,34 @@
<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

@ -0,0 +1,15 @@
<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

@ -0,0 +1,10 @@
{{ 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

@ -23,5 +23,5 @@
{{ end }}
{{ end }}
{{ if .IsHome }}
{{ partial "structure/langs" . }}
{{ partial "snippets/langs" . }}
{{ end }}

View File

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