pi-www-theme-soho/layouts/index.html

30 lines
822 B
HTML
Raw Normal View History

2017-09-07 22:41:16 +03:00
{{ define "main" -}}
2014-04-27 01:25:13 +03:00
<div class="posts">
2020-02-10 20:38:11 +02:00
{{ range .Site.RegularPages -}}
{{ if and (or (eq .Type "post") (eq .Type "article")) (or (not (isset .Params "Hidden")) (eq .Params.Hidden false)) -}}
<article class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h1>
<div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> · {{ .ReadingTime }} min read
</div>
{{ if .Description }}
{{ .Description }}
{{ else }}
{{ .Summary }}
{{ end }}
{{ if .Truncated }}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More</a>
</div>
{{ end }}
</article>
{{- end }}
{{- end }}
2014-06-07 11:57:40 +03:00
</div>
{{- end }}