Skip to content

Commit

Permalink
Fixed news script for zola 0.19
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Borsuk <[email protected]>
  • Loading branch information
biodranik committed Jun 22, 2024
1 parent de09b98 commit 2eb2b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_news.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2eb2b68

Please sign in to comment.