From 38f0b38f9ffd9d5986477de79aca8602cd09a741 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Thu, 5 Mar 2020 10:05:33 -0800 Subject: [PATCH] Refining new post --- build/_post-template.js | 9 +++++---- build/new-post.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build/_post-template.js b/build/_post-template.js index 68a7494..cb0c3c8 100644 --- a/build/_post-template.js +++ b/build/_post-template.js @@ -4,12 +4,13 @@ id: "${id}" date: "${date.toISOString()}" tags: - Transgender -span: 2 tweets: --- -{!{ {{import '~/tweet' ids=(array - 'TWEETGOESHERE' -) tweets=meta.tweets className="" }} }!} +{!{ + {{import '~/tweet' ids=(array + 'TWEETIDGOESHERE' + ) tweets=meta.tweets className="" }} +}!} `; diff --git a/build/new-post.js b/build/new-post.js index 7ddb891..e50dd37 100644 --- a/build/new-post.js +++ b/build/new-post.js @@ -34,5 +34,5 @@ module.exports = exports = async function newPost () { await fs.writeFile(target, contents); - log('Created new post at posts/' + fname); + log('Created new post at ' + target); };