Skip to content

Commit

Permalink
Deprecate journal
Browse files Browse the repository at this point in the history
  • Loading branch information
horo-fox committed Aug 24, 2024
1 parent d28288e commit 7e1c3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 67 deletions.
32 changes: 0 additions & 32 deletions src/pages/feed.xml.ts

This file was deleted.

37 changes: 2 additions & 35 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ import selfie from "../holo.png";
import { profile } from "../util/data.ts";
const journalEntries = await getCollection("journal");
const dateFormatter = new Intl.DateTimeFormat("en-US", {
dateStyle: "full",
});
const profileData = profile(
`https://${Astro.site?.hostname ?? "localhost:4321"}${selfie.src}`,
journalEntries,
journalEntries
);
---

Expand Down Expand Up @@ -103,37 +100,7 @@ const profileData = profile(
</figure>
</article>
<article>
<h2>Journal:</h2>
{
/* todo: make a `/journal` page such that it lists all without quality trimming */
}
<ul>
{
journalEntries
.sort(
(a, b) =>
b.data.published.getTime() -
a.data.published.getTime(),
)
// .filter((post, i) => {
// // todo: this should *probably* be like < 10 or something
// return i / post.data.quality < 15;
// })
.map((post) => (
<li>
<p>
{/* todo: why does prettier-astro reformat this to add whitespace? */}
{/* prettier-ignore */}
<a href={`/journal/${post.slug}/`}>{post.data.title}</a>
&#8212;
{dateFormatter.format(post.data.published)}
<br />
<em>{post.data.summary.trim()}</em>
</p>
</li>
))
}
</ul>
<p>Lab notebook soon hopefully.</p>
</article>
</div>
</MainLayout>

0 comments on commit 7e1c3ff

Please sign in to comment.