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
|
|
@ -1,26 +1,8 @@
|
|||
#import "@local/template-web:0.0.1": rss
|
||||
|
||||
#import "pages/index.typ": summ as summ-index
|
||||
#document(
|
||||
"index.html",
|
||||
..summ-index.document-args,
|
||||
include "/pages/index.typ"
|
||||
) <index-page>
|
||||
|
||||
#import "pages/pyscript.typ": summ as summ-pyscript
|
||||
#document(
|
||||
"pycript.html",
|
||||
..summ-pyscript.document-args,
|
||||
include "/pages/pyscript.typ"
|
||||
) <pyscript-page>
|
||||
|
||||
#import "pages/cards.typ": summ as summ-cards, summaries
|
||||
#document(
|
||||
"cards.html",
|
||||
..summ-cards.document-args,
|
||||
include "/pages/cards.typ"
|
||||
) <cards-page>
|
||||
#import "@local/template-web:0.0.1": rss, state-page-summaries
|
||||
|
||||
#include "/pages/index.typ"
|
||||
#include "/pages/pyscript.typ"
|
||||
#include "/pages/cards.typ"
|
||||
|
||||
#asset(
|
||||
"/img/platypus.png",
|
||||
|
|
@ -35,14 +17,14 @@
|
|||
read("assets/isn_s_cube-0.1.0-py3-none-any.whl", encoding: none),
|
||||
)
|
||||
|
||||
#asset(
|
||||
#context asset(
|
||||
"feed.rss",
|
||||
rss(
|
||||
"TeTyTe test typst template",
|
||||
"https://test.example.com",
|
||||
"Test of the TTT template",
|
||||
"https://test.example.com/rss.rss",
|
||||
summaries,
|
||||
state-page-summaries.final(),
|
||||
webmaster: "me@example.com (Me)",
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue