add nerd101
This commit is contained in:
parent
9ff8a13190
commit
1340f4a772
9 changed files with 247 additions and 8 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue