hugo-theme-cybercards/layouts/partials/content.html

21 lines
833 B
HTML

{{ if .Title -}}
<header class="post-header card-header" id="cs-header">
<h2 class="post-title" itemprop="name headline">{{ .Title }}</h2>
{{ if and (not .Params.nodate) .Date -}}
<p class="post-meta">
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'
itemprop="datePublished">{{ .Date.Format (i18n "dateFormat") }}</time>
{{ with .Params.Author -}} •
<span itemprop="author" itemscope
itemtype="http://schema.org/Person">
<span itemprop="name">{{ . }}</span></span>
{{- end }}
</p>
{{- end }}
</header>
{{- end }}
{{ with .Content -}}
<div class="post-content card-body" id="cs-content"
itemprop="articleBody">{{ . }}</div>
{{- end }}