From 0622836d5cb3076a6e23ed34583655c152403ca3 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 29 May 2022 22:26:59 +0200 Subject: Add pagination support --- layouts/page/all-posts.html | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 layouts/page/all-posts.html (limited to 'layouts/page') diff --git a/layouts/page/all-posts.html b/layouts/page/all-posts.html deleted file mode 100644 index a26b084..0000000 --- a/layouts/page/all-posts.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ define "main" }} -{{/* Define a section to pull recent posts from. - This will default to the section with the most number of pages. */}} -{{ $mainSections := site.Params.mainSections | default (slice "posts") }} - -{{/* Create a variable with that section to use in multiple places. */}} -{{ $section := where site.RegularPages.ByDate.Reverse "Section" "in" $mainSections }} - -
- {{ with .Title }}

{{ . }}

{{ end }} - - {{ with .Content }} -
- {{ .Content }} -
- {{ end }} - - {{ range $section }} - {{ .Render "teaser" }} - {{ end }} -
-{{ end }} -- cgit v1.2.3