1
0

Moved conditional for quote inside a <p> tag in mindflow.templ.

This commit is contained in:
Alexander Andreev 2024-06-21 01:01:48 +04:00
parent 4191e9bb9b
commit f8cc6ea427
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -27,11 +27,10 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re
</a> </a>
</header> </header>
for _, line := range strings.Split(post.Body, "\n") { for _, line := range strings.Split(post.Body, "\n") {
<p
if len(line) > 0 && line[0] == '>' { if len(line) > 0 && line[0] == '>' {
<p class="quote">@templ.Raw(line)</p> class="quote"
} else { }>@templ.Raw(line)</p>
<p>@templ.Raw(line)</p>
}
} }
<footer> <footer>
if post.URL != "" { if post.URL != "" {