This commit is contained in:
teldra 2022-03-26 21:17:30 +01:00
parent 2e14d28f6d
commit 5416f24ff7
3 changed files with 38 additions and 21 deletions

View File

@ -8,6 +8,11 @@
background: url(/images/logo_back_full.svg); background: url(/images/logo_back_full.svg);
} }
.container {
background-color: var(--background-alt);
background-image: linear-gradient(var(--background-alt), var(--background));
}
main h1 { main h1 {
margin-top: .2rem; margin-top: .2rem;
margin-bottom: .2rem; margin-bottom: .2rem;
@ -44,6 +49,11 @@ main h1 {
color: var(--text-header); color: var(--text-header);
} }
#articledata {
display: flex;
flex-direction: column-reverse;
}
article h2 { article h2 {
margin-top: 0; margin-top: 0;
} }
@ -83,6 +93,7 @@ article p:first-child {
article img { article img {
width: 100%; width: 100%;
margin-top: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -124,7 +135,6 @@ article img {
} }
.container { .container {
background-color: var(--background-alt);
min-height: 100vh; min-height: 100vh;
} }
@ -162,8 +172,14 @@ article img {
margin-top: .4rem; margin-top: .4rem;
width: 30%; width: 30%;
} }
#articletext-single {
margin-top: -1rem;
}
article img { article img {
width: auto; width: auto;
margin-top: 0px;
} }
} }

View File

@ -3,27 +3,10 @@
{{ define "main" }} {{ define "main" }}
{{ if eq .Description "nottranslated" }} {{ if eq .Description "nottranslated" }}
{{ $all_lang := $.Site.Home.Translations }} {{ partial "orga.html" . }}
{{ range site.RegularPages }}
<a href="{{ .Permalink}}">{{ .Name }}:</a>
{{ if .Translations }}
{{ range .Translations }}
{{ $t1 := .Language }}
{{ range $all_lang }}
{{- $a := .Language -}}
{{- $b := $.Site.Language.Lang -}}
{{ if ne $t1 .Language }}
missing: {{ .Language }}<br>
{{ end }}
{{ end }}
{{ end }}
{{ else }}
no translations<br>
{{ end }}
{{ end }}
{{ else }} {{ else }}
<h1>{{ if and (isset .Params "categories") (eq .Section "events") }}{{ index .Params.categories 0 }}: {{ end }}{{- .Title -}}</h1> <h1>{{- .Title -}}</h1>
{{ if and (ne .Params.when "") (ne .Params.when nil) }} {{ if and (ne .Params.when "") (ne .Params.when nil) }}
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div> <div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
{{ end }} {{ end }}
@ -50,7 +33,7 @@
{{ end }} {{ end }}
</div> </div>
{{- end }} {{- end }}
<div id="articletext"> <div id="articletext-single">
{{- .Content -}} {{- .Content -}}
</div> </div>
</div> </div>

View File

@ -0,0 +1,18 @@
{{ $all_lang := $.Site.Home.Translations }}
{{ range site.RegularPages }}
<a href="{{ .Permalink}}">{{ .Name }}:</a>
{{ if .Translations }}
{{ range .Translations }}
{{ $t1 := .Language }}
{{ range $all_lang }}
{{- $a := .Language -}}
{{- $b := $.Site.Language.Lang -}}
{{ if ne $t1 .Language }}
missing: {{ .Language }}<br>
{{ end }}
{{ end }}
{{ end }}
{{ else }}
no translations<br>
{{ end }}
{{ end }}