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 -}} {{- else -}}
{{- .Summary -}} {{- .Summary -}}
{{- end }} {{- end }}
{{ if or .Truncated (eq $meta "true") }} {{ if .Truncated }}
<div id="readmore">{{- i18n "readmore" -}}..</div> <div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }} {{ end }}
</div> </div>

View File

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

View File

@ -24,5 +24,12 @@
RSS</a><br><br> RSS</a><br><br>
{{- end -}} {{- end -}}
<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a> <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>
</div> </div>

View File

@ -12,12 +12,6 @@
<a href="{{- . | relLangURL -}}">{{- $name | humanize -}}</a> <a href="{{- . | relLangURL -}}">{{- $name | humanize -}}</a>
{{ end }} {{ end }}
{{- 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>
</div> </div>