summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-09 00:34:29 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-09 00:34:29 +0200
commitd6c3e496a8646d4323f00cc9b81e713d2855dbba (patch)
treefd4878e455460598de2909aef473b43d6740f9bf /layouts
parente892977923e41469bbe7ee3024930fc6e42976ae (diff)
downloadgohugo-theme-ed-d6c3e496a8646d4323f00cc9b81e713d2855dbba.tar.gz
Add list template
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..3a1d953
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+<div class="articles">
+ {{- with .Title }}
+ <h1 class="page-title">{{ . }}</h1>
+ {{- end }}
+ {{- with .Content }}
+ <div class="category-content">
+ {{ .Content }}
+ </div>
+ {{- end }}
+ {{ range .Paginator.Pages }}
+ {{- .Render "teaser" }}
+ {{ end }}
+</div>
+{{ end }}