bunteshaus.de/themes/buha/layouts/partials/single/article.html

31 lines
737 B
HTML
Raw Normal View History

2022-04-03 01:27:41 +02:00
<div id="articletitle">
<h1>{{- .Title -}}</h1>
</div>
<article>
<div id="articlecontent">
2022-04-04 03:35:13 +02:00
{{ partial "structure/article_meta" (dict "context" . "visible" "all" ) }}
2022-04-03 01:27:41 +02:00
<div id="articleinner">
<div id="articledata">
{{- if .Resources.ByType "image" -}}
{{ if eq .Content "" }}
<div class="notext">
{{ else }}
<div class="text">
{{ end }}
{{ range .Resources.ByType "image" }}
{{- $pic := . -}}
{{- $thumb := $pic.Resize "1024x" }}
2022-04-03 21:08:42 +02:00
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}" style="border-radius: 15px;" /></a>
2022-04-03 01:27:41 +02:00
{{ end }}
</div>
{{- end }}
<div id="articletext">
{{- .Content -}}
</div>
</div>
</div>
</div>
2022-04-03 02:33:46 +02:00
</article>
2022-04-03 21:08:42 +02:00