disable localized urls in markdown

see #1
This commit is contained in:
Lyn Fugmann 2024-10-04 20:24:37 +02:00
parent 1ff4a7485e
commit 501af07c95
3 changed files with 7 additions and 5 deletions

View file

@ -8,4 +8,4 @@ eleventyNavigation:
# Erste Schritte
## Stundenpläne
Am Mittwoch findet die Einschreibung in die Seminargruppen, und damit in einen Stundenplan, statt. Alle Infos dazu gibt es hier: [Stundenpläne](/timetables/).
Am Mittwoch findet die Einschreibung in die Seminargruppen, und damit in einen Stundenplan, statt. Alle Infos dazu gibt es hier: [Stundenpläne](/de/timetables/).

View file

@ -8,4 +8,4 @@ eleventyNavigation:
# First Steps
## Timetables
On Wednesday, the enrollment in the seminar groups, and thus in a timetable, takes place. You can find all relevant information here: [timetables](/timetables/).
On Wednesday, the enrollment in the seminar groups, and thus in a timetable, takes place. You can find all relevant information here: [timetables](/en/timetables/).

View file

@ -112,10 +112,12 @@ module.exports = function(eleventyConfig) {
if (href.startsWith('http')) {
tokens[idx].attrSet('target', '_blank');
tokens[idx].attrSet('rel', 'noreferrer');
} else {
const newHref = eleventyConfig.javascriptFunctions.locale_url(href);
tokens[idx].attrSet('href', newHref);
}
// this would be useful but it's broken
// else {
// const newHref = eleventyConfig.javascriptFunctions.locale_url(href);
// tokens[idx].attrSet('href', newHref);
// }
return self.renderToken(tokens, idx, options);
};