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

43 lines
1.1 KiB
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-03 21:08:42 +02:00
{{ partial "structure/article_meta" (dict "context" .) }}
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 21:08:42 +02:00
2022-04-03 02:33:46 +02:00
</article>
2022-04-03 21:08:42 +02:00
{{ define "sidebar" }}
<h3>{{ T "tags" }}</h3>
<div class="tags-list" style="display: flex; flex-direction: column;">
{{- with .Params.tags -}}
{{- if ge (len .) 1 -}}
{{- range . -}}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/">#{{ . }}</a>
{{ end -}}
{{- end -}}
{{- end -}}
</div>
{{ end }}