Merge pull request #50 from Hanse00/main

Corrects readNextPosts logic
This commit is contained in:
Junyi 2024-05-07 01:36:00 +08:00 committed by GitHub
commit 80a6c24950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,8 +23,8 @@
</article> </article>
{{ $readNextPosts := 3}} {{ $readNextPosts := 3}}
{{ if isset .Site.Params "readNextPosts" }} {{ if isset .Site.Params "readnextposts" }}
{{ $readNextPosts := .Site.Params.readNextPosts }} {{ $readNextPosts = .Site.Params.readNextPosts }}
{{ end }} {{ end }}
{{ if gt $readNextPosts 0 }} {{ if gt $readNextPosts 0 }}