diff options
| -rw-r--r-- | content/categories/_index.md | 8 | ||||
| -rw-r--r-- | content/categories/css/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/javascript/_index.md | 6 | ||||
| -rw-r--r-- | content/categories/uncategories/_index.md | 5 | ||||
| -rw-r--r-- | content/tags/_index.md | 8 | ||||
| -rw-r--r-- | layouts/_default/list.html | 13 |
6 files changed, 13 insertions, 31 deletions
diff --git a/content/categories/_index.md b/content/categories/_index.md deleted file mode 100644 index 2a3b1b8..0000000 --- a/content/categories/_index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "Categories" -draft: false -type: taxonomies -layout: "home" ---- - -Our Categories Collection
\ No newline at end of file diff --git a/content/categories/css/_index.md b/content/categories/css/_index.md deleted file mode 100644 index b5be71c..0000000 --- a/content/categories/css/_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "CSS" -draft: false ---- diff --git a/content/categories/javascript/_index.md b/content/categories/javascript/_index.md deleted file mode 100644 index 93ca412..0000000 --- a/content/categories/javascript/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "JavaScript" -draft: false ---- - -Description
\ No newline at end of file diff --git a/content/categories/uncategories/_index.md b/content/categories/uncategories/_index.md deleted file mode 100644 index 6714638..0000000 --- a/content/categories/uncategories/_index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: "Uncategories" -draft: false ---- -Description
\ No newline at end of file diff --git a/content/tags/_index.md b/content/tags/_index.md deleted file mode 100644 index 86f3bdb..0000000 --- a/content/tags/_index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "Tags" -draft: false -type: taxonomies -layout: "home" ---- - -Our Tags Collection
\ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 30435fe..96c9029 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,8 @@ {{ define "main" }} +{{ $pages := .Pages }} +{{ $paginator := .Paginate $pages }} + <div class="flex flex-col gap-1"> <h1 class="text-2xl font-extrabold"> {{ if .Params.header }} @@ -14,4 +17,14 @@ {{ end }} </div> +<section class="flex flex-col gap-10"> + {{ range $paginator.Pages }} + {{ partial "list/default" . }} + {{ end }} +</section> + +{{ if gt $paginator.TotalPages 1 }} + {{ partial "list/pagination" . }} +{{ end }} + {{ end }} |
