From 6fceadab3f6901f1400f13a4ccdd86b2c36107ff Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sun, 13 Feb 2022 00:32:53 +0100 Subject: [PATCH] Fixed missing newlines in news generation script 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 ec4ee06c..0367ca4b 100644 --- a/update_news.js +++ b/update_news.js @@ -66,7 +66,7 @@ function toMarkdown(node, date) { let slug = slugify(title); if (!slug) slug = time.replace(':', '-'); - const frontmatter = `---\ntitle: '${title.replaceAll("'", "''")}'\ndate: ${date}\nslug: "${slug}"\n---`; + const frontmatter = `---\ntitle: '${title.replaceAll("'", "''")}'\ndate: ${date}\nslug: "${slug}"\n---\n\n`; // Photo-only posts do not have text, but should have an index.md file. if (!node) return frontmatter;