Skip to content

Commit e26cc2d

Browse files
committed
fix: resolve meta tag description
1 parent cb8cc77 commit e26cc2d

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

Sources/Pages/Components/Page.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ extension Page {
1818
public var title: String { "Erik Bautista Santibanez" }
1919
public var desc: String {
2020
"""
21+
A software developer specialized in mobile and web applications.
2122
"""
2223
}
2324
public var lang: String { "en" }

Sources/Pages/HomePage.swift

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,33 @@ private struct UserView: HTML {
139139
}
140140
} content: {
141141
// div {
142+
// p {
143+
// """
144+
// I'm a passionate software developer who builds applications using Swift and modern web technologies.
145+
// """
146+
// }
147+
// div {
148+
// button {
149+
// "Resume"
150+
// }
151+
152+
// button {
153+
// "GitHub"
154+
// }
155+
156+
// button {
157+
// "LinkedIn"
158+
// }
159+
160+
// button {
161+
// "Contact"
162+
// }
163+
// }
164+
// .inlineStyle("display", "flex")
165+
// .inlineStyle("flex-direction", "row")
166+
// .inlineStyle("gap", "1.125rem")
142167
// }
143-
// .inlineStyle("display", "flex")
144-
// .inlineStyle("flex-direction", "row")
145-
// .inlineStyle("gap", "1.125rem")
168+
// .inlineStyle("padding", "0 1.5rem 1.5rem")
146169
EmptyHTML()
147170
}
148171
}
@@ -264,7 +287,7 @@ private struct PostsView: HTML {
264287
}
265288
}
266289
.inlineStyle("color", "#7A7A7A")
267-
.inlineStyle("font-size", "0.86em")
290+
.inlineStyle("font-size", "0.7em")
268291
.inlineStyle("margin-top", "0.75rem")
269292
}
270293
}

Sources/Pages/NotFoundPage.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public struct NotFoundPage: Page {
3434
private struct InnerView: HTML {
3535
let codeLang: Expression<CodeLang?>
3636

37-
private static let notFoundDescription = "The asset or page does not exist."
37+
private static let notFoundDescription = "The asset or page could not be found"
3838

3939
var body: some HTML {
4040
section {
@@ -57,23 +57,22 @@ private struct InnerView: HTML {
5757
if let lang {
5858
pre {
5959
code {
60+
"""
61+
// 404 ERROR
62+
// \(Self.notFoundDescription)\n
63+
"""
64+
6065
switch lang {
6166
case .swift:
6267
"""
63-
// 404 ERROR
64-
// \(Self.notFoundDescription)
6568
throw Error.notFound
6669
"""
6770
case .rust:
6871
"""
69-
// 404 ERROR
70-
// \(Self.notFoundDescription)
7172
panic!("Not found");
7273
"""
7374
case .typescript:
7475
"""
75-
// 404 ERROR
76-
// \(Self.notFoundDescription)
7776
throw new Error("Not found");
7877
"""
7978
}
@@ -91,7 +90,7 @@ private struct InnerView: HTML {
9190

9291
p { Self.notFoundDescription }
9392
.inlineStyle("color", "#d0d0d0")
94-
.inlineStyle("font-weight", "500")
93+
.inlineStyle("font-weight", "normal")
9594
}
9695
}
9796
.inlineStyle("padding", "160px 32px")

0 commit comments

Comments
 (0)