Moved conditional for quote inside a <p> tag in mindflow.templ.
This commit is contained in:
parent
4191e9bb9b
commit
f8cc6ea427
@ -27,11 +27,10 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re
|
||||
</a>
|
||||
</header>
|
||||
for _, line := range strings.Split(post.Body, "\n") {
|
||||
<p
|
||||
if len(line) > 0 && line[0] == '>' {
|
||||
<p class="quote">@templ.Raw(line)</p>
|
||||
} else {
|
||||
<p>@templ.Raw(line)</p>
|
||||
}
|
||||
class="quote"
|
||||
}>@templ.Raw(line)</p>
|
||||
}
|
||||
<footer>
|
||||
if post.URL != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user