Added paragraphs to tag-page (#1341)

This commit is contained in:
Nico S.
2025-04-17 21:55:09 +02:00
committed by GitHub
parent 1c1a84c63e
commit aa20de14f2
+9
View File
@@ -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