2019-07-08 07:05:23 +02:00
|
|
|
{{ define "main" }}
|
2019-07-31 18:43:51 +02:00
|
|
|
<header class="post-header">
|
2019-07-08 07:05:23 +02:00
|
|
|
<h1 id="title">{{ .Title }}</h1>
|
2022-01-02 20:24:06 +01:00
|
|
|
<!--
|
|
|
|
If it's a static page, then the post information are useless and
|
|
|
|
therefore not displayed. The test checks if the page IS NOT a static
|
|
|
|
page.
|
|
|
|
-->
|
2021-10-29 22:34:24 +02:00
|
|
|
{{- if ne .Layout "static" }}
|
2019-08-25 08:58:26 +02:00
|
|
|
{{- partial "post-info.html" . -}}
|
2021-10-29 22:34:24 +02:00
|
|
|
{{ end }}
|
2019-07-08 07:05:23 +02:00
|
|
|
</header>
|
2022-01-02 20:24:06 +01:00
|
|
|
<!--
|
|
|
|
If in the front matter, the layout key is set to verse, then the class is
|
|
|
|
added.
|
|
|
|
-->
|
2021-09-12 15:07:16 +02:00
|
|
|
<article {{ if eq .Layout "verse" }} class="content, {{ .Layout }}"
|
2021-10-29 22:34:24 +02:00
|
|
|
{{ else }} class="content" {{ end -}}>
|
2022-01-02 20:24:06 +01:00
|
|
|
<!--
|
|
|
|
Displays the image associated to the post, if set in the front matter.
|
|
|
|
-->
|
|
|
|
{{ if .Params.postimage -}}
|
|
|
|
<figure class="post-image">
|
|
|
|
<img src="/images/{{ .Params.postimage }}"
|
|
|
|
alt="{{ .Params.postimagedescription }}">
|
|
|
|
</figure>
|
|
|
|
{{ end }}
|
2021-10-29 22:34:24 +02:00
|
|
|
{{ .Content -}}
|
2021-09-12 15:07:16 +02:00
|
|
|
</article>
|
2021-10-29 22:34:24 +02:00
|
|
|
{{ end -}}
|
2019-07-08 07:05:23 +02:00
|
|
|
|