From aa20de14f2d9767188f3fc91bbc19fc7fbc27fcb Mon Sep 17 00:00:00 2001 From: "Nico S." <38787491+zeus-web@users.noreply.github.com> Date: Thu, 17 Apr 2025 21:55:09 +0200 Subject: [PATCH] Added paragraphs to tag-page (#1341) --- Library/Std/Tag.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Std/Tag.md b/Library/Std/Tag.md index c777afc3..859ab12b 100644 --- a/Library/Std/Tag.md +++ b/Library/Std/Tag.md @@ -36,6 +36,15 @@ event.listen { text = text .. "## Items\n" .. template.each(taggedItems, templates.itemItem) end + local taggedParagraphs = query[[ + from index.tag "paragraph" + order by ref + where table.includes(_.tags, tagName) + ]] + if #taggedParagraphs > 0 then + text = text .. "## Paragraphs\n" + .. template.each(taggedParagraphs, templates.itemItem) + end return { text = text, -- Read only page