small fixes

This commit is contained in:
teldra 2022-04-03 00:16:19 +02:00
parent 7f5b6db3f1
commit 859e1b78ab
4 changed files with 11 additions and 16 deletions

View File

@ -78,7 +78,7 @@
{{- else -}}
{{- .Summary -}}
{{- end }}
{{ if or .Truncated (eq $meta "true") }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div>

View File

@ -30,15 +30,12 @@
<div id="articlemeta">
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
<div style="margin-bottom: .4em;">{{ .Params.when }}</div>
{{ $meta = true }}
{{ end }}
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
{{ if eq .Params.price "free" }}
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
{{ $meta = true }}
{{ else }}
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
{{ $meta = true }}
{{ end }}
{{ end }}
</div>
@ -64,7 +61,7 @@
{{- else -}}
{{- .Summary -}}
{{- end }}
{{ if or .Truncated (eq $meta true) }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div>
@ -86,15 +83,12 @@
<div id="articlemeta">
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
<div style="margin-bottom: .4em;">{{ .Params.when }}</div>
{{ $meta = true }}
{{ end }}
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
{{ if eq .Params.price "free" }}
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
{{ $meta = true }}
{{ else }}
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
{{ $meta = true }}
{{ end }}
{{ end }}
</div>
@ -120,7 +114,7 @@
{{- else -}}
{{- .Summary -}}
{{- end }}
{{ if or .Truncated (eq $meta true) }}
{{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div>

View File

@ -24,5 +24,12 @@
RSS</a><br><br>
{{- end -}}
<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>
<div style="display: flex; flex-direction: row; margin-left: 1rem;">
{{ range $.Site.Home.AllTranslations }}
{{ if ne .Lang $.Lang }}
<a href="{{- .Permalink -}}">{{- .Lang -}}</a>
{{ end }}
{{ end }}
</div>
</div>
</div>

View File

@ -12,12 +12,6 @@
<a href="{{- . | relLangURL -}}">{{- $name | humanize -}}</a>
{{ end }}
{{- end -}}
<div style="display: flex; flex-direction: column; margin-left: 1rem;">
{{ range $.Site.Home.AllTranslations }}
{{ if ne .Lang $.Lang }}
<a href="{{- .Permalink -}}">{{- .Lang -}}</a>
{{ end }}
{{ end }}
</div>
</div>
</div>