summaryrefslogtreecommitdiffstats
path: root/layouts/page
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-29 22:26:59 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-29 22:26:59 +0200
commit0622836d5cb3076a6e23ed34583655c152403ca3 (patch)
tree2154e9befa4bc5fa09bca3f19b4c2e4e0661c591 /layouts/page
parente10cd65cab6cfcd60f09885aa00f9bb876ca4d1e (diff)
downloadgohugo-theme-ed-0622836d5cb3076a6e23ed34583655c152403ca3.tar.gz
Add pagination support
Diffstat (limited to 'layouts/page')
-rw-r--r--layouts/page/all-posts.html22
1 files changed, 0 insertions, 22 deletions
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 }}
-
-<div class="articles">
- {{ with .Title }}<h1 class="page-title">{{ . }}</h1>{{ end }}
-
- {{ with .Content }}
- <div class="category-content">
- {{ .Content }}
- </div>
- {{ end }}
-
- {{ range $section }}
- {{ .Render "teaser" }}
- {{ end }}
-</div>
-{{ end }}