forked from Bunteshaus/bunteshaus.de
37 lines
1.0 KiB
HTML
37 lines
1.0 KiB
HTML
|
{{ if .Title }}
|
||
|
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||
|
<div id="articletitle">
|
||
|
<h2>{{- .Title -}}</h2>
|
||
|
</div>
|
||
|
<div id="articlecontent">
|
||
|
{{ partial "structure/article_meta" (dict "context" . "invis" "covid,registeremail,contact") }}
|
||
|
<div id="articleinner">
|
||
|
<div id="articledata">
|
||
|
{{- if .Resources.ByType "image" -}}
|
||
|
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||
|
{{ $thumb := "" }}
|
||
|
{{ if eq .Content "" }}
|
||
|
<div class="notext">
|
||
|
{{- $thumb = $pic.Resize "1024x" }}
|
||
|
{{ else }}
|
||
|
<div class="text">
|
||
|
{{- $thumb = $pic.Resize "2048x" }}
|
||
|
{{ end }}
|
||
|
<img src="{{- $thumb.Permalink -}}" style="border-radius: 15px;" />
|
||
|
</div>
|
||
|
{{- end }}
|
||
|
<div id="articletext">
|
||
|
{{- if .Params.description -}}
|
||
|
{{- .Params.description -}}
|
||
|
{{- else -}}
|
||
|
{{- .Summary -}}
|
||
|
{{- end }}
|
||
|
{{ if .Truncated }}
|
||
|
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</a></article>
|
||
|
{{ end }}
|