From 2eb2b684596ab7914efbbc6ef776a70d04c97a4c Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sat, 22 Jun 2024 23:57:56 +0200 Subject: [PATCH] Fixed news script for zola 0.19 Signed-off-by: Alexander Borsuk --- update_news.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_news.js b/update_news.js index 24944f34..9979ab78 100644 --- a/update_news.js +++ b/update_news.js @@ -129,7 +129,7 @@ function parseHtml(html) { if (!fs.existsSync(dir)) { console.log('Creating ' + dir); fs.mkdirSync(dir, { recursive: true }); - fs.writeFileSync(dir + '/../_index.md', `---\ndate: ${yyyyMMdd}\nsort_by: date\ntemplate: news/date_section.html\n---`); + fs.writeFileSync(dir + '/../_index.md', `---\nsort_by: date\ntemplate: news/date_section.html\n---`); } // Each message may have 0 or more photos.