This commit is contained in:
laura 2025-12-09 19:25:04 -03:00
parent 862b11b9ef
commit 9c6da082a0
Signed by: w
GPG key ID: BCD2117C99E69817
31 changed files with 441 additions and 263 deletions

1
routes/reports/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
meow.tsx

View file

@ -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">

View file

@ -53,7 +53,9 @@ export default function Page() {
/>
</Head>
<Links selected="reports" />
<Reports reports={getCachedReports()} />
<Reports
reports={getCachedReports().filter((r) => r.visibility === "author")}
/>
</>
);
}