diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-09 00:34:29 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-09 00:34:29 +0200 |
| commit | d6c3e496a8646d4323f00cc9b81e713d2855dbba (patch) | |
| tree | fd4878e455460598de2909aef473b43d6740f9bf | |
| parent | e892977923e41469bbe7ee3024930fc6e42976ae (diff) | |
| download | gohugo-theme-ed-d6c3e496a8646d4323f00cc9b81e713d2855dbba.tar.gz | |
Add list template
| -rw-r--r-- | layouts/_default/list.html | 15 |
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 }} |
