small fixes

This commit is contained in:
teldra 2022-04-12 08:26:18 +02:00
parent c74db78060
commit 2f77558201
7 changed files with 30 additions and 29 deletions

View File

@ -1,6 +1,5 @@
baseURL = "https://bunteshaus.de/" baseURL = "https://bunteshaus.de/"
languageCode = "de-DE" languageCode = "de-DE"
defaultContentLanguage = "de"
title = "Bunteshaus e.V." title = "Bunteshaus e.V."
theme = "buha" theme = "buha"
enableGitInfo = true enableGitInfo = true
@ -8,3 +7,5 @@ paginate = 5
description = "Buntes Haus e.V. - Soziokulturelles Zentrum in Celle - probably the friendliest place on earth" description = "Buntes Haus e.V. - Soziokulturelles Zentrum in Celle - probably the friendliest place on earth"
copyright = "bunteshaus.de" copyright = "bunteshaus.de"
defaultContentLanguageInSubdir = true
defaultContentLanguage = "de"

View File

@ -8,7 +8,7 @@ article {
align-items: stretch; align-items: stretch;
} }
#articletitle h2 { .articletitle h2 {
margin-top: 0; margin-top: 0;
} }
@ -16,7 +16,7 @@ article a {
text-decoration: underline; text-decoration: underline;
} }
#article_list a { .article_list a {
text-decoration: none; text-decoration: none;
} }
@ -24,25 +24,25 @@ article p:first-child {
margin-top: 0; margin-top: 0;
} }
article #readmore { article .readmore {
margin-top: 1rem; margin-top: 1rem;
} }
#articlemeta { .articlemeta {
margin-bottom: 1rem; margin-bottom: 1rem;
margin-left: .3rem; margin-left: .3rem;
} }
#articletext img { .articletext img {
width: 80%; width: 80%;
} }
#articlemeta div:first-child { .articlemeta div:first-child {
font-size: medium; font-size: medium;
font-weight: bold; font-weight: bold;
} }
#articletext { .articletext {
margin-bottom: 1rem; margin-bottom: 1rem;
/* These are technically the same, but use both */ /* These are technically the same, but use both */
overflow-wrap: break-word; overflow-wrap: break-word;
@ -78,13 +78,13 @@ article #readmore {
flex: 0 0 100%; flex: 0 0 100%;
} }
#articleinner { .articleinner {
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
margin-left: .3rem; margin-left: .3rem;
} }
#article_footer { .article_footer {
margin-left: 1rem; margin-left: 1rem;
margin-right: 1rem; margin-right: 1rem;
margin-top: 0rem; margin-top: 0rem;
@ -96,12 +96,12 @@ article #readmore {
color: var(--text-muted); color: var(--text-muted);
} }
#article_footer_foundations1 { .article_footer_foundations1 {
display: flex; display: flex;
height: 3rem; height: 3rem;
} }
#article_footer_foundations2 { .article_footer_foundations2 {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-top: 1rem; margin-top: 1rem;

View File

@ -28,13 +28,13 @@
article { article {
margin-left: 1rem; margin-left: 1rem;
} }
#articlemeta { .articlemeta {
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
#articletext { .articletext {
margin-top: -0.4rem; margin-top: -0.4rem;
} }
#articleinner { .articleinner {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="{{ .Site.Params.locale }}">
{{- partial "snippets/head.html" . -}} {{- partial "snippets/head.html" . -}}
{{ block "css" . -}}{{- end }} {{ block "css" . -}}{{- end }}
<body> <body>

View File

@ -14,14 +14,14 @@
{{- if gt (len $pages) 0 -}} {{- if gt (len $pages) 0 -}}
{{ if .title }}<h2>{{ .title }}</h2>{{ end }} {{ if .title }}<h2>{{ .title }}</h2>{{ end }}
{{- range first $amount $pages -}} {{- range first $amount $pages -}}
<article id="article_list"> <article class="article_list">
<a href="{{- .Permalink -}}"> <a href="{{- .Permalink -}}" class="no_underline">
<div id="articletitle"> <div class="articletitle">
<h2>{{- .Title -}}</h2> <h2>{{- .Title -}}</h2>
</div> </div>
</a> </a>
<a href="{{- .Permalink -}}"> <a href="{{- .Permalink -}}" class="no_underline">
<div id="articlecontent"> <div class="articlecontent">
{{ partial "layout/article" (dict "context" . "type" "list" "pic" "true") }} {{ partial "layout/article" (dict "context" . "type" "list" "pic" "true") }}
</div> </div>
</a> </a>

View File

@ -15,7 +15,7 @@
{{ end }} {{ end }}
{{ partial "snippets/article_metadata" $metas }} {{ partial "snippets/article_metadata" $metas }}
<div id="articleinner"> <div class="articleinner">
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}} {{- if and (.context.Resources.ByType "image") (eq .pic "true") -}}
{{ $resize := "500x" }} {{ $resize := "500x" }}
{{- $img := index (.context.Resources.ByType "image") 0 -}} {{- $img := index (.context.Resources.ByType "image") 0 -}}
@ -26,17 +26,17 @@
{{- $resize = "500x" }} {{- $resize = "500x" }}
{{ end }} {{ end }}
{{- $thumb = $img.Resize $resize }} {{- $thumb = $img.Resize $resize }}
<div id="articlepicture" class="{{ $pic }}" > <div class="articlepicture {{ $pic }}" >
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }} {{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" /> <img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}</a>{{ end }} {{ if and (ne .type "list") (.context.Resources.ByType "image") }}</a>{{ end }}
</div> </div>
{{ end }} {{ end }}
{{- if or .context.Content .context.Summary -}} {{- if or .context.Content .context.Summary -}}
<div id="articletext" class="{{ $text }}"> <div class="articletext {{ $text }}">
{{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }} {{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }}
{{ if and .context.Truncated (eq .type "list") }} {{ if and .context.Truncated (eq .type "list") }}
<div id="readmore">{{- if i18n "readmore" -}}{{- i18n "readmore" -}}{{- else -}}{{- "readmore" -}}{{- end -}}..</div> <div class="readmore">{{- if i18n "readmore" -}}{{- i18n "readmore" -}}{{- else -}}{{- "readmore" -}}{{- end -}}..</div>
{{ end }} {{ end }}
</div> </div>
{{- end }} {{- end }}
@ -44,10 +44,10 @@
{{ define "pagefooter" }} {{ define "pagefooter" }}
{{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }} {{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }}
<div id="article_footer"> <div class="article_footer">
{{ with .Params.foundations }} {{ with .Params.foundations }}
<b>Träger der Veranstaltung:</b> <b>Träger der Veranstaltung:</b>
<div id="article_footer_foundations1"> <div class="article_footer_foundations1">
{{ range . }} {{ range . }}
{{ $l := . }} {{ $l := . }}
{{ $url := "" }} {{ $url := "" }}
@ -65,7 +65,7 @@
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
<div id="article_footer_foundations2"> <div class="article_footer_foundations2">
<div class="article_footer_item2"> <div class="article_footer_item2">
<b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b> <b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b>
{{ .Date | time.Format ":date_full" }} {{ .Date | time.Format ":date_full" }}

View File

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