Improve thread subject style catalog preview
This commit is contained in:
@@ -79,6 +79,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.catalog-preview-link {
|
.catalog-preview-link {
|
||||||
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ templ ThreadsCatalog(previews []CatalogThreadPreview) {
|
|||||||
<a href={ templ.URL(preview.ThreadURL) }>
|
<a href={ templ.URL(preview.ThreadURL) }>
|
||||||
<img class="catalog-preview-img" src={ fmt.Sprintf("/static/img/posts/%s", preview.MediaPath) }/>
|
<img class="catalog-preview-img" src={ fmt.Sprintf("/static/img/posts/%s", preview.MediaPath) }/>
|
||||||
</a>
|
</a>
|
||||||
<h1><a href={ templ.URL(preview.ThreadURL) } class="catalog-preview-link">{ preview.Subject }</a></h1>
|
<h1>
|
||||||
|
<a href={ templ.URL(preview.ThreadURL) } class="thread-subject catalog-preview-link">{ preview.Subject }</a>
|
||||||
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
@templ.Raw(util.EnrichPost(preview.Body))
|
@templ.Raw(util.EnrichPost(preview.Body))
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user