diff --git a/config/_default/config.toml b/config/_default/config.toml
index 455f507..43b9fa9 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -9,3 +9,12 @@ copyright = "bunteshaus.de"
defaultContentLanguageInSubdir = true
defaultContentLanguage = "de"
+
+[related]
+ threshold = 10
+ includeNewer = true
+ toLower = true
+
+ [[related.indices]]
+ name = "tags"
+ weight = 90
diff --git a/config/_default/params.toml b/config/_default/params.toml
index c1cb183..24f7fbb 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -26,10 +26,12 @@ mainMenu = ['about','news','events']
searchSections = ['news']
# how long stays a featrued article on frontpage as featured (in weeks)
-featured_expire = "28"
+featured_expire = "13"
placeholder = "/images/no_article_pic.png"
+items_per_list = 5
+
# data for your imprint and contact page
[imprintdata]
tel = "(+) 49 5141 907 927"
diff --git a/content/about/_index.de.md b/content/about/_index.de.md
index 804bf0f..49bd138 100644
--- a/content/about/_index.de.md
+++ b/content/about/_index.de.md
@@ -1,6 +1,6 @@
---
title: "Über uns"
-layout: "article_list"
+layout: "gen_list"
---
Wir sind das Buntehaus, ein [soziokulturelles](/bunteshaus/soziokultur) Zentrum in Celle.
Wir leben vom mitmachen und so.
diff --git a/themes/buha/assets/scss/big.scss b/themes/buha/assets/scss/big.scss
index 6cec3b5..aa24e5a 100644
--- a/themes/buha/assets/scss/big.scss
+++ b/themes/buha/assets/scss/big.scss
@@ -4,4 +4,12 @@
margin-left: auto;
margin-right: auto;
}
+ .twolists {
+ display: flex; flex-wrap: wrap; justify-content: space-around;
+ div {
+ display: flex;
+ flex-direction: column;
+ width: 45%;
+ }
+ }
}
diff --git a/themes/buha/assets/scss/common.scss b/themes/buha/assets/scss/common.scss
index f0c3a43..c66e7b1 100644
--- a/themes/buha/assets/scss/common.scss
+++ b/themes/buha/assets/scss/common.scss
@@ -89,8 +89,52 @@ section, article, .article_footer, .sidebar {
flex-direction: column;
}
-.two-lists {
- display: flex; flex-wrap: wrap; justify-content: space-around;
+
+.twolists {
+}
+
+.gen_list {
+ a { text-decoration: none;
+ margin-bottom: 5rem;
+ &:hover {
+ .img {
+ height: 180px;
+ background-size: 110% auto;
+ background-position: top;
+ }
+ .img-only {
+ height: 360px;
+ background-size: 110% auto;
+ background-position: top;
+ }
+ }
+ }
+ img {
+ width: 100%;
+ }
+ h3 {
+ margin-top: 0rem;
+ }
+ section {
+ margin-right: 1rem;
+ margin-left: 1rem;
+ }
+ .img {
+ width: 100%;
+ height: 140px;
+ background-size: 100% auto;
+ background-position: top;
+ transition: all .3s ease-in-out;
+ background-repeat: no-repeat;
+ }
+ .img-only {
+ width: 100%;
+ height: 360px;
+ background-size: 100% auto;
+ background-position: top;
+ transition: all .2s ease-in-out;
+ background-repeat: no-repeat;
+ }
}
article {
diff --git a/themes/buha/assets/scss/scss.scss b/themes/buha/assets/scss/scss.scss
index f09f089..9a96573 100644
--- a/themes/buha/assets/scss/scss.scss
+++ b/themes/buha/assets/scss/scss.scss
@@ -106,4 +106,5 @@ article {
.index_section { max-width: 42%; }
}
}
+
}
diff --git a/themes/buha/layouts/_default/list.html b/themes/buha/layouts/_default/list.html
index 08f86aa..d2fb4c3 100644
--- a/themes/buha/layouts/_default/list.html
+++ b/themes/buha/layouts/_default/list.html
@@ -15,11 +15,11 @@
{{- $paginator := "" -}}
{{- $partial := .Layout -}}
{{- $paginate := true -}}
- {{- if eq .Layout "article_list" -}}
+ {{- if eq .Layout "gen_list" -}}
{{ if eq .Section "events" }}
{{- $pages = where $pages ".Params.when" "ne" nil -}}
{{ else if eq .Type "about" }}
- {{- $pages = where $pages ".Params.about" "=" true -}}
+ {{- $pages = (where $pages ".Params.about" "=" true) -}}
{{ else if eq .Section "news" }}
{{- $pages = .Data.Pages -}}
{{ else if eq .Section "featured" }}
@@ -30,7 +30,7 @@
{{ else }}
{{ if eq .Kind "term" }}
{{- $pages = .Data.Pages -}}
- {{ $partial = "article_list" }}
+ {{ $partial = "gen_list" }}
{{ else if eq .Kind "taxonomy" }}
{{ $paginate = false }}
{{- $pages = .Data.Terms.ByCount -}}
@@ -40,7 +40,7 @@
{{ $partial = string (printf "layout/%s" $partial) }}
- {{ partial $partial (dict "context" . "pages" $pages "amount" "5" "content" .Content "type" .Type "paginate" $paginate) }}
+ {{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }}
{{ end }}
{{ define "sidebar" }}
diff --git a/themes/buha/layouts/_default/single.html b/themes/buha/layouts/_default/single.html
index 4042cf5..e886c60 100644
--- a/themes/buha/layouts/_default/single.html
+++ b/themes/buha/layouts/_default/single.html
@@ -17,6 +17,7 @@
{{ $partial = printf "layout/%s" .Layout }}
{{ end }}
{{ .Summary }}
+ {{ else if .Content }} + {{ .Content }} + {{ else if $image }} + {{ $i := (.Resources.GetMatch $image).Permalink }} +