Compare commits

..

No commits in common. "bc4efca4196c066e78ed4492b7054dbd8185de37" and "d3f9750ab7d0b6c857b18e808733e89068352275" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View File

@ -21,12 +21,9 @@ export default function(eleventyConfig) {
});
// Image figure and figcaption
eleventyConfig.addPairedShortcode('imgFigure', (
caption, img, alt=caption, className, enableLazyLoading=true
) => {
const classMarkup = className ? ` class="${className}"` : "";
eleventyConfig.addPairedShortcode('imgFigure', (caption, img, alt=caption, enableLazyLoading=true) => {
const figcaption = markdownLibrary.renderInline(caption);
return `<figure${classMarkup}>
return `<figure>
<img src="${img}" alt="${alt}"${enableLazyLoading ? ' loading="lazy"' : ''}>
<figcaption>${figcaption}</figcaption>
</figure>`;

View File

@ -34,17 +34,7 @@ More information about this site can be found on the following pages:
{% container "article", "content__section" %}
## The Webmaster
{% imgFigure "/assets/leilukin/leilukin-bee.avif", "Leilukin bee avatar", "avatar" %}
[Image description: Digital illustration of a bee wearing red glasses with oval-shaped body and wings on a light green background. Leilukin's signature is at the bottom right of the bee. Description ends]
{% endimgFigure %}
{%- css %}
.avatar img {
border-radius: 50%;
width: 15rem;
margin: 0.5em auto;
}
{% endcss %}
![Avatar of a drawing of Leilukin bee](/assets/leilukin/leilukin-bee.avif){loading="lazy"}{style="border-radius: 50%; width: 15rem; margin: 0.5em auto;"}
You can call me {{ sitemeta.siteAuthor.name }}. I am a Malaysian Chinese, queer, non-binary lesbian born in the early 90s. My pronouns are they/them and she/her in English, [他]{lang="zh"} and [她]{lang="zh"} in Chinese.