idk
This commit is contained in:
parent
862b11b9ef
commit
9c6da082a0
31 changed files with 441 additions and 263 deletions
|
|
@ -62,9 +62,19 @@ export default function PostPage(props: PageProps) {
|
|||
<article>
|
||||
<header>
|
||||
<h1>{post.title}</h1>
|
||||
<p>
|
||||
{post.excerpt &&
|
||||
(post.excerpt.length > 120
|
||||
? post.excerpt.slice(0, 120) + "…"
|
||||
: post.excerpt)}
|
||||
</p>
|
||||
<div class="meta">
|
||||
<time datetime={post.createdAt}>{post.createdAt}</time> ·{" "}
|
||||
{formatReadingTime(post.readingTime)}
|
||||
<div class="label">
|
||||
{post.visibility === "url"
|
||||
? "DRAFT"
|
||||
: <time datetime={post.createdAt}>{post.createdAt}</time>}
|
||||
</div>{" "}
|
||||
· {formatReadingTime(post.readingTime)}
|
||||
</div>
|
||||
{post.tags && (
|
||||
<div class="tags">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue