You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep the Theme README's Swap Prose in Step When the Last Swap Goes #374
themes/README.md describes the root override table's deprecated-call swaps in prose outside the table. The paragraph after the table says each swapped call is one Hugo deprecated in 0.158, and that a swap is a workaround for upstream lag. The next one says whether each swap is still needed is answerable by diffing against the recorded commit.
All the swaps are the same Hugo 0.158 deprecation, so upstream is likely to fix them together. Then the swap-only rows retire and every kept row drops its swap clause, per the update procedure. Nothing in that procedure revisits the prose, so it goes on describing swaps that no row records. This is the same row-to-prose staleness #362 settled for rows, here for swap clauses.
Done looks like the update procedure covering that prose when the last swap goes, or the prose stating no swap that only the table can confirm.
A second gap in the same procedure, found by the same review: the update procedure says a row whose only change is a deprecated call "becomes removable" once upstream makes the same swap, but never says what happens to that row's root file. The same paragraph says to keep a retired row's root file while it still renders anything, and a root override always renders, since it shadows the theme's template. So a reader retiring a swap-only row like baseof.html removes its table row, diff path, and grep entry but keeps the file. That leaves an untracked whole-template override hiding every later upstream change. The fix here should say that removing a swap-only row deletes its root file, and scope the keep rule to a template upstream renamed or deleted.
Activity
ptr727 commentedon Oct 1, 2026
A second gap in the same procedure, found by the same review: the update procedure says a row whose only change is a deprecated call "becomes removable" once upstream makes the same swap, but never says what happens to that row's root file. The same paragraph says to keep a retired row's root file while it still renders anything, and a root override always renders, since it shadows the theme's template. So a reader retiring a swap-only row like
baseof.htmlremoves its table row,diffpath, andgrepentry but keeps the file. That leaves an untracked whole-template override hiding every later upstream change. The fix here should say that removing a swap-only row deletes its root file, and scope the keep rule to a template upstream renamed or deleted.