diff options
| author | Nicholas Johnson <> | 2026-09-18 00:00:00 +0000 |
|---|---|---|
| committer | Nicholas Johnson <> | 2026-09-18 00:00:00 +0000 |
| commit | f7010449afad2fea6da148330d201529ccc2d65ce50e31083d605c5733c4afa2 (patch) | |
| tree | 2f4f379e5354ceb09b52d9ff75c29bce0a6c7f949d2f8266b850fd4557a0c9f2 /layouts/term.html | |
| parent | 4261deef2716d60664fb17829f786f50dbddcf0649aa96a7ba65fe30d04e9c36 (diff) | |
| download | hugo-theme-journal-f7010449afad2fea6da148330d201529ccc2d65ce50e31083d605c5733c4afa2.tar.gz hugo-theme-journal-f7010449afad2fea6da148330d201529ccc2d65ce50e31083d605c5733c4afa2.zip | |
Fix build failure when RSS limit is unset
Hugo's default for services.rss.limit is -1 (unlimited), and passing a
negative length to "first" aborts the build with "sequence length must
be non-negative". Every feed template did this unconditionally, so any
site that did not explicitly set services.rss.limit failed to build at
all, rather than degrading to an unlimited feed.
Only apply "first" when a positive limit is configured, which is the
same guard Hugo's own internal RSS template uses.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'layouts/term.html')
0 files changed, 0 insertions, 0 deletions
