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

View File

@ -3,27 +3,10 @@
{{ define "main" }}
{{ if eq .Description "nottranslated" }}
{{ $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 }}
{{ partial "orga.html" . }}
{{ 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) }}
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
{{ end }}
@ -50,7 +33,7 @@
{{ end }}
</div>
{{- end }}
<div id="articletext">
<div id="articletext-single">
{{- .Content -}}
</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 }}