bunteshaus.de/themes/buha/layouts/partials/structure/list_article.html

37 lines
1.0 KiB
HTML
Raw Normal View History

2022-04-03 21:08:42 +02:00
{{ if .Title }}
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
<div id="articletitle">
<h2>{{- .Title -}}</h2>
</div>
<div id="articlecontent">
2022-04-04 03:35:13 +02:00
{{ $.Scratch.Set "meta" "false" }}
{{ partial "structure/article_meta" (dict "context" . "visible" "price") }}
2022-04-03 21:08:42 +02:00
<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">
2022-04-04 05:39:34 +02:00
{{- if .Summary -}}
2022-04-03 21:08:42 +02:00
{{- .Summary -}}
{{- end }}
2022-04-04 03:35:13 +02:00
{{ if or .Truncated (eq ($.Scratch.Get "meta") "true") }}
2022-04-03 21:08:42 +02:00
<div id="readmore">{{- i18n "readmore" -}}..</div>
{{ end }}
</div>
</div>
</div>
</div>
</a></article>
2022-04-04 03:35:13 +02:00
{{ end }}