package builder import ( "website/internal/config" "website/internal/content" ) templ homepage(config config.Config, posts []content.Post, content string) { @page(config, PageSettings{ Title: config.Title, TitleAttrs: templ.Attributes{ "class": "p-name u-url", }, Path: "/", BodyAttrs: templ.Attributes{ "class": "h-card", }, }) {
@Unsafe(content)

Latest Posts

@list(posts[0:3])

Elsewhere on the Internet

} }