diff --git a/src/config/_default/hugo.toml b/src/config/_default/hugo.toml
index 1c24e166b..2b4d4cd81 100644
--- a/src/config/_default/hugo.toml
+++ b/src/config/_default/hugo.toml
@@ -7,22 +7,25 @@ enableGitInfo = true
# FIXME: klären, ob das lokal auskommentiert werden kann, weil ich in build.sh ja lastmod mitgebe...
[frontmatter]
- lastmod = ["lastmod", ":git", "date", "publishDate"]
+lastmod = ["lastmod", ":git", "date", "publishDate"]
[sitemap]
- changeFreq = 'daily'
- filename = 'sitemap.xml'
- priority = 0.5
+changeFreq = 'daily'
+filename = 'sitemap.xml'
+priority = 0.5
[outputs]
- home = ["HTML", "RSS", "JSON", "post-sitemap", "page-sitemap"]
+home = ["HTML", "RSS", "JSON", "post-sitemap", "page-sitemap"]
[outputFormats.post-sitemap]
- baseName = 'post-sitemap'
- mediaType = 'application/xml'
- noUgly = true
+baseName = 'post-sitemap'
+mediaType = 'application/xml'
+noUgly = true
[outputFormats.page-sitemap]
- baseName = 'page-sitemap'
- mediaType = 'application/xml'
- noUgly = true
+baseName = 'page-sitemap'
+mediaType = 'application/xml'
+noUgly = true
+
+[pagination]
+pagerSize = 15
diff --git a/src/themes/seatable/layouts/_default/list.html b/src/themes/seatable/layouts/_default/list.html
index f3b4b9254..58652c134 100644
--- a/src/themes/seatable/layouts/_default/list.html
+++ b/src/themes/seatable/layouts/_default/list.html
@@ -8,7 +8,11 @@
{{ .T
diff --git a/src/themes/seatable/layouts/partials/pagination.html b/src/themes/seatable/layouts/partials/pagination.html
new file mode 100644
index 000000000..cbc201896
--- /dev/null
+++ b/src/themes/seatable/layouts/partials/pagination.html
@@ -0,0 +1,57 @@
+{{- $page := . }}
+{{ $classes := "ms-0 flex h-10 items-center justify-center rounded-s-lg border border-e-0 border-gray-300 bg-white px-4 leading-tight text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white" }}
+
+{{- if gt $page.Paginator.TotalPages 1 }}
+
+ {{- with .Paginator }}
+ {{- $currentPageNumber := .PageNumber }}
+
+ {{- with .First }}
+ {{- if ne $currentPageNumber .PageNumber }}
+ -
+ ««
+
+ {{- end }}
+ {{- end }}
+
+ {{- with .Prev }}
+ -
+ «
+
+ {{- end }}
+
+ {{- $slots := 3 }}
+ {{- $start := math.Max 1 (sub .PageNumber (math.Floor (div $slots 2))) }}
+ {{- $end := math.Min .TotalPages (sub (add $start $slots) 1) }}
+ {{- if lt (add (sub $end $start) 1) $slots }}
+ {{- $start = math.Max 1 (add (sub $end $slots) 1) }}
+ {{- end }}
+
+ {{- range $k := seq $start $end }}
+ {{- if eq $.Paginator.PageNumber $k }}
+ -
+ {{ $k }}
+
+ {{- else }}
+ -
+ {{ $k }}
+
+ {{- end }}
+ {{- end }}
+
+ {{- with .Next }}
+ -
+ »
+
+ {{- end }}
+
+ {{- with .Last }}
+ {{- if ne $currentPageNumber .PageNumber }}
+ -
+ »»
+
+ {{- end }}
+ {{- end }}
+ {{- end }}
+
+{{- end }}