portfoligor/layouts/_default/single.html

19 lines
525 B
HTML
Raw Normal View History

{{ define "main" }}
<header class="post-header">
{{ if .Params.postimage -}}
<img class="post-image"
src="/images/{{ .Params.postimage }}"
alt="{{ .Params.postimagedescription }}">
{{ end }}
<h1 id="title">{{ .Title }}</h1>
2021-10-29 22:34:24 +02:00
{{- if ne .Layout "static" }}
{{- partial "post-info.html" . -}}
2021-10-29 22:34:24 +02:00
{{ end }}
</header>
<article {{ if eq .Layout "verse" }} class="content, {{ .Layout }}"
2021-10-29 22:34:24 +02:00
{{ else }} class="content" {{ end -}}>
{{ .Content -}}
</article>
2021-10-29 22:34:24 +02:00
{{ end -}}