From c0e26d00a20f749a51b415f2bfe3736fda7f079c Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 9 May 2024 22:56:31 +0800 Subject: [PATCH] Rename paired shortcode for image figure elment --- _site/feed.xml | 2 +- eleventy.config.md.js | 4 ++-- src/_includes/asummersend/myplaylist.njk | 4 ++-- .../myarticles/anti-harry-potter-jk-rowling-masterlist.md | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_site/feed.xml b/_site/feed.xml index 528e9ad8..56899cf1 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -4,7 +4,7 @@ Leilukin's personal website. - 2024-05-09T13:40:56Z + 2024-05-09T14:54:24Z https://leilukin.neocities.org Leilukin diff --git a/eleventy.config.md.js b/eleventy.config.md.js index 264386f9..10482897 100644 --- a/eleventy.config.md.js +++ b/eleventy.config.md.js @@ -80,8 +80,8 @@ module.exports = function (eleventyConfig) { return `<${el}${classMarkup}>${content}`; }); - // Paired shortcode: figure element with figcaption - eleventyConfig.addPairedShortcode('figure', (caption, img, alt=caption) => { + // Paired shortcode: image figure and figcaption + eleventyConfig.addPairedShortcode('imgFigure', (caption, img, alt=caption) => { const figcaption = markdownLibrary.renderInline(caption); return `
${alt} diff --git a/src/_includes/asummersend/myplaylist.njk b/src/_includes/asummersend/myplaylist.njk index fad0edc1..f3810e37 100644 --- a/src/_includes/asummersend/myplaylist.njk +++ b/src/_includes/asummersend/myplaylist.njk @@ -1,7 +1,7 @@ {% macro myASEPlaylist(intro) %} -{% figure "/assets/projects/playlists/My-Dear-Summer-Lover-cover.png", "Cover image of A Summer’s End fanmix 'My Dear Summer Lover: A Sam x Michelle Fanmix'" %} +{% imgFigure "/assets/projects/playlists/My-Dear-Summer-Lover-cover.png", "Cover image of A Summer’s End fanmix 'My Dear Summer Lover: A Sam x Michelle Fanmix'" %} [Image description: Sam and Michelle from A Summer’s End almost kisses, with a play symbol and text on the top left corner, and the text "My Dear Summer Lover: A Sam x Michelle Fanmix" in a digital style font in front.] -{% endfigure %} +{% endimgFigure %} {{ intro }} [{% cite "A Summer’s End — Hong Kong 1986" %}](https://www.asummersend.com/home){target="_blank"}, dedicated to Sam and Michelle’s love story. diff --git a/src/articles/myarticles/anti-harry-potter-jk-rowling-masterlist.md b/src/articles/myarticles/anti-harry-potter-jk-rowling-masterlist.md index 2e50f271..1278ca5c 100644 --- a/src/articles/myarticles/anti-harry-potter-jk-rowling-masterlist.md +++ b/src/articles/myarticles/anti-harry-potter-jk-rowling-masterlist.md @@ -7,9 +7,9 @@ categories: ["anti harry potter", "anti jk rowling"] toc: true --- -{% figure "/assets/banners/harry-potter-free-site.png", "An anime girl crossing arms with a sidelong look and a Harry Potter-free message" %} +{% imgFigure "/assets/banners/harry-potter-free-site.png", "An anime girl crossing arms with a sidelong look and a Harry Potter-free message" %} This site is Harry Potter free. Lookin [sic] for it? Leave. -{% endfigure %} +{% endimgFigure %} (Credit to Tumblr user [comradesaucegay](https://comradesaucegay.tumblr.com/post/621403039459426304){target="_blank"} for this Harry Potter-free website banner){.center-text}