diff --git a/app/components/markdown.js b/app/components/markdown.js index 3939fd5..6abbda0 100644 --- a/app/components/markdown.js +++ b/app/components/markdown.js @@ -56,7 +56,7 @@ export default path => { -// H E L P E R +// H E L P E R S function partialFinder(markdownBody) { const regexToFindPartials = /<\w+ ?\/>/g; diff --git a/app/views/redirect.js b/app/views/redirect.js index b71a211..03e6a90 100644 --- a/app/views/redirect.js +++ b/app/views/redirect.js @@ -4,9 +4,9 @@ // P A C K A G E S +import fm from "front-matter"; import fs from "graceful-fs"; import html from "choo/html"; -import fm from "front-matter"; import { require as local } from "app-root-path"; import raw from "choo/html/raw"; @@ -39,6 +39,7 @@ module.exports = exports = (state, emit) => { // eslint-disable-line } } + // below seems evil state.lbry = customMetadata; } @@ -48,7 +49,7 @@ module.exports = exports = (state, emit) => { // eslint-disable-line if (partialPath === "glossary") pageScript = ""; if (partialPath === "overview") pageScript = ""; if (partialPath === "playground") pageScript = ""; - // console.log(markdown(path)); + return html`