2020-05-10 16:56:41 +02:00
|
|
|
{{- define "main" }}
|
|
|
|
{{- $scratch := newScratch }}
|
|
|
|
{{- if isset .Params "image" }}
|
|
|
|
{{- $scratch.Set "image" .Params.image }}
|
|
|
|
{{- else }}
|
|
|
|
{{- if isset .Params "featured_image" }}
|
|
|
|
{{- $scratch.Set "image" .Params.featured_image }}
|
|
|
|
{{- else }}
|
2020-05-12 17:53:40 +02:00
|
|
|
{{- $scratch.Set "image" "nop" }}
|
2020-05-10 16:56:41 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $image := $scratch.Get "image" }}
|
2020-05-12 17:53:40 +02:00
|
|
|
|
|
|
|
{{ if eq $image "nop" }}
|
|
|
|
<section style='margin-top: 5em'>
|
|
|
|
</section>
|
|
|
|
{{ else }}
|
|
|
|
{{- $bg := ( $image | absLangURL) }}
|
|
|
|
<section class = 'post_header' style = 'background-image:url({{ $bg }});'>
|
|
|
|
<div class='post_header_tags'>
|
|
|
|
<div class = 'excerpt_meta'>
|
|
|
|
{{- with .Params.tags -}}
|
|
|
|
{{- range first 10 . }}
|
|
|
|
{{- $tag := . | urlize }}
|
|
|
|
<a href = '{{ absURL (printf "tags/%s" $tag) }}' class = 'post_tag'>
|
|
|
|
{{- . }}
|
|
|
|
</a>
|
|
|
|
{{- end }}
|
2020-05-11 17:17:51 +02:00
|
|
|
{{- end }}
|
2020-05-12 17:53:40 +02:00
|
|
|
</div>
|
2020-05-11 17:17:51 +02:00
|
|
|
</div>
|
2020-05-12 17:53:40 +02:00
|
|
|
</section>
|
|
|
|
{{ end }}
|
2020-05-10 16:56:41 +02:00
|
|
|
<div class = 'post'>
|
|
|
|
<div class='post_metadata'>
|
|
|
|
<hr/>
|
2020-05-26 21:12:43 +02:00
|
|
|
<h1 class='post_title'>
|
|
|
|
{{- if isset .Params "title" }}
|
|
|
|
{{ .Title }}
|
|
|
|
{{- else }}
|
|
|
|
Post op {{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if isset .Params "link" }}
|
|
|
|
(<a href="{{ .Params.link }}" target="_blank" style="text-decoration: underline;">link</a>)
|
|
|
|
{{- end }}
|
|
|
|
</h1>
|
2020-05-13 14:23:59 +02:00
|
|
|
{{ if isset .Params "date" }}
|
2020-05-10 16:56:41 +02:00
|
|
|
<h3>
|
|
|
|
<svg>
|
|
|
|
<use xlink:href="#calendar"></use>
|
|
|
|
</svg>
|
|
|
|
{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
|
|
|
</h3>
|
2020-05-13 14:23:59 +02:00
|
|
|
{{ end }}
|
2020-05-10 16:56:41 +02:00
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
<article class='post_content'>
|
|
|
|
{{- .Content }}
|
|
|
|
<div class = 'post_extra'>
|
|
|
|
{{- partial "copy" . }}
|
|
|
|
</div>
|
|
|
|
</article>
|
2020-05-11 08:26:35 +02:00
|
|
|
</div>
|
|
|
|
<div class='post'>
|
2020-05-10 16:56:41 +02:00
|
|
|
<aside>
|
|
|
|
{{- partial "aside" . }}
|
|
|
|
</aside>
|
|
|
|
</div>
|
2020-05-12 17:53:40 +02:00
|
|
|
|
|
|
|
{{ if not (isset .Params "disablefb") }}
|
2020-05-17 14:37:21 +02:00
|
|
|
<hr/>
|
2020-05-11 08:26:35 +02:00
|
|
|
<div class='post'>
|
|
|
|
<article class='post_content' style="text-align: center;">
|
2020-05-12 17:53:40 +02:00
|
|
|
<h3 id="fb-community-header">Facebook community »</h3>
|
2020-05-11 08:26:35 +02:00
|
|
|
|
2020-05-11 11:18:49 +02:00
|
|
|
<p>Klik op '<em>Berichten</em>' en laat iets van je horen!</p>
|
2020-05-11 08:26:35 +02:00
|
|
|
|
2020-05-26 21:12:43 +02:00
|
|
|
<p>
|
|
|
|
<a href="https://facebook.com/redzuurdesem/" target="_blank">
|
|
|
|
<img src="/fb/fbwidget.png" id="fbwidget" alt="Facebook Widget Screenshot" />
|
|
|
|
</a>
|
|
|
|
</p>
|
2020-05-11 08:26:35 +02:00
|
|
|
</article>
|
|
|
|
</div>
|
2020-05-12 17:53:40 +02:00
|
|
|
{{ end }}
|
|
|
|
|
2020-05-10 16:56:41 +02:00
|
|
|
{{- end }}
|