Skip to content

Commit 06d2355

Browse files
committed
fix: example application uses proper page meta pattern
1 parent 16421b3 commit 06d2355

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

examples/static/Sources/Pages/About.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ struct About: HTML {
44
var document: Document {
55
.init(
66
path: "about",
7-
metadata: Metadata(
8-
title: "About",
9-
description: "Learn more about this website and its creator"
10-
),
7+
metadata: Metadata(from: Application.metadata, title: "About"),
118
content: { self }
129
)
1310
}

examples/static/Sources/Pages/Home.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ struct Home: HTML {
44
var document: Document {
55
.init(
66
path: "",
7-
metadata: Metadata(
8-
title: "Home",
9-
description: "Welcome to my personal website built with WebUI"
10-
),
7+
metadata: Metadata(from: Application.metadata, title: "Home"),
118
content: { self }
129
)
1310
}

0 commit comments

Comments
 (0)