From b614ea1b72d7230b6009dbe83d96e1dafd5de527 Mon Sep 17 00:00:00 2001
From: alifeee
Date: Sat, 30 Dec 2023 16:11:48 +0000
Subject: [PATCH] add toki section to each article
---
.eleventy.js | 2 ++
lipu.hbs | 14 ++++++++++++++
2 files changed, 16 insertions(+)
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}}
+
+{{/if}}
+{{/with}}