From dcaebd03f574ad662adc461363e4fa4377a028df Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sat, 18 May 2024 19:00:45 +0200 Subject: [PATCH] ee --- layouts/blog/list.html | 2 +- layouts/partials/articles.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 00450b5..ead1989 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -64,7 +64,7 @@
- {{partial "articles.html" (dict "Paging" true "context" . "ammount" 9)}} + {{partial "articles.html" (dict "Paging" true "context" . "ammount" 9) 5}}
diff --git a/layouts/partials/articles.html b/layouts/partials/articles.html index 08be721..5ba499a 100644 --- a/layouts/partials/articles.html +++ b/layouts/partials/articles.html @@ -9,6 +9,9 @@ {{ if .ammount }} {{ $ammount = (cast.ToInt .ammount) }} {{ end }} + {{ if (.Get 2) }} + {{ $ammount = (cast.ToInt (.Get 2) }} + {{ end }} {{ if (eq (len $allposts) 0) }}