From d2086015b106eff6aee1dc1c3adfdbc7eb31e2c7 Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Mon, 21 Aug 2023 08:44:17 +0900 Subject: [PATCH 01/10] =?UTF-8?q?update:=20`.eleventy.js`=20=E2=80=94=20ad?= =?UTF-8?q?d=20`renderMarkdownInline`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eleventy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 9b5836c..90cee04 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -12,7 +12,7 @@ module.exports = function (eleventyConfig) { if (lang && hljs.getLanguage(lang)) try { return hljs.highlight(str, { language: lang }).value - } catch (__) {} + } catch (__) { } return '' }, @@ -79,6 +79,10 @@ module.exports = function (eleventyConfig) { return markdownIt.render(text) }) + eleventyConfig.addFilter('renderMarkdownInline', (text) => { + return markdownIt.renderInline(text) + }) + eleventyConfig.addFilter('featuredDate', (string) => { let date = new Date(string) return date.toLocaleDateString('en-us', { From de46e32d9b7599ce2f2b238c2f3c9c99781f18ac Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Mon, 21 Aug 2023 08:45:58 +0900 Subject: [PATCH 02/10] =?UTF-8?q?update:=20`footer.njk`=20=E2=80=94=20rend?= =?UTF-8?q?erMarkdown=20to=20renderMarkdownInline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_includes/sections/footer.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_includes/sections/footer.njk b/src/_includes/sections/footer.njk index f59a8ba..acf2642 100644 --- a/src/_includes/sections/footer.njk +++ b/src/_includes/sections/footer.njk @@ -1,7 +1,7 @@