diff --git a/commands/now-template b/commands/now-template index 10c1591..bce6372 100644 --- a/commands/now-template +++ b/commands/now-template @@ -4,10 +4,12 @@ import Footer from '../../../../components/Footer.astro' const title = `__title__` const description = `__description__` -const publishedOn = `__publishedOn__` +let publishedOn = `__publishedOn__` const publishDate = `__publishDate__` const publishState = `__publishState__` const content = `__content__` + +publishedOn = publishedOn === '' ? publishDate : publishedOn --- diff --git a/src/pages/now/and-then/posts/2025-02-05.astro b/src/pages/now/and-then/posts/2025-02-05.astro index 3e12c74..3095482 100644 --- a/src/pages/now/and-then/posts/2025-02-05.astro +++ b/src/pages/now/and-then/posts/2025-02-05.astro @@ -4,7 +4,7 @@ import Footer from '../../../../components/Footer.astro' const title = `Binge-watching, playing, and recovering` const description = `` -const publishedOn = `` +let publishedOn = `` const publishDate = `2025-02-05` const publishState = `` const content = `

Binge-watched Arcane season 2

@@ -14,6 +14,8 @@ const content = `

Binge-watched ` + +publishedOn = publishedOn === '' ? publishDate : publishedOn ---