Compare commits

..

No commits in common. "2fbd7a578aacf689550f3424a75d258e6f5750bb" and "92809cef3fae014a36d8839b7c97435f63bfe884" have entirely different histories.

4 changed files with 8 additions and 22 deletions

View file

@ -37,8 +37,7 @@
font-size: 26px;
}
.timeslot .icon,
p .icon {
.timeslot .icon {
height: 1.1em;
vertical-align: text-bottom;
fill: currentColor;

View file

@ -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" %}

View file

@ -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" %}

View file

@ -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(/(<svg.*?>)(.*$)/s);
out = match[1] + "<title>" + title + "</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(/(<svg.*?>)(.*$)/s);
return match[1] + "<title>" + title + "</title>" + match[2];
});
// process the logo files