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