fix: remove duplicate page last updated from upgrade hero (fixes #19025) - #19046
fix: remove duplicate page last updated from upgrade hero (fixes #19025)#19046byt61 wants to merge 1 commit into
Conversation
…reum#19025) Co-authored-by: byt61 <271805600+byt61@users.noreply.github.com>
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
🔎 First-pass review — 🗑️ Likely close (duplicate)Thanks The verdict is about duplication, not code: this is the same three-file fix as the older #19026 ("remove duplicate 'page last updated' line", opened Aug 10 and already first-pass-reviewed as mergeable) — identical field removal, identical consumer removal, identical hero-branch deletion and AnalysisLane: code ( Checked: removal leaves no references to No
|
|
Re: first-pass duplicate flag — this is not a duplicate. No other open PR removes |
|
Closing as duplicate — superseded by #19026 which has now merged. This PR is identical (same 3-file removal: |

Closes #19025
Description
Removes the duplicate "page last updated" line that appeared twice on every
template: upgradepage (6 pages ×25 locales).Root cause:
Topic.tsxappended<p class="border-t pt-4 italic">page-last-updated: timestamp</p>to the hero whenconfig.showLastUpdatedInHero(onlyupgrade.tsset it), whileContentLayout.tsxnow unconditionally renders<FileContributors variant="compact">at the top of the article (since 49d6425). PreviouslyFileContributorswas gated onasidePosition === "right-top"(defaultleft-bottom), so upgrade pages got contributors at the bottom and the hero timestamp was the only date in header.This PR deletes the hero-side rendering entirely so the date appears once, in the standard
FileContributorsline — same as every other content page. Also removes the now-unusedshowLastUpdatedInHeroflag fromsrc/data/topics/upgrade.tsandTopicConfigtype.Changes
src/layouts/Topic.tsx: removetCommon/showLastUpdatedInHerologic, keepheroDescription = baseDescriptiondirectly (wasbaseDescription+ italic line)src/data/topics/upgrade.ts: removeshowLastUpdatedInHero: truesrc/data/topics/index.ts: removeshowLastUpdatedInHero?: booleanfromTopicConfigHow to test
pnpm lintandpnpm type-checkpass (verified, noshowLastUpdatedInHeroreferences remain)./roadmap/glamsterdam,/roadmap/fusaka,/roadmap/pectraat 1440px — hero now ends at description, no partial-width rule + italic date; singlePage last update: July 20, 2026remains next to avatars viaFileContributors.grep -R showLastUpdatedInHeroreturns 0;grep -R page-last-updatedonly inFileContributorspath.Screenshots
N/A - bug is duplicate text + stray rule, verified via code diff and local build before/after (hero no longer emits
border-t pt-4 italicparagraph).