2018-07-29 21:41:49 +00:00
|
|
|
{{ define "header" }}
|
2018-01-24 09:42:50 +00:00
|
|
|
{{ partial "header.html" . }}
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ end }}
|
2018-01-24 09:42:50 +00:00
|
|
|
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ define "content" }}
|
2018-07-20 20:32:00 +00:00
|
|
|
<div class="post-list">
|
2019-08-16 15:32:03 +00:00
|
|
|
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
|
2018-09-12 02:34:45 +00:00
|
|
|
{{ range $paginator.Pages }}
|
2018-11-27 10:17:45 +00:00
|
|
|
{{ if .Draft }}
|
|
|
|
{{ .Scratch.Set "draftPage" true }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .Scratch.Set "draftPage" false }}
|
|
|
|
{{ end }}
|
2018-07-20 20:32:00 +00:00
|
|
|
<div class="post-list__item">
|
|
|
|
<span class="item__title--big">
|
2018-11-27 10:17:45 +00:00
|
|
|
<a href="{{ .RelPermalink }}" {{if .Scratch.Get "draftPage" }}class="draft"{{end}}>{{ .Title }}</a>
|
2018-03-29 23:49:07 +00:00
|
|
|
</span>
|
2018-07-20 20:32:00 +00:00
|
|
|
<span class="item__date">
|
|
|
|
{{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
|
2018-07-16 03:22:00 +00:00
|
|
|
</span>
|
2018-11-27 10:17:45 +00:00
|
|
|
<span {{if .Scratch.Get "draftPage" }}class="draft"{{end}}>
|
2018-08-30 01:51:30 +00:00
|
|
|
{{ if .Description }}
|
|
|
|
{{ .Description }}
|
|
|
|
{{ else }}
|
2018-07-16 03:22:00 +00:00
|
|
|
{{ .Summary }}
|
2018-08-30 01:51:30 +00:00
|
|
|
{{ end }}
|
2018-11-27 10:17:45 +00:00
|
|
|
</span>
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ if .Truncated }}
|
2018-09-12 02:34:45 +00:00
|
|
|
... <a class="read-more-symbol" href="{{ .RelPermalink }}">➦</a>
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ end }}
|
2018-01-25 09:57:13 +00:00
|
|
|
</div>
|
2018-11-27 10:17:45 +00:00
|
|
|
{{ .Scratch.Delete "draftPage" }}
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ end }}
|
2017-10-01 03:26:37 +00:00
|
|
|
</div>
|
2018-09-12 02:34:45 +00:00
|
|
|
{{ partial "pagination.html" . }}
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ end }}
|
2018-01-24 09:42:50 +00:00
|
|
|
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ define "footer" }}
|
2018-09-12 02:34:45 +00:00
|
|
|
{{ if .Site.GoogleAnalytics }}
|
|
|
|
<!-- Google Analytics -->
|
|
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ partial "footer/font-awesome-js.html" . }}
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ end }}
|