26 lines
864 B
HTML
26 lines
864 B
HTML
{{ define "main" }}
|
|
{{- $postType := .Type | lower | singularize -}}
|
|
<article class="{{ partial "post-class.html" . }}" role="document"{{ with .Params.lang }} lang="{{ . }}"{{ end }}>
|
|
<header>
|
|
<h1 class="text-title">
|
|
{{ .Params.pageTitle | default .Title }}
|
|
</h1>
|
|
<p class="byline">
|
|
{{ if in (slice "drama" "narrative" "poem") $postType }}
|
|
{{ partial "post-meta/author.html" . }}
|
|
{{ else }}
|
|
{{ partial "post-meta/date.html" . }}
|
|
{{ end }}
|
|
</p>
|
|
</header>
|
|
|
|
<div class="{{ $postType }}-body">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{/* Post tags are not allowed for drama, narratives and poems */}}
|
|
{{ if not (in (slice "drama" "narrative" "poem") $postType) }}
|
|
{{ partial "post-tags.html" . }}
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|