add nerd101

This commit is contained in:
Lyn Fugmann 2024-10-04 13:54:40 +02:00
parent 9ff8a13190
commit 1340f4a772
9 changed files with 247 additions and 8 deletions

View file

@ -100,6 +100,12 @@ module.exports = function(eleventyConfig) {
return value.filter(item => item.page.lang === this.page.lang)
});
// translations
eleventyConfig.addFilter("localized", function(item) {
if (typeof item === "string") return item;
return item[this.ctx.lang];
});
const md_link_open = function (tokens, idx, options, env, self) {
const href = tokens[idx].attrGet('href');