Skip to content

Commit a8f8c3a

Browse files
committed
fix: Also replace {year} in footer on thoughts articles
1 parent c06f81d commit a8f8c3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/generateThoughts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ articles.forEach((article) => {
6666
.replace(/<(.*?)>/g, '')
6767
.replace('\n', '')
6868
)
69+
.replace(/{year}/g, new Date().getFullYear().toString())
6970
.replace(
7071
/{noindex}/g,
7172
process.env.NODE_ENV === 'development'

0 commit comments

Comments
 (0)