summaryrefslogtreecommitdiffstats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-31 09:35:31 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-31 09:35:31 +0200
commit41df0128d69b344050ef12f2dcd884e635a3299f (patch)
treeaf26f956b70c441675023d2105d1ff215458e6a9 /layouts/_default/list.html
parent882af0656327476b523e0d6538b29ae9ad6eda28 (diff)
downloadgohugo-theme-ed-41df0128d69b344050ef12f2dcd884e635a3299f.tar.gz
Add tagging support
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 }}