package main import "html/template" type NotePageParams struct { BaseEventPageParams OpenGraphParams HeadParams Details DetailsParams Content template.HTML Cover string Subject string TitleizedContent string Clients []ClientReference } templ noteInnerBlock(params NotePageParams) { if params.Event.subject != "" {

{ params.Event.subject }

} else {

{ params.Event.author.ShortName() } on Nostr: { params.TitleizedContent }

} if params.Cover != "" { { }
@templ.Raw(params.Content)
} templ noteTemplate(params NotePageParams, isEmbed bool) { if isEmbed { @embeddedPageTemplate( params.Event, params.NeventNaked, ) { @noteInnerBlock(params) } } else { @eventPageTemplate( params.TitleizedContent, params.OpenGraphParams, params.HeadParams, params.Clients, params.Details, params.Event, ) { @noteInnerBlock(params) } } }