package builder import ( "time" "website/internal/config" ) func Unsafe(html string) templ.Component { return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) { _, err = io.WriteString(w, html) return }) } templ postDate(d time.Time) { } templ postPage(config config.Config, post Post) { @page(config, PageSettings{ Title: post.Title, TitleAttrs: templ.Attributes{ "class": "p-author h-card", "rel": "author", }, Path: post.URL, }) {

{ post.Title }

@postDate(post.Date)

@Unsafe(post.Content)
Tags:
} }