aboutsummaryrefslogtreecommitdiff
path: root/layouts/posts/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/posts/list.html')
-rw-r--r--layouts/posts/list.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/posts/list.html b/layouts/posts/list.html
new file mode 100644
index 0000000..4fda83f
--- /dev/null
+++ b/layouts/posts/list.html
@@ -0,0 +1,20 @@
+{{ define "main" }}
+<section>
+ {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
+ {{ range sort .Paginator.Pages }}
+ <article>
+ <h2>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </h2>
+ <h5>{{ .Date.Format "January 2, 2006" }}</h5>
+ <p>
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <a href="{{ .Permalink }}">...</a>
+ {{ end }}
+ </p>
+ </article>
+ {{ end }}
+ {{ template "_internal/pagination.html" . }}
+</section>
+{{ end }} \ No newline at end of file