This commit is contained in:
GZod01 2024-05-18 19:00:45 +02:00
parent d95893188a
commit dcaebd03f5
2 changed files with 4 additions and 1 deletions

View file

@ -64,7 +64,7 @@
</div>
<div class="mt-4">
{{partial "articles.html" (dict "Paging" true "context" . "ammount" 9)}}
{{partial "articles.html" (dict "Paging" true "context" . "ammount" 9) 5}}
</div>
<div class="mt-6 pt-2 blog-pagination">

View file

@ -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) }}
<div
class="section-error-container transition-child"