aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/partials/posts.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/polaris/layouts/partials/posts.html')
-rw-r--r--themes/polaris/layouts/partials/posts.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/themes/polaris/layouts/partials/posts.html b/themes/polaris/layouts/partials/posts.html
index f641d16..36f6275 100644
--- a/themes/polaris/layouts/partials/posts.html
+++ b/themes/polaris/layouts/partials/posts.html
@@ -1,15 +1,13 @@
-{{ $pages := where site.RegularPages "Section" "blog" }}
+{{ $pages := where site.RegularPages "Section" "posts" }}
{{ $pagesLen := (len $pages) }}
{{ if eq $pagesLen 0 }}
<p>There's nothing here!</p>
-{{ end }}
-
-{{ range $index, $element := $pages }}
+{{ else }}
+<h2>Posts</h2>
<ul>
+ {{ range $index, $element := $pages }}
<li><a href = "{{ .Permalink }}">{{ .Title }}</a> ({{ .Date | time.Format "Jan 02 2006" }})</li>
-</ul>
- {{ if ne (add $index 1) $pagesLen }}
-<hr>
{{ end }}
+</ul>
{{ end }}