Newer
Older
{{ if .posts }}
<div class="highlight">
{{ $highlight := index .posts 0 }}
{{ $highlight = site.GetPage (printf "/posts/%s" $highlight)}}
{{ $list := .posts }}
{{ with $highlight }}
<div class="highlight-post">
{{ partial "posts/post" (dict
"post" .
"heading" "h3"
) }}
{{ range after 1 . }}
{{ with site.GetPage (printf "/posts/%s" .) }}
{{- $title := partial "PrepareHTML" .Title -}}
<h3 itemprop="headline"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h3>
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
<p itemprop="articleBody">{{ partial "GetTruncateContent" ( dict
<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 }}