hugo-theme-console/layouts/_default/list.html
Marcin Mierzejewski 512902121b home page: add home page with the latest posts and photos
screenshots: update screenshot with new home page
2020-05-03 11:38:44 +02:00

18 lines
No EOL
447 B
HTML

{{ define "main" }}
<h1>{{ .Page.Title }}</h1>
<br/>
{{ .Content }}
<div class="posts-list">
{{ range sort .Data.Pages "Date" "desc" }}
{{ if not .Params.private }}
<div class="post">
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
{{ .Summary }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}