W5.1 hotfix: page PNGs are named p-NNN.png not pNNN.png
This commit is contained in:
parent
c40d1b58a0
commit
b6fc9dc84e
2 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ export async function FeaturedCase({ locale }: { locale: "pt-br" | "en" }) {
|
|||
if (!c) return null;
|
||||
const title = locale === "pt-br" ? (c.topic_pt_br ?? c.topic) : c.topic;
|
||||
const heroImg = c.hero_doc_id && c.hero_page
|
||||
? `/api/static/processing/png/${c.hero_doc_id}/p${String(c.hero_page).padStart(3, "0")}.png`
|
||||
? `/api/static/processing/png/${c.hero_doc_id}/p-${String(c.hero_page).padStart(3, "0")}.png`
|
||||
: null;
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export function HeroBanner({ locale, stats, heroDocId, heroPage }: {
|
|||
heroPage?: number;
|
||||
}) {
|
||||
const heroImg = heroDocId && heroPage
|
||||
? `/api/static/processing/png/${heroDocId}/p${String(heroPage).padStart(3, "0")}.png`
|
||||
? `/api/static/processing/png/${heroDocId}/p-${String(heroPage).padStart(3, "0")}.png`
|
||||
: null;
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue