Skip to content

Commit 5f8f66b

Browse files
graphiteisaaclpil
authored andcommitted
fix other files
foolish that I did not include this in the last commit but alas
1 parent ba205fb commit 5f8f66b

File tree

4 files changed

+18
-22
lines changed

4 files changed

+18
-22
lines changed

src/website/cheatsheet.gleam

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import gleam/option
22
import lustre/attribute.{attribute as attr} as attr
33
import lustre/element/html
44
import website/fs
5-
import website/layout
65
import website/page
76
import website/site
87

98
pub fn elixir(ctx: site.Context) -> fs.File {
109
let meta =
11-
site.PageMeta(
10+
page.PageMeta(
1211
path: "cheatsheets/gleam-for-elixir-users",
1312
title: "Gleam for Elixir users",
1413
meta_title: "Gleam for Elixir users | Cheat sheet",
@@ -1298,13 +1297,13 @@ let assert #(1 as a, 2 as b) = #(1, 2)
12981297
]),
12991298
]),
13001299
]
1301-
|> layout.with_header("roadmap", meta, ctx)
1300+
|> page.layout_header("roadmap", meta, ctx)
13021301
|> page.to_html_file(meta)
13031302
}
13041303

13051304
pub fn erlang(ctx: site.Context) -> fs.File {
13061305
let meta =
1307-
site.PageMeta(
1306+
page.PageMeta(
13081307
path: "cheatsheets/gleam-for-erlang-users",
13091308
title: "Gleam for Erlang users",
13101309
meta_title: "Gleam for Erlang users | Cheat sheet",
@@ -2546,13 +2545,13 @@ pub fn get_id() {
25462545
html.h3([attr.id("nested-modules")], [html.text("Nested modules")]),
25472546
html.h3([attr.id("first-class-modules")], [html.text("First class modules")]),
25482547
]
2549-
|> layout.with_header("roadmap", meta, ctx)
2548+
|> page.layout_header("roadmap", meta, ctx)
25502549
|> page.to_html_file(meta)
25512550
}
25522551

25532552
pub fn python(ctx: site.Context) -> fs.File {
25542553
let meta =
2555-
site.PageMeta(
2554+
page.PageMeta(
25562555
path: "cheatsheets/gleam-for-python-users",
25572556
title: "Gleam for Python users",
25582557
meta_title: "Gleam for Python users | Cheat sheet",
@@ -4278,13 +4277,13 @@ pub fn main() {
42784277
]),
42794278
]),
42804279
]
4281-
|> layout.with_header("roadmap", meta, ctx)
4280+
|> page.layout_header("roadmap", meta, ctx)
42824281
|> page.to_html_file(meta)
42834282
}
42844283

42854284
pub fn php(ctx: site.Context) -> fs.File {
42864285
let meta =
4287-
site.PageMeta(
4286+
page.PageMeta(
42884287
path: "cheatsheets/gleam-for-php-users",
42894288
title: "Gleam for PHP users",
42904289
meta_title: "Gleam for PHP users | Cheat sheets",
@@ -7007,13 +7006,13 @@ server applications comparable to RabbitMQ or multiplayer game servers.",
70077006
]),
70087007
]),
70097008
]
7010-
|> layout.with_header("roadmap", meta, ctx)
7009+
|> page.layout_header("roadmap", meta, ctx)
70117010
|> page.to_html_file(meta)
70127011
}
70137012

70147013
pub fn rust(ctx: site.Context) -> fs.File {
70157014
let meta =
7016-
site.PageMeta(
7015+
page.PageMeta(
70177016
path: "cheatsheets/gleam-for-rust-users",
70187017
title: "Gleam for Rust users",
70197018
meta_title: "Gleam for Rust users | Cheat sheet",
@@ -8190,13 +8189,13 @@ pub fn main() {
81908189
]),
81918190
]),
81928191
]
8193-
|> layout.with_header("roadmap", meta, ctx)
8192+
|> page.layout_header("roadmap", meta, ctx)
81948193
|> page.to_html_file(meta)
81958194
}
81968195

81978196
pub fn elm(ctx: site.Context) -> fs.File {
81988197
let meta =
8199-
site.PageMeta(
8198+
page.PageMeta(
82008199
path: "cheatsheets/gleam-for-elm-users",
82018200
title: "Gleam for Elm users",
82028201
meta_title: "Gleam for Elm users | Cheat sheet",
@@ -10223,6 +10222,6 @@ string.inspect([1, 2, 3]) == \"[1, 2, 3]\"
1022310222
]),
1022410223
]),
1022510224
]
10226-
|> layout.with_header("roadmap", meta, ctx)
10225+
|> page.layout_header("roadmap", meta, ctx)
1022710226
|> page.to_html_file(meta)
1022810227
}

src/website/command_line_reference.gleam

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import gleam/option
22
import lustre/attribute as attr
33
import lustre/element/html
44
import website/fs
5-
import website/layout
65
import website/page
76
import website/site
87

98
pub fn page(ctx: site.Context) -> fs.File {
109
let meta =
11-
site.PageMeta(
10+
page.PageMeta(
1211
path: "command-line-reference",
1312
title: "Command line reference",
1413
meta_title: "Command line reference | Gleam programming language",
@@ -473,6 +472,6 @@ pub fn page(ctx: site.Context) -> fs.File {
473472
html.text("Update dependency packages to their latest versions"),
474473
]),
475474
]
476-
|> layout.with_header("roadmap", meta, ctx)
475+
|> page.layout_header("roadmap", meta, ctx)
477476
|> page.to_html_file(meta)
478477
}

src/website/language_server.gleam

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import lustre/attribute as attr
55
import lustre/element.{type Element}
66
import lustre/element/html
77
import website/fs
8-
import website/layout
98
import website/page
109
import website/site
1110

@@ -114,7 +113,7 @@ pub fn page(ctx: site.Context) -> fs.File {
114113
})
115114

116115
let meta =
117-
site.PageMeta(
116+
page.PageMeta(
118117
path: "language-server",
119118
title: "The Gleam Language Server reference",
120119
meta_title: "The Gleam Language Server - IDE features for all editors",
@@ -136,7 +135,7 @@ pub fn page(ctx: site.Context) -> fs.File {
136135
table_of_contents,
137136
..content
138137
]
139-
|> layout.with_header("prose", meta, ctx)
138+
|> page.layout_header("prose", meta, ctx)
140139
|> page.to_html_file(meta)
141140
}
142141

src/website/roadmap.gleam

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import lustre/attribute as attr
55
import lustre/element
66
import lustre/element/html
77
import website/fs
8-
import website/layout
98
import website/page
109
import website/site
1110

@@ -232,7 +231,7 @@ type Release {
232231

233232
pub fn page(ctx: site.Context) -> fs.File {
234233
let meta =
235-
site.PageMeta(
234+
page.PageMeta(
236235
path: "roadmap",
237236
title: "Gleam's Development Roadmap",
238237
meta_title: "Gleam's Development Roadmap",
@@ -305,6 +304,6 @@ pub fn page(ctx: site.Context) -> fs.File {
305304
}),
306305
),
307306
]
308-
|> layout.with_header("roadmap", meta, ctx)
307+
|> page.layout_header("roadmap", meta, ctx)
309308
|> page.to_html_file(meta)
310309
}

0 commit comments

Comments
 (0)