Fixed news script for zola 0.19

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2024-06-22 23:57:56 +02:00
parent de09b98b28
commit 2eb2b68459

View file

@ -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.