This is some godom code that syntax highlighting should pick up on for the blog.
func RenderHome(state HomeState) *Node {
var articles []*Node
for _, post := range state.Posts {
articles = append(articles, newArticlePreview(post))
}
return PageLayout(
Div(
Article(Class("first-entry home-info"),
Header(Class("entry-header m-2 p-3.5"),
H1(T("breadchris")),
),
Div(Class("entry-content"), T("hack the planet")),
Footer(Class("entry-footer"),
Div(Class("social-icons"),
A(Href("https://github.com/breadchris"), Target("_blank"), Rel("noopener noreferrer me"), Attr("title", "Github"),
Text("github"),
),
A(Href("https://twitter.com/breadchris"), Target("_blank"), Rel("noopener noreferrer me"), Attr("title", "Twitter"),
Text("twitter"),
),
A(Href("https://youtube.com/@breadchris/streams"), Target("_blank"), Rel("noopener noreferrer me"), Attr("title", "YouTube"),
Text("youtube"),
),
A(Href("https://cal.com/breadchris"), Target("_blank"), Rel("noopener noreferrer me"), Attr("title", "Cal.com"),
Text("cal.com"),
),
),
),
),
Chl(articles...),
),
)
}