Skip to content

fix(articles): guard nil section in GetPage call#80

Merged
markdumay merged 2 commits intomainfrom
develop
Mar 22, 2026
Merged

fix(articles): guard nil section in GetPage call#80
markdumay merged 2 commits intomainfrom
develop

Conversation

@markdumay
Copy link
Copy Markdown
Contributor

Hugo 0.158.0 changed site.GetPage to error on nil input instead of returning nil. Wrap the call in a with block so it is only invoked when .section is a non-empty string.

🤖 Generated with Claude Code

markdumay and others added 2 commits March 22, 2026 09:35
Hugo 0.158.0 changed site.GetPage to error on nil input
instead of returning nil. Wrap the call in a with block
so it is only invoked when .section is a non-empty string.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@markdumay markdumay enabled auto-merge March 22, 2026 08:36
@markdumay markdumay merged commit 0c4e183 into main Mar 22, 2026
8 checks passed
@markdumay
Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 1.15.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant