forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
c74db78060
commit
2f77558201
|
@ -1,6 +1,5 @@
|
|||
baseURL = "https://bunteshaus.de/"
|
||||
languageCode = "de-DE"
|
||||
defaultContentLanguage = "de"
|
||||
title = "Bunteshaus e.V."
|
||||
theme = "buha"
|
||||
enableGitInfo = true
|
||||
|
@ -8,3 +7,5 @@ paginate = 5
|
|||
description = "Buntes Haus e.V. - Soziokulturelles Zentrum in Celle - probably the friendliest place on earth"
|
||||
copyright = "bunteshaus.de"
|
||||
|
||||
defaultContentLanguageInSubdir = true
|
||||
defaultContentLanguage = "de"
|
||||
|
|
|
@ -8,7 +8,7 @@ article {
|
|||
align-items: stretch;
|
||||
}
|
||||
|
||||
#articletitle h2 {
|
||||
.articletitle h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ article a {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#article_list a {
|
||||
.article_list a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
@ -24,25 +24,25 @@ article p:first-child {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
article #readmore {
|
||||
article .readmore {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
#articlemeta {
|
||||
.articlemeta {
|
||||
margin-bottom: 1rem;
|
||||
margin-left: .3rem;
|
||||
}
|
||||
|
||||
#articletext img {
|
||||
.articletext img {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#articlemeta div:first-child {
|
||||
.articlemeta div:first-child {
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#articletext {
|
||||
.articletext {
|
||||
margin-bottom: 1rem;
|
||||
/* These are technically the same, but use both */
|
||||
overflow-wrap: break-word;
|
||||
|
@ -78,13 +78,13 @@ article #readmore {
|
|||
flex: 0 0 100%;
|
||||
}
|
||||
|
||||
#articleinner {
|
||||
.articleinner {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
margin-left: .3rem;
|
||||
}
|
||||
|
||||
#article_footer {
|
||||
.article_footer {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
margin-top: 0rem;
|
||||
|
@ -96,12 +96,12 @@ article #readmore {
|
|||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
#article_footer_foundations1 {
|
||||
.article_footer_foundations1 {
|
||||
display: flex;
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
#article_footer_foundations2 {
|
||||
.article_footer_foundations2 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 1rem;
|
||||
|
|
|
@ -28,13 +28,13 @@
|
|||
article {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
#articlemeta {
|
||||
.articlemeta {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
#articletext {
|
||||
.articletext {
|
||||
margin-top: -0.4rem;
|
||||
}
|
||||
#articleinner {
|
||||
.articleinner {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="{{ .Site.Params.locale }}">
|
||||
{{- partial "snippets/head.html" . -}}
|
||||
{{ block "css" . -}}{{- end }}
|
||||
<body>
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
{{- if gt (len $pages) 0 -}}
|
||||
{{ if .title }}<h2>{{ .title }}</h2>{{ end }}
|
||||
{{- range first $amount $pages -}}
|
||||
<article id="article_list">
|
||||
<a href="{{- .Permalink -}}">
|
||||
<div id="articletitle">
|
||||
<article class="article_list">
|
||||
<a href="{{- .Permalink -}}" class="no_underline">
|
||||
<div class="articletitle">
|
||||
<h2>{{- .Title -}}</h2>
|
||||
</div>
|
||||
</a>
|
||||
<a href="{{- .Permalink -}}">
|
||||
<div id="articlecontent">
|
||||
<a href="{{- .Permalink -}}" class="no_underline">
|
||||
<div class="articlecontent">
|
||||
{{ partial "layout/article" (dict "context" . "type" "list" "pic" "true") }}
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{{ end }}
|
||||
|
||||
{{ partial "snippets/article_metadata" $metas }}
|
||||
<div id="articleinner">
|
||||
<div class="articleinner">
|
||||
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}}
|
||||
{{ $resize := "500x" }}
|
||||
{{- $img := index (.context.Resources.ByType "image") 0 -}}
|
||||
|
@ -26,17 +26,17 @@
|
|||
{{- $resize = "500x" }}
|
||||
{{ end }}
|
||||
{{- $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 }}
|
||||
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
|
||||
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}</a>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- 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 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 }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
@ -44,10 +44,10 @@
|
|||
|
||||
{{ define "pagefooter" }}
|
||||
{{ 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 }}
|
||||
<b>Träger der Veranstaltung:</b>
|
||||
<div id="article_footer_foundations1">
|
||||
<div class="article_footer_foundations1">
|
||||
{{ range . }}
|
||||
{{ $l := . }}
|
||||
{{ $url := "" }}
|
||||
|
@ -65,7 +65,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div id="article_footer_foundations2">
|
||||
<div class="article_footer_foundations2">
|
||||
<div class="article_footer_item2">
|
||||
<b>{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}</b>
|
||||
{{ .Date | time.Format ":date_full" }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ if or .when .price .contact .covid }}
|
||||
|
||||
<div id="articlemeta" class="font_size_smaller">
|
||||
<div class="articlemeta font_size_smaller">
|
||||
{{ if .when }}
|
||||
<div>{{ .when }}</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue