fix: cover as public-path string (Sveltia uploads) + render cover in article
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user