From 8d93f5ab2a04a9f2f8eb23b11617d83fad1c5316 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 18 Jan 2024 20:22:48 +0000 Subject: Links --- src/tour.gleam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tour.gleam b/src/tour.gleam index ecf11cf..1bc68e4 100644 --- a/src/tour.gleam +++ b/src/tour.gleam @@ -510,6 +510,7 @@ fn lesson_html(page: Lesson) -> String { let metaprop = fn(property, content) { h("meta", [#("property", property), #("content", content)], []) } + let link = fn(rel, href) { h("link", [#("rel", rel), #("href", href)], []) } let title = page.name <> " - The Gleam Language Tour" let description = @@ -538,7 +539,8 @@ fn lesson_html(page: Lesson) -> String { metaprop("twitter:title", title), metaprop("twitter:description", description), metaprop("twitter:image", "https://gleam.run/images/og-image.png"), - h("link", [#("rel", "stylesheet"), #("href", "/style.css")], []), + link("shortcut icon", "https://gleam.run/images/lucy-circle.svg"), + link("stylesheet", "/style.css"), ]), h("body", [], [ h("nav", [#("class", "navbar")], [ -- cgit v1.2.3