Skip to content

Commit 379bcc0

Browse files
committed
docs: slightly update templates
1 parent c8c01f0 commit 379bcc0

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.wb/templates/note.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<meta name="viewport" content="width=device-width">
6+
<meta name="fediverse:creator" content="@hanwen@types.pl">
67
<link rel="stylesheet" href="{{ site.root_dir }}css/weibian.css">
78
<link rel="preconnect" href="https://fonts.googleapis.com">
89
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous">

typ/_template/template.typ

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
let parsed-names = attrs.at("parsed-names")
5757
_guard-and-render-metadata("author", (it) => {
5858
_meta-item(html.address(class: "author", {
59-
it.map((a) => {
59+
it.map((a) => {
6060
let main-name-part = a.given + " " + a.family
6161
if a.at("prefix", default: "") != "" {
6262
main-name-part = a.prefix + " " + main-name-part
@@ -201,7 +201,7 @@
201201
identifier: identifier,
202202
title: title,
203203
..attrs
204-
)
204+
)
205205
body
206206
})
207207
}
@@ -241,7 +241,7 @@
241241

242242
#let template-html(
243243
identifier: "",
244-
title: "",
244+
title: "",
245245
..attrs,
246246
) = (doc) => {
247247
show math.equation: set text(font: site.config.math-fonts)
@@ -271,11 +271,11 @@
271271
show raw.where(block: true): it => {
272272
{
273273
set raw(theme: "/_template/modus_operandi.tmTheme")
274-
html.div(class: "color-light", it)
274+
html.div(class: "color-light codeblock", it)
275275
}
276276
{
277277
set raw(theme: "/_template/modus_vivendi.tmTheme")
278-
html.div(class: "color-dark", it)
278+
html.div(class: "color-dark codeblock", it)
279279
}
280280
}
281281

@@ -291,7 +291,7 @@
291291
)
292292

293293
show footnote: it => html.aside(it.body)
294-
294+
295295
html.html({
296296
_head(
297297
identifier: identifier,
@@ -335,4 +335,4 @@
335335
inline-tree-html
336336
} else {
337337
inline-tree-paged
338-
}
338+
}

0 commit comments

Comments
 (0)