diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html new file mode 100644 index 0000000..7398566 --- /dev/null +++ b/layouts/partials/post-list.html @@ -0,0 +1,38 @@ +{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") }} +{{ range $paginator.Pages }} + +
+ {{if .Params.image}} + +
+
+ {{else}} + +
+
+ {{end}} + +
+ +
+ {{if .Params.tags }}{{ range $index, $tag := .Params.tags }} + #{{$tag}} {{end}} + {{ end }} +

{{.Title}}

+
+
+ {{ if .Description }} +

{{ .Description | markdownify }}

+ {{else}} +

{{ .Summary | plainify | safeHTML }}{{ if .Truncated }} ... {{end}}

+ {{end}} +
+
+ + +
+
+{{ end }}