2020-07-06 18:55:32 +00:00
|
|
|
<article class="gblog-post">
|
|
|
|
<header class="gblog-post__header">
|
|
|
|
<h1><a href="{{ .RelPermalink }}">{{ partial "title" . }}</a></h1>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="gblog-markdown">
|
|
|
|
{{ .Summary }}
|
|
|
|
</section>
|
|
|
|
<div class="gblog-post__readmore">
|
|
|
|
{{ if .Truncated }}
|
2020-07-07 09:18:35 +00:00
|
|
|
<a class="flex-inline align-center" title="Read full post" href="{{ .RelPermalink }}">Read full post</a>
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="gblog-post__footer">
|
|
|
|
<span class="no-wrap">
|
|
|
|
<svg class="icon menu"><use xlink:href="#date"></use></svg>
|
|
|
|
<span class="gblog-post__tag">
|
|
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
|
|
|
{{ .Date.Day }} {{ .Date.Month }} {{ .Date.Year }}
|
|
|
|
</time>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
2020-07-09 14:40:28 +00:00
|
|
|
{{ $ac := 0 }}
|
2020-07-06 19:59:33 +00:00
|
|
|
{{ with .Params.authors }}
|
|
|
|
{{ range sort . }}
|
2020-07-08 18:52:38 +00:00
|
|
|
{{ $author := index $.Site.Data.authors . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/authors/%s" $author.name | urlize) }}
|
|
|
|
{{ if eq $ac 0 }}
|
|
|
|
<span class="no-wrap">
|
|
|
|
<svg class="icon person"><use xlink:href="#person"></use></svg>
|
|
|
|
{{ template "post-author" dict "name" $author.name "page" . }}
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
|
|
|
{{ template "post-author" dict "name" $author.name "page" . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2020-07-09 14:54:41 +00:00
|
|
|
{{ $ac = (add $ac 1) }}
|
2020-07-06 19:59:33 +00:00
|
|
|
{{ end }}
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2020-07-09 14:40:28 +00:00
|
|
|
{{ $tc := 0 }}
|
2020-07-06 19:59:33 +00:00
|
|
|
{{ with .Params.tags }}
|
|
|
|
{{ range sort . }}
|
2020-07-08 18:52:38 +00:00
|
|
|
{{ $name := . }}
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name | urlize) }}
|
2020-07-08 18:52:38 +00:00
|
|
|
{{ if eq $tc 0 }}
|
|
|
|
<span class="no-wrap">
|
|
|
|
<svg class="icon tags"><use xlink:href="#tags"></use></svg>
|
|
|
|
{{ template "post-tag" dict "name" $name "page" . }}
|
|
|
|
</span>
|
|
|
|
{{ else }}
|
|
|
|
{{ template "post-tag" dict "name" $name "page" . }}
|
|
|
|
{{ end }}
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ end }}
|
2020-07-09 14:54:41 +00:00
|
|
|
{{ $tc = (add $tc 1) }}
|
2020-07-06 19:59:33 +00:00
|
|
|
{{ end }}
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ end }}
|
|
|
|
</footer>
|
|
|
|
</article>
|
2020-07-08 18:52:38 +00:00
|
|
|
|
|
|
|
{{ define "post-tag" }}
|
|
|
|
<span class="gblog-post__tag gblog-button">
|
|
|
|
<a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts tagged with '{{ .name }}'">{{ .name }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "post-author" }}
|
|
|
|
<span class="gblog-post__tag gblog-button">
|
|
|
|
<a class="gblog-button__link" href="{{ .page.RelPermalink }}" title="All posts of this author">{{ .name }}</a>
|
|
|
|
</span>
|
|
|
|
{{ end }}
|