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>
|
</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 != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user