summaryrefslogtreecommitdiffstats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..0dd32b6
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,23 @@
+{{ define "main" }}
+
+<div class="articles">
+ {{ with .Title }}<h1 class="page-title">{{ . }}</h1>{{ end }}
+
+ {{/* Render category content if any */}}
+ {{ with .Content }}
+ <div class="section-content">
+ {{ .Content }}
+ </div>
+ {{ end }}
+
+ {{/* Render posts list */}}
+ <div class="post-list">
+ {{ range .Paginator.Pages }}
+ {{ .Render "teaser" }}
+ {{ end }}
+
+ {{- partial "pagination.html" . -}}
+ </div>
+</div>
+
+{{ end }}