From f8cc6ea4274301fcfe08f34f89f6e35ba835a107 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 21 Jun 2024 01:01:48 +0400 Subject: [PATCH] Moved conditional for quote inside a

tag in mindflow.templ. --- web/mindflow.templ | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/mindflow.templ b/web/mindflow.templ index feae8e1..9033181 100644 --- a/web/mindflow.templ +++ b/web/mindflow.templ @@ -27,11 +27,10 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re for _, line := range strings.Split(post.Body, "\n") { +

0 && line[0] == '>' { -

@templ.Raw(line)

- } else { -

@templ.Raw(line)

- } + class="quote" + }>@templ.Raw(line)

}