This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
theme-geeklab/layouts/_default/single.html
Robert Kaussow 852f8745f5
All checks were successful
continuous-integration/drone/push Build is passing
include article footer only if page section is 'post'
2019-02-13 11:03:26 +01:00

14 lines
300 B
HTML

{{ define "main" }}
<article class="post">
<header class="post-header">
<h1 class="post-header__title">{{ .Title }}</h1>
</header>
<div class="post-content">
{{ .Content }}
</div>
{{ if eq .Section "post" }}
{{ partial "article_footer.html" . -}}
{{ end }}
</article>
{{ end }}