small fixes

This commit is contained in:
teldra 2022-04-11 15:45:49 +02:00
parent e549c26fcb
commit 1a8327186e
42 changed files with 458 additions and 589 deletions

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -1,6 +1,6 @@
---
title: "Impressum"
layout: "imprint"
layout: "generic_single"
---
Angaben gemäß § 5 TMG

View File

@ -1,6 +1,6 @@
---
title: "Newsletter"
layout: "newsletter"
layout: "generic_single"
---
Wenn ihr in unseren Newsletter aufgenommen werden wollt, schickt uns eine email!

View File

@ -9,19 +9,14 @@ todo buha.de
- links in content unterstrichen
- runde ecken? 2px
- stiftung via prefix filename vom bild. maximale hoehe =s wenigst hohe bild. beim footer
- generator "nachtrag": lastmod in frontmatter
- dokumentiere, das artikel der alten homepage "lastmod" mit demgenau bis ungefaehren datum der damligen erstellung, im frontmatter haben sollten, wann sie erstellt wurden.
- rss: das macht, das nur neue und if (Lastmod = Date) or (Lastmod gt Date.AddDate 0 0 -1)
- push.sh: pushen optional? commit extra? commit --amend?
- https://schlomp.space/Bunteshaus/bunteshaus.de/src/branch/main/docs/artikel_formatierung.md#absatz: durcheinander
listen:
mit preview:
@ -45,8 +40,5 @@ article
_default/list.html entscheided ueber home oder section
laedt dann partial/layout/$section
partial/layout/$section
definend dann titel, content, main
snippets dafuer
laedt dann partial/l1/$layout oder spezielle vorlagen, je nach layout: der section.

View File

@ -0,0 +1,76 @@
article {
flex-grow: 1;
flex-shrink: 0;
margin-left: 1rem;
background-color: var(--background);
padding: 1rem;
margin-bottom: 2rem;
border-radius: 10px;
}
#articletitle h2 {
margin-top: 0;
}
article a {
text-decoration: underline;
}
#article_list a {
text-decoration: none;
}
article p:first-child {
margin-top: 0;
}
article #readmore {
margin-top: 1rem;
}
#articlemeta {
margin-bottom: 1rem;
}
#articletext img {
width: 80%;
}
#articlemeta div:first-child {
font-size: medium;
font-weight: bold;
}
#articletext {
margin-bottom: 1rem;
}
.multiple_small {
flex: 0 0 24%;
margin-right: 1rem;
}
.multiple_big {
flex: 0 0 72%;
}
.solo {
flex: 0 0 100%;
}
#articleinner {
display: flex;
flex-direction: column-reverse;
}
#article_footer {
margin-left: 1rem;
margin-top: 0rem;
margin-bottom: 0rem;
display: flex;
flex-direction: column;
align-items: stretch;
font-size: x-small;
color: var(--text-muted);
flex-grow: 1;
}

View File

@ -0,0 +1,44 @@
@media only screen and (min-width: 600px) {
content {
min-height: 60vh;
}
details {
display: none;
}
#sidebar {
display: flex;
flex-direction: column;
margin-left: 2rem;
}
#main {
padding-top: 1rem;
}
footer {
padding-left: 10px;
padding-right: 10px;
flex-direction: row;
}
.infobox {
text-align: left;
}
.minmax {
width: calc(100vw - 5rem);
max-width: 800px;
}
article {
margin-left: 0rem;
}
#article_footer {
margin-left: .8rem;
}
#articlemeta {
margin-bottom: 1.5rem;
}
#articletext {
margin-top: -0.4rem;
}
#articleinner {
display: flex;
flex-direction: row;
}
}

View File

@ -0,0 +1,62 @@
.minmax {
width: auto;
max-width: auto;
}
.dfjcc {
display: flex;
justify-content: center;
}
.stretch {
display: flex;
flex-direction: column;
align-items: stretch;
}
.grow {
flex-grow: 1;
}
.column {
display: flex;
flex-direction: column;
}
.style_less {
list-style: none;
}
.font_size_smaller {
font-size: smaller;
}
.margin_left_1rem {
margin-left: 1rem;
}
.margin_top_1rem {
margin-top: 1.1rem;
}
.underline {
text-decoration: underline;
}
.align_menu {
list-style: none;
text-align: right;
}
.notgrow {
display: flex; flex-grow: 0;
}
.min_height {
min-height: 50vh;
min-width: auto;
}
.no_underline {
text-decoration: none;
}

View File

@ -259,8 +259,8 @@ h3,
h4,
h5,
h6 {
margin-bottom: 12px;
margin-top: 24px;
margin-bottom: 1rem;
margin-top: 1rem;
}
h1 {

View File

@ -0,0 +1,21 @@
footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 1rem;
margin-left: 1rem;
margin-right: 1rem;
flex-direction: column-reverse;
}
.footer_color {
color: var(--links);
}
.infobox {
text-align: center;
}
footer div {
margin-top: 1rem;
}

View File

@ -0,0 +1,17 @@
fieldset {
display: flex; flex-direction: row; padding: 0; border: none; margin: 0 0 .3rem .5rem;
}
#result {
white-space: pre; display: none; background: var(--background-body); padding: .6rem 0 1rem 1rem; margin-top: 1rem;
}
#display {
-webkit-user-select: all;
user-select: all;
}
input, textarea {
background-color: var(--background-body);
}

View File

@ -0,0 +1,25 @@
#headerinner {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
background-color: #741e94;
background: url(/images/logo_back_full.svg);
padding: .2rem;
padding-right: .7rem;
}
details {
margin-top: 0;
margin-bottom: 0;
}
summary {
background-color: var(--background-alt);
padding-bottom: .2rem;
padding-top: .2rem;
list-style: none;
text-align: right;
}

View File

@ -1,307 +0,0 @@
#headerinner {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
background-color: #741e94;
background: url(/images/logo_back_full.svg);
}
.container {
background-color: var(--background-alt);
background-image: linear-gradient(var(--background-alt), var(--background));
}
details {
margin-top: 0;
}
summary {
background-color: var(--background-alt);
padding-bottom: 0;
}
details p, details section {
text-align: right;
}
aside {
display: none;
}
h1 {
margin-left: .4rem;
font-size: 180%;
margin-top: 1rem;
}
.right-sidebar {
display: none;
margin-left: 1rem;
justify-content: flex-end;
margin-right: 1rem;
}
.right-sidebar a {
color: var(--text-muted);
}
#pagination {
display: flex;
justify-content: flex-start;
margin: 1rem;
}
#pagination a {
padding-right: 1rem;
}
#menu {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
padding-right: .5rem;
align-items: center;
}
#menu a {
margin-left: .5rem;
color: var(--text-header);
}
footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 1rem;
margin-left: 1rem;
margin-right: 1rem;
flex-direction: column-reverse;
}
.footer_color {
color: var(--links);
}
.infobox {
text-align: center;
}
footer div {
margin-top: 1rem;
}
p a {
text-decoration: underline;
}
#articletitle h2 {
margin-top: 0;
}
article a:hover {
text-decoration: none;
}
article p:first-child {
margin: 0;
}
article #readmore {
margin-top: 1rem;
}
article {
display: flex;
flex-direction: column;
margin-bottom: 2rem;
padding: 1rem;
}
#articletext img {
width: 80%;
}
#articlemeta {
margin-bottom: 1rem;
margin-left: 1rem;
}
#articlemeta div:first-child {
font-size: medium;
font-weight: bold;
}
#articleinner {
display: flex;
flex-direction: column-reverse;
margin-left: 1rem;
}
#articletext {
margin-bottom: 1rem;
}
#articlepicture {
margin-top: .3rem;
}
#articledata {
display: flex;
flex-direction: column-reverse;
}
#article_footer {
margin-left: 1rem;
margin-top: 2rem;
display: flex;
flex-direction: column;
align-items: stretch;
font-size: x-small;
border-top: 1px solid var(--background);
color: var(--text-muted);
flex-grow: 1;
}
.articlebgcol1 {
background-color: var(--background);
}
#nav-posts {
display: flex;
flex-direction: column;
}
.post_tag {
text-transform: capitalize;
margin-left: .5rem;
}
.result {
-webkit-user-select: all;
user-select: all;
}
input, textarea {
background-color: var(--background-body);
}
.underline {
text-decoration: underline;
}
.multiple_small {
flex: 0 0 24%;
margin-right: 1rem;
}
.multiple_big {
flex: 0 0 72%;
}
.solo {
flex: 0 0 100%;
}
.borderrad25 {
border-radius: 15px;
}
.borderrad4px {
border-radius: 4px;
}
.minmax {
width: auto;
max-width: auto;
}
.align_menu {
list-style: none; text-align: right;
}
.margin_left_1rem {
margin-left: 1rem;
}
.margin_top_1rem {
margin-top: 1rem;
}
.lightborder {
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {...}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
details {
display: none;
}
#headerinner {
padding: 10px;
}
.container {
min-height: 100vh;
}
.content {
padding-left: 10px;
padding-right: 10px;
display: flex;
justify-content: space-between;
min-height: 70vh;
}
.right-sidebar {
display: flex;
flex-shrink: 0;
flex-grow: 0;
margin-left: 2rem;
text-align: right;
flex-direction: column;
min-width: 15%;
min-height: 100vh;
margin-top: 1rem;
margin-right: .5rem;
justify-content: flex-start;
}
footer {
padding-left: 10px;
padding-right: 10px;
flex-direction: row;
}
.infobox {
text-align: left;
}
#articleinner {
display: flex;
flex-direction: row;
}
#article_footer {
margin-left: 2rem;
}
.minmax {
width: calc(100vw - 5rem);
max-width: 800px;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}

View File

@ -0,0 +1,60 @@
img {
border-radius: 4px;
margin-bottom: .5rem;
}
#container {
background-color: var(--background);
background-image: linear-gradient(var(--background-alt), var(--background));
}
main {
min-height: 60vh;
}
h1 {
margin-left: .4rem;
font-size: 180%;
margin-top: 0rem;
}
#main {
padding-left: 1rem;
padding-right: 1rem;
padding-bottom: 1rem;
display: flex;
flex-direction: row;
padding: 1rem;
}
#content {
display: flex;
flex-direction: column;
flex-grow: 1;
}
aside {
display: none;
}
section {
margin-left: 1rem;
display: flex;
flex-direction: column;
justify-content: flex-start;
margin-bottom: 1rem;
}
@keyframes color {
0% { background: #00007f; }
20% { background: #550000; }
40% { background: #005500; }
60% { background: #55007f; }
80% { background: #00557f; }
100% { background: #00007f; }
}
body {
background: #33CCCC; /* Fallback */
animation: color 60s infinite linear;
}

View File

@ -0,0 +1,9 @@
#pagination {
display: flex;
justify-content: center;
margin: 1rem;
}
#pagination a {
padding-right: 1rem;
}

View File

@ -1,18 +1,14 @@
[news]
one = "Neuigkeit"
other = "Neuigkeiten"
[events]
one = "Termin"
other = "Termine"
[event]
one = "Termin"
other = "Termine"
[contact]
one = "Kontakt"
other = "Kontakte"
other = "Kontakt"
[pobox]
other = "Posfach"
@ -36,23 +32,15 @@ other = "Über uns"
other = "weiterlesen"
[content]
one = "Inhalt"
other = "Inhalte"
[categories]
one = "Kategorie"
other = "Kategorien"
[category]
one = "Kategorie"
other = "Kategorien"
[tags]
one = "Tag"
other = "Tags"
[tag]
one = "Tag"
other = "Tags"
[new]

View File

@ -1,7 +1,7 @@
{{ $url := (printf "%s#%s" .Page.Permalink .Anchor) | safeURL }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
<a class="heading-anchor" href="{{ $url }}">
<a class="no_underline" href="{{ $url }}">
{{ .Text | safeHTML }}
</a>
</h{{ .Level }}>

View File

@ -1,10 +1,10 @@
{{- if strings.HasPrefix .Destination "http" -}}
<a href="{{- .Destination -}}">
<a href="{{- .Destination -}}" class="no_underline">
<img loading="lazy"
src="{{ .Destination | safeURL }}"
alt="{{ .Text }}"
{{ with .Title}} title="{{ . }}"{{ end }} />
<div style="display: flex; justify-content: center;">{{ .Text }}</div>
<div class="dfjcc">{{ .Text }}</div>
</a>
{{- else -}}
{{ if .Page.Resources.ByType "image" }}
@ -12,24 +12,24 @@
{{- $pic := index (.Page.Resources.ByType "image") (int $nr) -}}
{{- $image := .Page.Resources.GetMatch (printf "%s" ($pic | safeURL)) -}}
<div>
<a href="{{- $image.Permalink -}}">
{{- $permalink := "" -}}
<a href="{{- $image.Permalink -}}" class="no_underline">
{{- $permalink := "" -}}
{{- if ne $image nil -}}
{{- $permalink = $image.RelPermalink -}}
{{- else -}}
{{- $image = imageConfig (printf "static/%s" (.Destination | safeURL)) -}}
{{- $permalink = (printf "/%s" (.Destination | safeURL)) -}}
{{- end -}}
{{- if ne $image nil -}}
{{- $permalink = $image.RelPermalink -}}
{{- else -}}
{{- $image = imageConfig (printf "static/%s" (.Destination | safeURL)) -}}
{{- $permalink = (printf "/%s" (.Destination | safeURL)) -}}
{{- end -}}
<div style="display: flex; justify-content: center;"><img loading="lazy"
src="{{ $permalink }}"
alt="{{ .Text }}"
{{ with .Title}} title="{{ . }}"{{ end }}
width={{ $image.Width }}
height="{{ $image.Height }}" class="borderrad4px" /></div>
<div style="display: flex; justify-content: center;">{{ .Text }}</div>
</a>
<div class="dfjcc"><img loading="lazy"
src="{{ $permalink }}"
alt="{{ .Text }}"
{{ with .Title}} title="{{ . }}"{{ end }}
width={{ $image.Width }}
height="{{ $image.Height }}" /></div>
<div class="dfjcc">{{ .Text }}</div>
</a>
</div>
{{ end }}
{{- end -}}

View File

@ -3,22 +3,22 @@
{{- partial "structure/head.html" . -}}
{{ block "css" . -}}{{- end }}
<body>
<div class="container">
<div id="container">
<header>
{{ partialCached "structure/header" . }}
{{ partial "structure/submenu" . }}
</header>
<div class="content">
<main>
<main id="main">
<div id="content">
{{ block "title" . -}}{{- end }}
{{ block "calc" . -}}{{- end }}
{{ block "content" . -}}{{- end }}
</main>
<aside class="right-sidebar">
{{ block "pagefooter" . -}}{{- end }}
</div>
<aside id="sidebar">
{{ block "sidebar" . -}}{{- end }}
</aside>
</div>
{{ block "pagefooter" . -}}{{- end }}
</main>
<footer>
{{- partial "snippets/footer" . -}}
</footer>

View File

@ -17,7 +17,7 @@
{{ end }}
{{ if gt (len $posts) 1 }}
{{ partial "l1/article_list" (dict "context" . "paginator" $paginator "amount" "5" "title" "News" "type" "list") }}
<div id="pagination_outer" style="display: flex; justify-content: center;">
<div id="pagination_outer" class="df_row_center">
{{ partial "snippets/paginator" (dict "paginator" $paginator) }}
</div>
{{ end }}

View File

@ -1,4 +1,9 @@
<article>
{{ if ne .context.Content "" }}
<section>
{{ partial "snippets/content" (dict "content" .context.Content) }}
</section>
{{ end }}
<section>
{{ partial "debug" (dict "context" . "caller" "archive.html" )}}
{{ $prev := 3000}}
{{range where site.RegularPages "Type" "in" site.Params.searchSections }}
@ -7,9 +12,9 @@
<h2>{{ $date.Format "2006" }}</h2>
{{end}}
<div class="frow">
<div class="underline" style="margin-right: 1em;"><a href="{{.Permalink}}">{{ .Title }}</a></div>
<div class="frow" style="margin-right: 1em;">{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}</div><br>
<div class="underline"><a href="{{.Permalink}}">{{ .Title }}</a></div>
<div>{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}</div><br>
</div>
{{ $prev = $date.Format "2006"}}
{{end}}
</article>
</section>

View File

@ -12,9 +12,9 @@
{{ end }}
{{ end }}
{{- if gt (len $pages) 0 -}}
{{ if .title }}<h2 style="margin-left: .6rem;">{{ .title }}</h2>{{ end }}
{{ if .title }}<h2>{{ .title }}</h2>{{ end }}
{{- range first $amount $pages -}}
<article class="articlebgcol1 borderrad25">
<article id="article_list">
<a href="{{- .Permalink -}}">
<div id="articletitle">
<h2>{{- .Title -}}</h2>
@ -28,9 +28,7 @@
</article>
{{ end }}
{{ if .paginate }}
<div id="pagination_outer" style="display: flex; justify-content: center;">
{{ partial "snippets/paginator" (dict "paginator" $paginator) }}
</div>
{{ end }}
{{ end }}
{{ end }}

View File

@ -1,7 +1,12 @@
{{ $small := "solo" }}
{{ $big := "solo" }}
{{ $pic := "solo" }}
{{ $text := "solo" }}
{{- if and (.context.Resources.ByType "image") (.content) -}}
{{ $pic = "multiple_small" }}
{{ $text = "multiple_big" }}
{{ end }}
{{ $img := "" }}
{{ $thumb := "" }}
{{- .Resources.ByType "image" -}}
{{- if .context.Resources.ByType "image" -}}
{{- $img = index (.context.Resources.ByType "image") 0 -}}
{{- $thumb = $img.Resize "1024x" }}
@ -9,25 +14,21 @@
{{- $thumb = $img.Resize "500x" }}
{{ end }}
{{ end }}
{{- if or (.context.Resources.ByType "image") (.context.Summary) ($img) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
{{ $small = "multiple_big"}}
{{ end }}
<section>
<div id="articleinner">
{{ if and (ne $img "") (eq .pic true)}}
<div id="articlepicture" class="{{ $small }}">
<div id="articlepicture" class="{{ $pic }}">
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if ne .type "list" }}</a>{{ end }}
{{ if eq .type "article" }}{{ end }}
</div>
{{ end }}
<div id="articletext" class="{{ $big }}">
<div id="articletext" class="{{ $text }}">
{{ if .partial_before }}
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
{{ end }}
{{ .content }}
</div>
</div>
</section>

View File

@ -1,5 +1,9 @@
{{ $small := "solo" }}
{{ $big := "solo" }}
{{ $pic := "solo" }}
{{ $text := "solo" }}
{{- if and (.context.Resources.ByType "image") (.context.Content) -}}
{{ $pic = "multiple_small" }}
{{ $text = "multiple_big" }}
{{ end }}
{{ $img := "" }}
{{ $thumb := "" }}
{{- if .context.Resources.ByType "image" -}}
@ -9,25 +13,22 @@
{{- $thumb = $img.Resize "500x" }}
{{ end }}
{{ end }}
{{- if or (.context.Resources.ByType "image") (.context.Summary) ($img) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
{{ $small = "multiple_big"}}
{{ end }}
<section>
<div id="articleinner">
{{ if and (ne $img "") (eq .pic true)}}
<div id="articlepicture" class="{{ $small }}">
<div id="articlepicture" class="{{ $pic }}">
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if ne .type "list" }}</a>{{ end }}
{{ if eq .type "article" }}{{ end }}
</div>
{{ end }}
<div id="articletext" class="{{ $big }}">
<div id="articletext" class="{{ $text }}">
{{ if .partial_before }}
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
{{ end }}
{{ .content }}
</div>
</div>
</section>

View File

@ -1,6 +1,12 @@
{{ range .context.Pages }}
<article>
<a href="{{ .Params.link }}" class="underline">{{ .Params.link }}</a>
{{ .Title }}
</article>
{{ if ne .context.Content "" }}
<section>
{{ partial "snippets/content" (dict "content" .context.Content) }}
</section>
{{ end }}
{{ range .context.Pages }}
<section>
<a href="{{ .Params.link }}" class="underline">{{ .Params.link }}</a><br>
{{ .Title }}<br>
<br>
</section>
{{ end }}

View File

@ -1,5 +1,10 @@
<article>
{{ if ne .context.Content "" }}
<section>
{{ partial "snippets/content" (dict "content" .context.Content) }}
</section>
{{ end }}
<section>
{{ range .context.Resources.ByType "image" }}
<img src="{{ .Permalink }}" class="borderrad4px"/>
{{ end }}
</article>
</section>

View File

@ -1,33 +0,0 @@
{{ $small := "solo" }}
{{ $big := "solo" }}
{{ $img := "" }}
{{ $thumb := "" }}
{{- if .context.Resources.ByType "image" -}}
{{- $img = index (.context.Resources.ByType "image") 0 -}}
{{- $thumb = $img.Resize "1024x" }}
{{ if .content }}
{{- $thumb = $img.Resize "500x" }}
{{ end }}
{{ end }}
{{- if or (.context.Resources.ByType "image") (.context.Summary) ($img) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
{{ $small = "multiple_big"}}
{{ end }}
<div id="articleinner">
{{ if and (ne $img "") (eq .pic true)}}
<div id="articlepicture" class="{{ $small }}">
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if ne .type "list" }}</a>{{ end }}
{{ if eq .type "article" }}{{ end }}
</div>
{{ end }}
<div id="articletext" class="{{ $big }}">
{{ if .partial_before }}
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
{{ end }}
{{ .content }}
</div>
</div>

View File

@ -1,5 +0,0 @@
<article>
{{ range .context.Pages }}
<a href="{{ .Permalink }}">🗀 {{ .Title }}</a>
{{ end }}
</article>

View File

@ -0,0 +1,11 @@
{{ if ne .context.Content "" }}
<section>
{{ partial "snippets/content" (dict "content" .context.Content) }}
</section>
{{ end }}
<section>
{{ range .context.Pages }}
<div>🗀 <a href="{{ .Permalink }}" class="underline">{{ .Title }}</a></div>
{{ end }}
</section>

View File

@ -1,14 +0,0 @@
{{ partial "debug" (dict "context" . "caller" "archive.html" )}}
{{ $prev := 3000}}
{{range where site.RegularPages "Type" "in" site.Params.searchSections }}
{{ $date := .Date }}
{{ if gt $prev ($date.Format "2006") }}
<h2>{{ $date.Format "2006" }}</h2>
{{end}}
<div class="frow">
<div class="underline" style="margin-right: 1em;"><a href="{{.Permalink}}">{{ .Title }}</a></div>
<div class="frow" style="margin-right: 1em;">{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}</div><br>
</div>
{{ $prev = $date.Format "2006"}}
{{end}}

View File

@ -4,20 +4,16 @@
{{ $metas = dict "when" .context.Params.when "price" .context.Params.price }}
{{ end }}
{{ $small := "solo" }}
{{ $big := "solo" }}
{{ $pic := "solo" }}
{{ $text := "solo" }}
{{- if or (.context.Resources.ByType "image") (.context.Summary) -}}
{{ $small = "multiple_small" }}
{{ $big = "multiple_big" }}
{{ else }}
{{ $small = "multiple_big"}}
{{- if and (.context.Resources.ByType "image") (.context.Content) -}}
{{ $pic = "multiple_small" }}
{{ $text = "multiple_big" }}
{{ end }}
{{ partial "snippets/article_metadata" $metas }}
<div id="articleinner">
<div id="articleinner"{{- if eq .type "article" }} class="min_height"{{- end -}}>
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}}
{{ $resize := "500x" }}
{{- $img := index (.context.Resources.ByType "image") 0 -}}
@ -28,7 +24,7 @@
{{- $thumb = $img.Resize "500x" }}
{{ end }}
{{- $thumb = $img.Resize $resize }}
<div id="articlepicture" class="{{ $small }}" >
<div id="articlepicture" class="{{ $pic }}" >
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if ne .type "list" }}</a>{{ end }}
@ -36,7 +32,7 @@
</div>
{{ end }}
{{- if or .context.Content .context.Summary -}}
<div id="articletext" class="{{ $big }}">
<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") }}
@ -51,7 +47,7 @@
<div id="article_footer">
{{ with .Params.foundations }}
<b>Träger der Veranstaltung:</b>
<div style="display: flex; flex-direction: row; height: 2rem; margin-bottom: 1rem; margin-top: .4rem;">
<div style="display: flex; flex-direction: row; height: 2rem; margin-bottom: 1rem; margin-top: .5rem;">
{{ range . }}
{{ $l := . }}
{{ $url := "" }}
@ -69,14 +65,14 @@
{{ end }}
</div>
{{ end }}
<div style="display: flex; flex-direction: row; justify-content: space-between; flex-grow: 1; align-items: stretch;">
<div style="display: flex; flex-direction: row; flex-grow: 1; align-items: stretch;">
<div style="display: flex; flex-grow: 1; flex-direction: column;">
<b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b><br>
<b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b>
{{ .Date | time.Format ":date_full" }}
</div>
{{ if ne .Date .Lastmod }}
<div style="display: flex; flex-grow: 1; flex-direction: column;">
<b>{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}</b><br>
<b>{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}</b>
{{ .Lastmod | time.Format ":date_full" }}
</div>
{{ end }}

View File

@ -4,7 +4,7 @@
<article class="minmax">
<div style="flex-direction: row;">
<div>
{{ .context.Content }}
</div>
<noscript><p><b>Bitte aktiviere Javascript, sonst funktioniert der Generator nicht.</b></p></noscript>

View File

@ -35,7 +35,7 @@
<label><input type="checkbox" name="{{ .title }}" id="{{ .title }}" value="{{ .name }}" {{ .Scratch.Get "requiredtext" }}>{{- $name -}}{{- if .required -}}{{- " *" -}}{{- end -}}</label>
</div>
{{ else if eq .input_type "results" }}
<div id='display' class="result" style="white-space: pre; display: none; background: var(--background-body); padding: .6rem 0 1rem 1rem; margin-top: 1rem;"></div>
<div id='resut'><div id='display'></div></div>
{{ else if eq .input_type "submit" }}
<div class="margin_top_1rem {{ if .group }}visibleIf margin_left_1rem" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
<input type="{{ .input_type }}" value="{{- $name -}}" onclick="showInput(event);" />
@ -55,8 +55,14 @@
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
{{ if eq .title "tags" }}
{{ range $pages }}
{{- if .Params.tags -}}
{{- $finale = $finale | append .Params.tags -}}
{{- with .Params.tags -}}
{{- $finale = $finale | append . -}}
{{ end }}
{{ end }}
{{ else if eq .title "foundations" }}
{{ range $pages }}
{{- with .Params.foundations -}}
{{- $finale = $finale | append . -}}
{{ end }}
{{ end }}
{{ else }}
@ -68,7 +74,7 @@
{{ end }}
{{- $finale = $finale | uniq -}}
<div class="margin_top_1rem {{- if .group }} visibleIf" data-visibleif-rule="{{ .group }}group == 'true'"{{ else }}"{{ end }} style="flex-direction: column;">
<div class="margin_top_1rem column {{- if .group }} visibleIf" data-visibleif-rule="{{ .group }}group == 'true'{{ end }}">
<div class="{{- if .group }}margin_left_1rem{{ end }}">
{{ .name }}
{{ if ne .expanded true }}{{ partial "layout/generator/expand" (dict "name" (printf "%scat" $in0)) }}{{ end }}{{- if .required -}}{{- " *" -}}{{- end -}}
@ -76,17 +82,17 @@
<div class="checkbox {{ if ne .expanded true }}visibleIf" data-visibleif-rule="{{ $in0 }}cat == 'true'{{end}}">
<div class="checkbox {{ if ne .expanded true }}visibleIf margin_left_1rem stretch" data-visibleif-rule="{{ $in0 }}cat == 'true'{{end}}">
<div class="{{- if .group }} margin_left_1rem{{ end }} minmax" style="display: flex; flex-direction: column;">
<fieldset id="{{ $in0 }}" name="{{ $in0 }}" style="display: flex; flex-direction: row; padding: 0; border: none; margin: 0 0 .3rem .5rem;">
<div class="column margin_left_1rem">
<fieldset id="{{ $in0 }}" name="{{ $in0 }}" class="fieldset">
{{ range sort $finale }}
<input type="checkbox" name="{{ $in0 }}" id="{{ $in0 }}-cat" value="{{ . }}"><label for="{{ $in0 }}-cat">{{ . }}</label>
{{ end }}
</fieldset>
{{ if .new }}
<label id="label" for="new{{- .title -}}">{{ .new }} <span style="font-size: x-small;">({{- $divide -}}{{- if .help -}}, {{ .help }}{{ end }})</span></label>
<label id="label" for="new{{- .title -}}">{{ .new }} <span class="font_size_smaller">({{- $divide -}}{{- if .help -}}, {{ .help }}{{ end }})</span></label>
<input type="text" name="new{{- .title -}}" id="new{{- .title -}}" value="" placeholder="{{ .eg }}" />
{{ end }}
</div>
@ -128,8 +134,8 @@
<input type="text" name="postalcode" id="postalcode" {{ if $pageform.names }}placeholder="Postal code{{ .Scratch.Get "requiredstar" }}"{{ end }} {{ .Scratch.Get "requiredtext" }}>
</div>
{{ else }}
<div class="margin_top_1rem {{ if .group }} visibleIf margin_left_1rem" data-visibleif-rule=" {{ .group }}group == 'true' {{ end }}" class="minmax">
<div class="minmax" style="display: flex; flex-direction: column;">
<div class="margin_top_1rem {{ if .group }} visibleIf stretch margin_left_1rem" data-visibleif-rule=" {{ .group }}group == 'true' {{ end }}">
<div class="column">
<label class="{{ if $pageform.names }}sr-only{{ end }}" for="{{ .title }}">{{ .name }}{{- if .required -}}{{- " *" -}}{{- end -}}</label>
<input type="{{ .input_type }}" name="{{ .title }}" id="{{ .title }}" {{ if $pageform.names }}placeholder="{{ .name }}"{{ end }}>
</div>

View File

@ -19,7 +19,7 @@
{{ $missing = $missing | append "all translations" }}
{{ end }}
{{ if $missing }}
<a href="{{ .Permalink}}" style="margin-top: 1rem;" class="underline">{{ .Name }}:</a>
<a href="{{ .Permalink}}" class="underline">{{ .Name }}:</a>
<div>missing: {{ index $missing 0 }}</div>
{{ end }}
{{ end }}

View File

@ -1,6 +1,6 @@
{{ if or .when .price .contact .covid }}
<div id="articlemeta" style="font-size: smaller;">
<div id="articlemeta" class="font_size_smaller">
{{ if .when }}
<div>{{ .when }}</div>
{{ end }}

View File

@ -1 +1 @@
<article>{{ .content }}</article>
<section>{{ .content }}</section>

View File

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

View File

@ -1,5 +1,5 @@
{{ $paginator := .paginator}}
<div id="pagination_outer" style="display: flex; justify-content: center;">
<div id="pagination_outer" class="df_row_center">
<div id="pagination">
<!-- Number of links either side of the current page. -->
{{ $adjacent_links := 2 }}
@ -99,4 +99,4 @@
{{ end }}
{{ end }}
</div>
</div>
</div>

View File

@ -2,9 +2,16 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ $stylecolor := resources.Get "css/color.css" }}
{{ $stylelayout := resources.Get "css/layout.css" }}
{{ $allcss := slice $stylecolor $stylelayout | resources.Concat "/css/vendor.css" | minify | fingerprint "sha512" }}
{{ $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 }}

View File

@ -1,102 +0,0 @@
{{ $paginator := .paginator}}
<div id="pagination_outer" style="display: flex; justify-content: center;">
<div id="pagination">
<!-- Number of links either side of the current page. -->
{{ $adjacent_links := 2 }}
<!-- $max_links = ($adjacent_links * 2) + 1 -->
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
<!-- $lower_limit = $adjacent_links + 1 -->
{{ $lower_limit := (add $adjacent_links 1) }}
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
<!-- If there's more than one page. -->
{{ if gt $paginator.TotalPages 1 }}
<!-- First page. -->
{{ if ne $paginator.PageNumber 1 }}
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
««
</a>
{{ end }}
<!-- Previous page. -->
{{ if $paginator.HasPrev }}
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
«
</a>
{{ end }}
<!-- Page numbers. -->
{{ range $paginator.Pagers }}
{{ $page_number_flag := false }}
<!-- Advanced page numbers. -->
{{ if gt $paginator.TotalPages $max_links }}
<!-- Lower limit pages. -->
<!-- If the user is on a page which is in the lower limit. -->
{{ if le $paginator.PageNumber $lower_limit }}
<!-- If the current loop page is less than max_links. -->
{{ if le .PageNumber $max_links }}
{{ $page_number_flag = true }}
{{ end }}
<!-- Upper limit pages. -->
<!-- If the user is on a page which is in the upper limit. -->
{{ else if ge $paginator.PageNumber $upper_limit }}
<!-- If the current loop page is greater than total pages minus $max_links -->
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
{{ $page_number_flag = true }}
{{ end }}
<!-- Middle pages. -->
{{ else }}
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
{{ $page_number_flag = true }}
{{ end }}
{{ end }}
<!-- Simple page numbers. -->
{{ else }}
{{ $page_number_flag = true }}
{{ end }}
<!-- Output page numbers. -->
{{ if eq $page_number_flag true }}
<a href="{{ .URL }}" class="pagination__link">
{{ if eq $paginator.PageNumber .PageNumber }}<b>{{ end }}
{{ .PageNumber }}
{{ if eq $paginator.PageNumber .PageNumber }}</b>{{ end }}
</a>
{{ end }}
{{ end }}
<!-- Next page. -->
{{ if $paginator.HasNext }}
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
»
</a>
{{ end }}
<!-- Last page. -->
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
»»
</a>
{{ end }}
{{ end }}
</div>
</div>

View File

@ -1,6 +1,6 @@
<div>
<details>
<summary style="list-style: none; text-align: right;">Menü ☰</summary>
<summary>Menü ☰</summary>
<p>
{{ partial "snippets/menu" . }}
</p>

View File

@ -21,4 +21,4 @@ tr.visibleIf-visible, tr.visibleif-visible {
.visibleIf-rule, .mandatoryIf-rule, .visibleif-rule, .mandatoryif-rule {
display: none;
}