fix: cover as public-path string (Sveltia uploads) + render cover in article

This commit is contained in:
ctao
2026-07-24 20:34:22 +02:00
parent ed45ff6d54
commit 228ad5b60b
3 changed files with 13 additions and 10 deletions
+1
View File
@@ -16,6 +16,7 @@ const fmt = (d) => new Intl.DateTimeFormat('pl-PL', { dateStyle: 'long' }).forma
<a class="back" href="/">← Wszystkie newsy</a>
<h1>{post.data.title}</h1>
<div class="meta">{post.data.category} · {post.data.author} · {fmt(post.data.date)}</div>
{post.data.cover && <img class="cover" src={post.data.cover} alt="" />}
<div class="prose">
<Content />
</div>