before implementing search
This commit is contained in:
43
themes/fiscleconsult/layouts/_default/list.html
Normal file
43
themes/fiscleconsult/layouts/_default/list.html
Normal file
@@ -0,0 +1,43 @@
|
||||
{{ 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 }}
|
Reference in New Issue
Block a user