diff --git a/_includes/program.css b/_includes/program.css index 6aa7384..6264666 100644 --- a/_includes/program.css +++ b/_includes/program.css @@ -37,8 +37,7 @@ font-size: 26px; } -.timeslot .icon, -p .icon { +.timeslot .icon { height: 1.1em; vertical-align: text-bottom; fill: currentColor; diff --git a/content/de/program.md b/content/de/program.md index d8b46ad..5290416 100644 --- a/content/de/program.md +++ b/content/de/program.md @@ -4,10 +4,5 @@ title: Programm tags: mainNav eleventyNavigation: order: 1 -templateEngineOverride: njk,md --- # Programm - -Die ESE startet dieses Jahr am Montag, den 07. Oktober 2024. Los geht es mit der Begrüßungsveranstaltung. Am Sonntag wird vorab schon eine Radtour angeboten. - -Einige Veranstaltungen übertragen wir auch Live in unserem ESE-Stream, gekennzeichnet mit diesem Symbol: {% icon "solid:video", title="Livestream" %} diff --git a/content/en/program.md b/content/en/program.md index 66a3a1a..1847849 100644 --- a/content/en/program.md +++ b/content/en/program.md @@ -4,10 +4,5 @@ title: Program tags: mainNav eleventyNavigation: order: 1 -templateEngineOverride: njk,md --- # Program - -The ESE starts this year on Monday, October 7th, 2024 with the opening event. There is also a bicycle tour planned on Sunday. - -Some events will also be broadcast live in our ESE stream, marked with this symbol: {% icon "solid:video", title="Livestream" %} diff --git a/eleventy.config.js b/eleventy.config.js index a9607dd..7ec5766 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -26,18 +26,15 @@ module.exports = function(eleventyConfig) { // override icon shortcode to make the SVGs accessible eleventyConfig.addAsyncShortcode("icon", async function(input, attrs) { - let out; if (!attrs || !("title" in attrs)) { - out = await eleventyConfig.nunjucksAsyncShortcodes.rawIcon(input, attrs); - } else { - const { title, ...newAttrs } = attrs; - newAttrs.role = "img"; - const svgStr = await eleventyConfig.nunjucksAsyncShortcodes.rawIcon(input, newAttrs); - const match = svgStr.match(/()(.*$)/s); - out = match[1] + "" + title + "" + match[2]; + return eleventyConfig.nunjucksAsyncShortcodes.rawIcon(input, attrs); } - // line breaks cause some issues - return out.replaceAll("\n", ""); + + const { title, ...newAttrs } = attrs; + newAttrs.role = "img"; + const svgStr = await eleventyConfig.nunjucksAsyncShortcodes.rawIcon(input, newAttrs); + const match = svgStr.match(/()(.*$)/s); + return match[1] + "" + title + "" + match[2]; }); // process the logo files