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,29 +1,28 @@
|
|||
#import "@local/template-web:0.0.1": *
|
||||
#import "/lib.typ": webpage
|
||||
|
||||
#let summ = summary(
|
||||
base-url: "http://test.example.com",
|
||||
#show: webpage.with(
|
||||
path: "/index.html",
|
||||
page-label: <index-page>,
|
||||
title: "TeTyTe",
|
||||
description: "Test of the TTT template",
|
||||
date: datetime(year: 1942, month: 4, day: 1),
|
||||
tags: ("test", "html/css", "typst"),
|
||||
page-label: <index-page>,
|
||||
preview-image: image(
|
||||
"/assets/platypus.png",
|
||||
alt: "A drawing of a blue-ish round-ish platypus with big eyes, holding a laptop. This platypus is quite cute, but I might be biased.",
|
||||
),
|
||||
author: "Me!",
|
||||
tags: ("test", "html/css", "typst"),
|
||||
description: "Test of the TTT template",
|
||||
date: datetime(year: 1942, month: 4, day: 1),
|
||||
)
|
||||
|
||||
#show: webpage.with(
|
||||
..summ.template-args,
|
||||
header: [
|
||||
= Test TeTyTe
|
||||
Hello World!
|
||||
],
|
||||
)
|
||||
|
||||
#context card-list(
|
||||
min-width: 200,
|
||||
state-page-summaries.final(),
|
||||
)
|
||||
|
||||
|
||||
#lorem(400)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue