diff --git a/views/pages/page.js b/views/pages/page.js index d1c9adf..6d567f0 100644 --- a/views/pages/page.js +++ b/views/pages/page.js @@ -115,7 +115,7 @@ function createMetaTags(metaObject) { For Markdown files, the custom yaml should look like this: meta: - - description: Description goes here + - description: Description goes here This does not currently work with parameters like "og:image" // https://github.com/lbryio/lbry.tech/issues/30 @@ -143,9 +143,9 @@ function partialFinder(markdownBody) { if (fileExistsTest) { const partialFunction = local(`/views/partials/${filename}.js`); - if (filename === "ecosystem") { - const Ecosystem = new partialFunction; - markdownBody = markdownBody.replace(partial, Ecosystem.render()); + if (filename === "ecosystem" || filename === "feature-links") { + const neatPartial = new partialFunction; + markdownBody = markdownBody.replace(partial, neatPartial.render()); } else markdownBody = markdownBody.replace(partial, partialFunction); diff --git a/views/partials/ecosystem.js b/views/partials/ecosystem.js index a88a5a8..1acec29 100644 --- a/views/partials/ecosystem.js +++ b/views/partials/ecosystem.js @@ -2,10 +2,9 @@ -// P A C K A G E S +// P A C K A G E const Component = require("choo/component"); -const html = require("choo/html"); // V A R I A B L E S @@ -19,12 +18,12 @@ const WALLET = require("./ecosystem/submodule-wallet"); -// E X P O R T +// P R O G R A M Ecosystem.prototype = Object.create(Component.prototype); Ecosystem.prototype.createElement = () => { - return html` + return `