{{.Item.Description}}{{if .Item.Title}}— {{.Item.Title}}{{end}}
{{if .Item.LinkURL}}{{end}}
{{end}}
package handlers import ( "context" "net/http" "strings" "time" "git.soup.land/soup/sxgo/ssr" "lookbook/internal/components" "lookbook/internal/data/item" "lookbook/internal/data/media" "lookbook/internal/data/tag" ) type itemPageContent struct { Item itemPageData IsAdmin bool } type itemPageData struct { ID string Title *string Description *string LinkURL *string ItemType string EmbedHTML *string EmbedVideoURL *string Tags []string CreatedAt string MediaID *int64 MediaIsVideo bool ImageIDs []int64 // Fetched images (from URLs/embeds) } func (c itemPageContent) Render(sw *ssr.Writer) error { return sw.Tmpl(c, `
{{.Item.Description}}{{if .Item.Title}}— {{.Item.Title}}{{end}}