idk
This commit is contained in:
parent
862b11b9ef
commit
9c6da082a0
31 changed files with 441 additions and 263 deletions
1
routes/reports/.gitignore
vendored
Normal file
1
routes/reports/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
meow.tsx
|
||||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -53,7 +53,9 @@ export default function Page() {
|
|||
/>
|
||||
</Head>
|
||||
<Links selected="reports" />
|
||||
<Reports reports={getCachedReports()} />
|
||||
<Reports
|
||||
reports={getCachedReports().filter((r) => r.visibility === "author")}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue