Compare commits
2 commits
6224860b0a
...
d85b7f729f
Author | SHA1 | Date | |
---|---|---|---|
d85b7f729f | |||
22a8c36fff |
9 changed files with 4479 additions and 3482 deletions
17
biome.json
Normal file
17
biome.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true
|
||||
}
|
||||
}
|
||||
}
|
|
@ -36,6 +36,7 @@
|
|||
"remark-parse": "^10.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.7.3",
|
||||
"@types/lodash-es": "^4.17.9",
|
||||
"date-fns": "^2.30.0",
|
||||
"hast-util-from-html": "^2.0.1",
|
||||
|
|
7713
pnpm-lock.yaml
7713
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -11,6 +11,7 @@ interface Props {
|
|||
filteredPosts?: Post[];
|
||||
class?: string | undefined;
|
||||
timeFormat?: string | undefined;
|
||||
collection?: string;
|
||||
}
|
||||
|
||||
type Post = CollectionEntry<"posts">;
|
||||
|
@ -20,6 +21,7 @@ const {
|
|||
drafts: includeDrafts,
|
||||
filteredPosts,
|
||||
timeFormat,
|
||||
collection,
|
||||
} = Astro.props;
|
||||
|
||||
type FilterFn = (_: Post) => boolean;
|
||||
|
@ -44,7 +46,7 @@ function getFilter(): FilterFn {
|
|||
const filter = getFilter();
|
||||
let allPosts;
|
||||
if (filteredPosts) allPosts = filteredPosts.filter(filter);
|
||||
else allPosts = await getCollection("posts", filter);
|
||||
else allPosts = await getCollection(collection ?? "posts", filter);
|
||||
|
||||
const sortedPosts = sortBy(allPosts, (post) => -post.data.date);
|
||||
---
|
||||
|
|
|
@ -9,5 +9,5 @@ import { format } from "date-fns";
|
|||
---
|
||||
|
||||
<span class="timestamp" title={timestamp.toISOString()}>
|
||||
{format(timestamp, customFormat ?? "yyyy MMM d")}
|
||||
{format(timestamp, customFormat ?? "yyyy MMM dd")}
|
||||
</span>
|
||||
|
|
|
@ -24,7 +24,7 @@ const posts = defineCollection({
|
|||
heroImage: image().optional(),
|
||||
heroAlt: z.string().optional(),
|
||||
|
||||
tags: z.array(z.string()),
|
||||
tags: z.array(z.string()).default([]),
|
||||
draft: z.boolean().default(false),
|
||||
math: z.boolean().default(false),
|
||||
toc: z.boolean().default(false),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
I'm a computer science master's student at the [University of Minnesota][1]
|
||||
I'm a computer science master's student at the [University of Minnesota][1],
|
||||
advised by [Favonia]. I've previously worked as a software engineer at [Swoop
|
||||
Search], [AWS] and [SIFT] in the past. My computing-related interests lie in
|
||||
programming language design and formal verification, systems security,
|
||||
|
|
|
@ -36,7 +36,7 @@ I'm going to implement this using [Deno].
|
|||
|
||||
[deno]: https://deno.land/
|
||||
|
||||
> **💡 This is a literate document.** I wrote a [small utility][3] to
|
||||
> **:bulb: This is a literate document.** I wrote a [small utility][3] to
|
||||
> extract the code blocks out of markdown files, and it should produce working
|
||||
> example for this file. If you have the utility, then running the following
|
||||
> should get you a copy of all the code extracted from this blog post:
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
z-index: 2;
|
||||
}
|
||||
|
||||
&[open] summary {
|
||||
&[open]>summary {
|
||||
border-bottom: 1px dotted var(--hr-color);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue