staging thumbnails

This commit is contained in:
Dominic Ferrando
2025-04-19 18:28:28 -04:00
parent b404ae6d53
commit b785ba0448
9 changed files with 37 additions and 24 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ templ ThreadsCatalog(previews []CatalogThreadPreview) {
for _, preview := range previews {
<div class="catalog-preview">
<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/full/%s", preview.MediaPath) }/>
</a>
<h1>
<a href={ templ.URL(preview.ThreadURL) } class="thread-subject catalog-preview-link">{ preview.Subject }</a>
+1 -1
View File
@@ -20,7 +20,7 @@ templ ThreadPost(post database.Post, thread *database.Thread) {
<article id={ fmt.Sprintf("post-%d", post.Id) } class={ getPostClass(isOp) }>
if post.MediaPath != "" {
<div class="post-img-container">
<img src={ fmt.Sprintf("/static/img/posts/%s", post.MediaPath) } class="post-img"/>
<img src={ fmt.Sprintf("/static/img/posts/full/%s", post.MediaPath) } class="post-img"/>
</div>
}
<header class="post-header">