staticsite/themes/fiscleconsult/layouts/_default/list.html

43 lines
1.1 KiB
HTML
Raw Normal View History

2020-12-06 16:20:47 +00:00
{{ define "main" }}
<h1>{{ .Name }}</h1>
<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">
<h3 class=" article title">
<a href="{{ .RelPermalink }}" class="article title">{{ .Title }}</a>
</h3>
<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 }}