Skip to content

Fix deploy failure on Hugo latest by overriding incompatible RSS template#121

Merged
itsme-zeix merged 2 commits into
masterfrom
copilot/fix-deploy-job-failure
Jun 6, 2026
Merged

Fix deploy failure on Hugo latest by overriding incompatible RSS template#121
itsme-zeix merged 2 commits into
masterfrom
copilot/fix-deploy-job-failure

Conversation

Copilot AI commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

The deploy GitHub Actions job failed during hugo --minify after the workflow picked up Hugo latest (v0.162.1). The failure came from PaperMod’s RSS template referencing site.Author, which is no longer valid in this Hugo version.

  • Root cause

    • PaperMod’s themes/PaperMod/layouts/_default/rss.xml accesses site.Author.*, causing:
      • can't evaluate field Author in type interface {}
    • This stops site rendering before deploy.
  • Change implemented

    • Added a local template override at layouts/_default/rss.xml (Hugo precedence over theme templates).
    • Kept the upstream RSS structure intact but removed site.Author-dependent tags:
      • <managingEditor>
      • <webMaster>
      • item-level <author>
  • Why this shape

    • Avoids modifying vendored theme code/submodule.
    • Keeps workflow configuration unchanged while restoring compatibility with Hugo latest.
<!-- removed Hugo-incompatible author access -->
{{ with site.Author.email }}<author>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</author>{{end}}

@netlify

netlify Bot commented Jun 6, 2026

Copy link
Copy Markdown

Deploy Preview for lucid-kepler-3ccdfc ready!

Name Link
🔨 Latest commit 21a607a
🔍 Latest deploy log https://app.netlify.com/projects/lucid-kepler-3ccdfc/deploys/6a244afb7ff2140008fd2f5e
😎 Deploy Preview https://deploy-preview-121--lucid-kepler-3ccdfc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job "deploy" Fix deploy failure on Hugo latest by overriding incompatible RSS template Jun 6, 2026
Copilot AI requested a review from itsme-zeix June 6, 2026 16:30
@itsme-zeix
itsme-zeix requested review from Copilot and removed request for itsme-zeix June 6, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a GitHub Actions deploy failure caused by Hugo latest (v0.162.1) no longer supporting site.Author lookups used in PaperMod’s RSS template, by adding a local RSS template override that avoids the incompatible fields while keeping the rest of the theme’s RSS structure.

Changes:

  • Added a local layouts/_default/rss.xml template to take precedence over the theme’s RSS template.
  • Removed RSS tags that depended on site.Author (channel-level editor/webmaster and item-level author), preventing the Hugo render error.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@itsme-zeix
itsme-zeix marked this pull request as ready for review June 6, 2026 16:33
@itsme-zeix
itsme-zeix merged commit 7c7a325 into master Jun 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants