package templates 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

} }