2019-08-05 15:15:01 +02:00
|
|
|
{{ $cdn_url := .Scratch.Get "cdn_url" }}
|
2019-02-03 12:30:44 +01:00
|
|
|
|
|
|
|
<div class="post-warp">
|
2019-08-10 21:26:03 +02:00
|
|
|
{{ partial "intro.html" . }}
|
|
|
|
{{ range (.Paginate (where .Pages "Type" "posts")).Pages }}
|
|
|
|
<article class="post" itemscope itemtype="http://schema.org/Article">
|
|
|
|
<header class="post-header">
|
|
|
|
<h1 class="post-title" itemprop="name headline">
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
|
|
</h1>
|
|
|
|
</header>
|
|
|
|
<div class="post-content">
|
|
|
|
<!--featured_image-->
|
|
|
|
{{ with .Params.featured_image }}
|
|
|
|
{{ $img := . }}
|
|
|
|
<p>
|
|
|
|
<img itemprop="image" src="{{ printf "%s%s" $cdn_url $img }}" class="featured_image">
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
<!-- end featured_image-->
|
2019-02-03 12:30:44 +01:00
|
|
|
|
2019-08-10 21:26:03 +02:00
|
|
|
{{ .Summary }}
|
2019-08-05 15:15:01 +02:00
|
|
|
</div>
|
2019-08-10 21:26:03 +02:00
|
|
|
<div class="post-footer">
|
|
|
|
<div class="post-meta">
|
|
|
|
<span class="post-time">
|
|
|
|
<time datetime={{.Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} itemprop="datePublished">
|
|
|
|
{{ .Date.Format (.Site.Params.dateFormatToUse | default "2 January 2006") }}
|
|
|
|
</time>
|
|
|
|
</span>
|
|
|
|
in
|
|
|
|
{{ with .Params.categories }}
|
|
|
|
<i class="iconfont icon-folder"></i>
|
|
|
|
<span class="post-category">
|
|
|
|
{{ range . }}
|
|
|
|
{{ $name := . }}
|
|
|
|
{{ with $.Site.GetPage "taxonomy" (printf "categories/%s" $name) | default ($.Site.GetPage "taxonomy" (printf "categories/%s" ($name | urlize))) }}
|
|
|
|
<a href="{{ .Permalink }}">{{ $name }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ with .Params.tags }}
|
|
|
|
<div class="post-tags">
|
|
|
|
{{ range . }}
|
|
|
|
<span class="tag">
|
|
|
|
<a href="{{ "tags/" | absURL }}{{ . | urlize }}/">#{{ . }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2019-08-10 21:26:03 +02:00
|
|
|
</article>
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ end }}
|
2019-02-03 12:30:44 +01:00
|
|
|
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ partial "paginator.html" . }}
|
2019-05-05 08:30:39 +02:00
|
|
|
</div>
|