File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# import " /templates/tola.typ" : wrap-page
22# import " /templates/base.typ" : base , colors
3- # import " /utils/tola.typ" : cls
3+ # import " /utils/tola.typ" : cls , og-tags
44# import " @tola/site:0.0.0" : info
55
66# let page = wrap-page (
7- base : base ,
8- head : m => [
9- # if m . title != none {
10- html . title (m . title + " | " + info . title )
11- } else {
12- html . title (info . title )
13- }
14- ],
15- view : (body , m ) => {
16- show heading . where (level : 1 ): it => html . h2 (class : cls (" text-2xl font-bold mt-8 mb-4" , colors . accent ))[# it . body ]
17- show heading . where (level : 2 ): it => html . h3 (class : " text-xl font-semibold mt-6 mb-3" )[# it . body ]
18- body
19- },
7+ base : base ,
8+ head : m => [
9+ # og-tags (
10+ title : m . title ,
11+ description : info . description ,
12+ type : " article" ,
13+ site-name : info . title ,
14+ author : info . author ,
15+ tags : (),
16+ image : " /images/avatar.png"
17+ )
18+ # if m . title != none {
19+ html . title (m . title + " | " + info . title )
20+ }
21+ ],
22+ view : (body , m ) => {
23+ show heading . where (level : 1 ): it => html . h2 (class : cls (" text-2xl font-bold mt-8 mb-4" , colors . accent ))[# it . body ]
24+ show heading . where (level : 2 ): it => html . h3 (class : " text-xl font-semibold mt-6 mb-3" )[# it . body ]
25+ body
26+ },
2027)
You can’t perform that action at this time.
0 commit comments