generate the summary and the document objects from inside the webpage() function
This commit is contained in:
parent
500a6ad181
commit
f7db139b0d
10 changed files with 234 additions and 144 deletions
12
lib/rss.typ
12
lib/rss.typ
|
|
@ -63,12 +63,12 @@
|
|||
).map(it => xml-tag(
|
||||
"item",
|
||||
children: (
|
||||
xml-tag("title", body: it.document-args.title),
|
||||
xml-tag("link", body: it.template-args.base-url + it.template-args.path),
|
||||
xml-tag("guid", body: it.template-args.base-url + it.template-args.path),
|
||||
xml-tag("description", body: it.document-args.description),
|
||||
xml-tag("pubDate", body: it.document-args.date.display(date-format-rfc822)),
|
||||
) + it.template-args.tags.map(tag => xml-tag("category", body: tag))
|
||||
xml-tag("title", body: it.title),
|
||||
xml-tag("link", body: it.url),
|
||||
xml-tag("guid", body: it.url),
|
||||
xml-tag("description", body: it.description),
|
||||
xml-tag("pubDate", body: it.date.display(date-format-rfc822)),
|
||||
) + it.tags.map(tag => xml-tag("category", body: tag))
|
||||
))
|
||||
xml-tag(
|
||||
"rss",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue