2020-12-06 16:20:47 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-07 00:44:50 +00:00
|
|
|
<h1 class="listname">{{ .Name }}</h1>
|
2020-12-06 16:20:47 +00:00
|
|
|
|
|
|
|
<div class="articles">
|
|
|
|
{{ range .Pages.ByPublishDate.Reverse }}
|
|
|
|
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
|
|
|
|
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
|
|
|
<article class="article">
|
|
|
|
<a href="{{ .RelPermalink }}" class="article">
|
|
|
|
<div class="article">
|
|
|
|
<img src="{{.Params.image }}" alt="" srcset="{{.Params.image }}" class="article">
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="info article">
|
2020-12-09 00:23:56 +00:00
|
|
|
<h1 class=" article title">
|
2020-12-06 16:20:47 +00:00
|
|
|
<a href="{{ .RelPermalink }}" class="article title">{{ .Title }}</a>
|
2020-12-09 00:23:56 +00:00
|
|
|
</h1>
|
2020-12-06 16:20:47 +00:00
|
|
|
<div class="article metadata">
|
|
|
|
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
|
|
|
</div>
|
|
|
|
<div class="article summary">
|
|
|
|
<p>{{.Summary}}</p>
|
|
|
|
<a href="{{ .RelPermalink }}" class="more article">
|
|
|
|
Read more »
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ end }}
|