diff --git a/.eleventy.js b/.eleventy.js index 71c3103..5965a31 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -26,6 +26,8 @@ module.exports = function (eleventyConfig) { "pu", (nimi) => `(pu)` ); + // get dictionary key + eleventyConfig.addHandlebarsHelper("getkey", (dict, key) => dict[key]); return { markdownTemplateEngine: "hbs", diff --git a/lipu.hbs b/lipu.hbs index ecfd4b0..993b463 100644 --- a/lipu.hbs +++ b/lipu.hbs @@ -55,6 +55,20 @@ eleventyComputed: pages now with a stapler.

+{{#with (getkey collections lipu.title)}} +{{#if this}} +
+

toki

+ +
+{{/if}} +{{/with}}