Newer
Older
{{ $post := .post }}
{{ $heading := .heading | default "h2" }}
{{ $heading_tag := (dict
"open" ((printf "<%s itemprop='headline'>" $heading) | safeHTML)
"close" ((printf "</%s>" $heading) | safeHTML)
) }}
{{ with $post }}
<article class="post" itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
{{ $heading_tag.open }}
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
{{ $heading_tag.close }}
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
{{ if site.Params.posts.index.truncate_description }}
<p itemprop="articleBody">{{ partial "GetTruncateContent" ( dict
"length" site.Params.posts.index.truncate_description
<p itemprop="articleBody">{{ partial "PrepareText" .Params.summary }}</p>
<div class="post-meta">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
{{ if site.Params.posts.index.show_author }}
{{- partial "commons/image.html"
(dict
"image" .Params.image
</div>
{{- else if site.Params.posts.default_image -}}
<div class="media">