small fixes

This commit is contained in:
teldra 2022-05-06 13:29:00 +02:00
parent 83f4c88960
commit 277d9cba00
26 changed files with 64 additions and 40 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -1,4 +1,5 @@
---
title: "Archiv"
layout: "archive"
banner: false
---

View File

@ -1,6 +1,7 @@
---
title: "Kontakt"
layout: "contact"
banner: false
---
Konzerte: konzerte@bunteshaus.de

View File

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

View File

@ -1,6 +1,7 @@
---
title: "Links"
layout: "links"
banner: false
---
http://list-celle.over-blog.com/
Gruppe LiST: Land in Sicht - Transition Celle

View File

@ -1,4 +1,5 @@
---
title: "Verschiedenes"
layout: "section_list"
banner: false
---

View File

@ -1,6 +1,7 @@
---
title: "Flyertext"
date: 2021-06-22T23:00:00+02:00
banner: false
---
**Der folgende Text muss auf jedem Flyer gedruckt werden:**

View File

@ -1,4 +1,5 @@
---
title: "Medien"
layout: "media"
banner: false
---

View File

@ -1,6 +1,7 @@
---
title: "Partyunterlagen"
date: 2021-06-22T23:00:00+02:00
banner: false
---
## Wie geht ne Party?

View File

@ -1,4 +1,5 @@
---
title: "Tools"
layout: "section_list"
banner: false
---

View File

@ -1,6 +1,7 @@
---
title: "Generator"
date: 2021-06-22T23:00:00+02:00
banner: false
description: "generator"
type: "tools"
tool: "generator"

View File

@ -4,4 +4,5 @@ date: 2021-06-22T23:00:00+02:00
description: "nottranslated"
type: "tools"
tool: "nottranslated"
banner: false
---

View File

@ -3,7 +3,7 @@ title: "Offenes Café"
date: "2021-10-20T17:00:00+02:00"
about: true
when: "Mittwochs 16.00-19.00Uhr und Sonntags 14.00-17.00Uhr"
events: ["Regelmäßig"]
tags: ["Cafe"]
recurrent: true
---
Seit August gibt es im Bunten Haus das "Offene Café" immer Mittwochs 16.00 - 19.00 Uhr und Sonntags 14.00 - 17.00 Uhr: Wir haben leckeren Kaffee, Espresso, Tee und weitere Getränke und manchmal auch Kuchen. Wir freuen uns, wenn ihr vorbeischaut. Wir sehen uns dort!

View File

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

View File

@ -1,7 +1,6 @@
article {
flex-grow: 1;
flex-shrink: 0;
padding: 1rem;
margin-bottom: 2rem;
border-radius: 10px;
align-items: stretch;
@ -80,7 +79,6 @@ article .readmore {
.articleinner {
display: flex;
flex-direction: column-reverse;
margin-left: .3rem;
}
.article_footer {

View File

@ -31,10 +31,6 @@
font-size: smaller;
}
.margin_left_1rem {
margin-left: 1rem;
}
.margin_right_1rem {
margin-right: 1rem;
}

View File

@ -19,17 +19,16 @@ h1 {
}
#main {
padding-left: 1rem;
padding-right: 1rem;
padding-bottom: 1rem;
display: flex;
padding: 1rem;
}
#content {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 1rem;
}
aside {
@ -39,10 +38,9 @@ aside {
section {
flex-grow: 0;
flex-shrink: 0;
margin-left: 0rem;
padding: 1rem;
align-items: stretch;
border-radius: 10px;
padding-left: 1rem;
padding-right: 1rem;
}
@keyframes color {

View File

@ -7,7 +7,7 @@
<header>
{{ partial "snippets/header" . }}
</header>
{{ partial "snippets/banner" . -}}
{{ partial "snippets/banner" . -}}
<main id="main">
<div id="content">
{{ block "content" . -}}{{- end }}

View File

@ -24,6 +24,8 @@
{{- $pages = .Data.Pages -}}
{{ else if eq .Section "featured" }}
{{- $pages = where $pages ".Params.featured" "=" true -}}
{{ else if eq .Section "recurrent" }}
{{- $pages = where $pages ".Params.recurrent" "=" true -}}
{{ end }}
{{ else }}
{{ if eq .Kind "term" }}

View File

@ -3,7 +3,6 @@
{{ end }}
{{ define "content" }}
{{ partial "debug" (dict "context" . "caller" "single_chooser.html")}}
{{ $partial_before := "" }}
{{ $partial := "layout/article" }}
{{ $pic := "true" }}

View File

@ -4,25 +4,21 @@
{{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 $days) }}
{{ $featured = $all | intersect $featured }}
{{ $posts := $all | complement $featured }}
{{- $paginator := .Paginate $posts -}}
{{ if eq $paginator.PageNumber 1 }}
{{ if ne .Content "" }}
{{ partial "snippets/content" (dict "content" .Content) }}
{{ end }}
{{ partial "layout/article_list" (dict "context" . "pages" $featured "amount" "3" "title" "Featured") }}
{{ end }}
{{ if ne .Content "" }}
{{ partial "snippets/content" (dict "content" .Content) }}
{{ end }}
<div style="display: flex; flex-wrap: wrap;">
{{ if gt (len $featured) 1 }}
<section style="width: 40%;">
{{ partial "layout/article_list" (dict "context" . "pages" $featured "amount" "5" "title" "Featured") }}
</section>
{{ end }}
{{ if gt (len $posts) 1 }}
{{ partial "layout/article_list" (dict "context" . "pages" $posts "amount" "5" "title" "News" "paginate" true) }}
{{ end }}
{{ end }}
{{ define "banner" }}
{{ if .Resources.Match "banner*" }}
{{ $img := (.Resources.GetMatch "banner*") }}
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: xx-large; text-shadow: -2px 0px 3px rgba(0,0,0,.25), -2px -2px 3px rgba(0,0,0,.25), 0px 2px 3px rgba(0,0,0,.25), 2px 2px 3px rgba(0,0,0,.25); ">{{ .Title }}</h1></div>
{{ else }}
<h1 style="margin-top: 1rem; margin-left: 1rem; margin-bottom: 0; color: white;">{{ .Title }}</h1>
<section style="width: 40%;">
{{ partial "layout/article_list" (dict "context" . "pages" $posts "amount" "5" "title" "News") }}
</section>
{{ end }}
</div>
{{ end }}
{{ define "sidebar" }}

View File

@ -1,18 +1,24 @@
{{ if and .amount .pages }}
{{ $amount := .amount }}
{{ $pages := .pages.ByLastmod.Reverse }}
{{ $p := .pages.ByLastmod.Reverse }}
{{- $paginator := .context.Paginate $pages -}}
{{ if .paginate }}
$p = $paginator.Pages
{{ end }}
{{ if eq $paginator.PageNumber 1 }}
{{ if .content }}
{{ partial "snippets/content" (dict "content" .content) }}
{{ end }}
{{ end }}
{{- if gt (len $pages) 0 -}}
<section>
{{ if .title }}<h2>{{ .title }}</h2>{{ end }}
{{- range first $amount $pages -}}
<article class="article_list">
{{- range first $amount $p -}}
<article class="article_list" style="height: 32rem;">
<a href="{{- .Permalink -}}" class="no_underline">
<div class="articletitle">
<h2>{{- .Title -}}</h2>
@ -28,5 +34,6 @@
{{ if .paginate }}
{{ partial "snippets/paginator" (dict "paginator" $paginator) }}
{{ end }}
</section>
{{ end }}
{{ end }}

View File

@ -5,8 +5,24 @@
{{ $title = .Title }}
{{ end }}
{{ $img := resources.Get "/images/banner/banner_1.jpg" }}
{{ if .Resources.Match "banner*" }}
{{ $img = (.Resources.GetMatch "banner*") }}
{{ $what := "none" }}
{{ $img := "none" }}
{{ if eq .Kind "home" }}
{{ $what = "home" }}
{{ else if .File.ContentBaseName }}
{{ $what = .File.ContentBaseName }}
{{ end }}
{{ $banner := printf "/images/banner/%s*" $what }}
{{ if resources.GetMatch $banner }}
{{ $img = resources.GetMatch $banner }}
{{ end }}
{{ if resources.GetMatch $banner }}
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
{{ else if .Resources.Match "banner*" }}
{{ $img = (.Resources.GetMatch "banner*") }}
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
{{ else }}
<h1 style="margin-top: 1rem; margin-left: 2rem; margin-bottom: 0; color: white;">{{ $title }}</h1>
{{ $banner }}
{{ end }}
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>