Skip to content

Commit ed4ce0e

Browse files
committed
add math blog
1 parent 39e8d30 commit ed4ce0e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/blog/render.gleam

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@ import blog/posts
22
import gleam/dict
33
import gleam/list
44
import gleam/result
5-
import lustre/attribute.{attribute}
5+
import lustre/attribute
66
import lustre/element/html.{a, body, div, head, html, link, p, script, text}
77
import lustre/ssg/djot
88
import lustre/vdom/vnode
99
import tom
1010

11+
const catppuccin_styles_url = "https://cdn.jsdelivr.net/npm/@catppuccin/palette/css/catppuccin.css"
12+
1113
fn include_styles_and_scripts(
1214
page: List(vnode.Element(a)),
1315
asset_path: String,
1416
) -> vnode.Element(_) {
1517
html([], [
1618
head([], [
17-
link([
18-
attribute.rel("stylesheet"),
19-
attribute.href(
20-
"https://cdn.jsdelivr.net/npm/@catppuccin/palette/css/catppuccin.css",
21-
),
22-
]),
19+
link([attribute.rel("stylesheet"), attribute.href(catppuccin_styles_url)]),
2320
link([
2421
attribute.rel("stylesheet"),
2522
attribute.href(asset_path <> "styles.css"),

0 commit comments

Comments
 (0)