From bcd13e14bb63cd51a9ee75767e3a20e175ec46db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Mon, 18 Feb 2019 14:59:27 -0600 Subject: [PATCH] Fixes --- app/views/redirect.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/redirect.js b/app/views/redirect.js index 808bf53..42d3c77 100644 --- a/app/views/redirect.js +++ b/app/views/redirect.js @@ -30,6 +30,8 @@ export default (state, emit) => { // eslint-disable-line const markdownFile = fs.readFileSync(path, "utf-8"); const markdownFileDetails = fm(markdownFile); + const title = markdownFileDetails.attributes.title; + const description = markdownFileDetails.attributes.description || ""; if (markdownFileDetails.attributes.meta) { const customMetadata = {}; @@ -41,10 +43,16 @@ export default (state, emit) => { // eslint-disable-line } } - // below seems evil state.lbry = customMetadata; } + // below is evil, I just inherited it -- Jeremy + state.lbry = { + title: title, + description: description + }; + + // below should be refactored into components let pageScript = ""; switch(true) {