From 2c84ca0dd75dd50a814e04cf5fc28c72d2a24996 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 13 Feb 2024 17:01:41 -0300 Subject: [PATCH] get rid of classes. --- base.css | 1 - common.templ | 5 ----- note.templ | 2 +- render_event.go | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/base.css b/base.css index c6dbeeb..7a20572 100644 --- a/base.css +++ b/base.css @@ -24,5 +24,4 @@ margin: 1cm 3cm; } } - } diff --git a/common.templ b/common.templ index 26b7e58..149b4e2 100644 --- a/common.templ +++ b/common.templ @@ -23,11 +23,6 @@ templ headCommonTemplate(params HeadParams) { } else { if params.NaddrNaked != "" { diff --git a/note.templ b/note.templ index d7eb529..2afd234 100644 --- a/note.templ +++ b/note.templ @@ -19,7 +19,7 @@ templ noteTemplate(params NotePageParams) { } -
+
@templ.Raw(params.Content)
} diff --git a/render_event.go b/render_event.go index b477a66..7284a61 100644 --- a/render_event.go +++ b/render_event.go @@ -361,7 +361,7 @@ func renderEvent(w http.ResponseWriter, r *http.Request) { if len(tag) >= 3 && isValidShortcode(tag[1]) { u, err := url.Parse(tag[2]) if err == nil { - content = strings.ReplaceAll(content, ":"+tag[1]+":", ``) + content = strings.ReplaceAll(content, ":"+tag[1]+":", ``) } } }