mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
Fixed "error calling after: no items left"
This commit is contained in:
parent
56791780ac
commit
9144ca72aa
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@
|
|||
{{ $.Scratch.Set "first" $index }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "first" (index $value 0).Page }}
|
||||
{{ $.Scratch.Set "_value" (after 1 $value) }}
|
||||
{{ if gt $value.Len 1 }}
|
||||
{{ $.Scratch.Set "_value" (after 1 $value) }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "_value" nil }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $first := $.Scratch.Get "first" }}
|
||||
|
|
Loading…
Add table
Reference in a new issue