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>
<div class="mt-4"> <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>
<div class="mt-6 pt-2 blog-pagination"> <div class="mt-6 pt-2 blog-pagination">

View file

@ -9,6 +9,9 @@
{{ if .ammount }} {{ if .ammount }}
{{ $ammount = (cast.ToInt .ammount) }} {{ $ammount = (cast.ToInt .ammount) }}
{{ end }} {{ end }}
{{ if (.Get 2) }}
{{ $ammount = (cast.ToInt (.Get 2) }}
{{ end }}
{{ if (eq (len $allposts) 0) }} {{ if (eq (len $allposts) 0) }}
<div <div
class="section-error-container transition-child" class="section-error-container transition-child"