From ddc3b3dd2c59b4f138f9ef2038eac0d7cc8d9139 Mon Sep 17 00:00:00 2001 From: dtonon Date: Tue, 13 Aug 2024 12:27:54 +0200 Subject: [PATCH] Fix missing title --- embedded_note.templ | 4 ++-- note.templ | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/embedded_note.templ b/embedded_note.templ index 0dcbc2d..63211fe 100644 --- a/embedded_note.templ +++ b/embedded_note.templ @@ -8,8 +8,8 @@ templ embeddedNoteTemplate(params NotePageParams) {
- if params.Subject != "" { -

{ params.Subject }

+ if params.Event.subject != "" { +

{ params.Event.subject }

}
diff --git a/note.templ b/note.templ index d4fac87..dadffed 100644 --- a/note.templ +++ b/note.templ @@ -25,8 +25,8 @@ templ noteTemplate(params NotePageParams) { params.Details, params.Event, ) { - if params.Subject != "" { -

{ params.Subject }

+ if params.Event.subject != "" { +

{ params.Event.subject }

} else {

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