Skip to content

Commit 14cecab

Browse files
committed
Update fonts
1 parent 8efc3b6 commit 14cecab

File tree

11 files changed

+48
-37
lines changed

11 files changed

+48
-37
lines changed

.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1722199221702
3+
"lastUpdateCheck": 1723289844775
44
}
55
}

.astro/types.d.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,31 @@ declare module 'astro:content' {
3232
ContentEntryMap[C]
3333
>['slug'];
3434

35+
/** @deprecated Use `getEntry` instead. */
3536
export function getEntryBySlug<
3637
C extends keyof ContentEntryMap,
3738
E extends ValidContentEntrySlug<C> | (string & {}),
3839
>(
3940
collection: C,
4041
// Note that this has to accept a regular string too, for SSR
41-
entrySlug: E
42+
entrySlug: E,
4243
): E extends ValidContentEntrySlug<C>
4344
? Promise<CollectionEntry<C>>
4445
: Promise<CollectionEntry<C> | undefined>;
4546

47+
/** @deprecated Use `getEntry` instead. */
4648
export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
4749
collection: C,
48-
entryId: E
50+
entryId: E,
4951
): Promise<CollectionEntry<C>>;
5052

5153
export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
5254
collection: C,
53-
filter?: (entry: CollectionEntry<C>) => entry is E
55+
filter?: (entry: CollectionEntry<C>) => entry is E,
5456
): Promise<E[]>;
5557
export function getCollection<C extends keyof AnyEntryMap>(
5658
collection: C,
57-
filter?: (entry: CollectionEntry<C>) => unknown
59+
filter?: (entry: CollectionEntry<C>) => unknown,
5860
): Promise<CollectionEntry<C>[]>;
5961

6062
export function getEntry<
@@ -80,7 +82,7 @@ declare module 'astro:content' {
8082
E extends ValidContentEntrySlug<C> | (string & {}),
8183
>(
8284
collection: C,
83-
slug: E
85+
slug: E,
8486
): E extends ValidContentEntrySlug<C>
8587
? Promise<CollectionEntry<C>>
8688
: Promise<CollectionEntry<C> | undefined>;
@@ -89,7 +91,7 @@ declare module 'astro:content' {
8991
E extends keyof DataEntryMap[C] | (string & {}),
9092
>(
9193
collection: C,
92-
id: E
94+
id: E,
9395
): E extends keyof DataEntryMap[C]
9496
? Promise<DataEntryMap[C][E]>
9597
: Promise<CollectionEntry<C> | undefined>;
@@ -99,17 +101,17 @@ declare module 'astro:content' {
99101
entries: {
100102
collection: C;
101103
slug: ValidContentEntrySlug<C>;
102-
}[]
104+
}[],
103105
): Promise<CollectionEntry<C>[]>;
104106
export function getEntries<C extends keyof DataEntryMap>(
105107
entries: {
106108
collection: C;
107109
id: keyof DataEntryMap[C];
108-
}[]
110+
}[],
109111
): Promise<CollectionEntry<C>[]>;
110112

111113
export function reference<C extends keyof AnyEntryMap>(
112-
collection: C
114+
collection: C,
113115
): import('astro/zod').ZodEffects<
114116
import('astro/zod').ZodString,
115117
C extends keyof ContentEntryMap
@@ -126,7 +128,7 @@ declare module 'astro:content' {
126128
// if `dev` is not running to update as you edit.
127129
// Invalid collection names will be caught at build time.
128130
export function reference<C extends string>(
129-
collection: C
131+
collection: C,
130132
): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;
131133

132134
type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;

bun.lockb

1.42 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
"@astrojs/sitemap": "^3.1.6",
1818
"@astrojs/tailwind": "^5.1.0",
1919
"@astrojs/vercel": "^7.7.2",
20-
"@fontsource/iosevka": "^5.0.11",
20+
"@fontsource-variable/arimo": "^5.0.21",
2121
"@fontsource/jetbrains-mono": "^5.0.20",
22-
"@fontsource/source-sans-pro": "^5.0.8",
2322
"@vercel/analytics": "^1.3.1",
2423
"ajv": "^8.17.1",
2524
"astro": "^4.13.1",
@@ -36,12 +35,12 @@
3635
"remark-unwrap-images": "^4.0.0",
3736
"sharp": "^0.33.4",
3837
"tailwind-merge": "^2.4.0",
39-
"tailwindcss": "^3.4.7",
38+
"tailwindcss": "^3.4.9",
4039
"typescript": "^5.5.4"
4140
},
4241
"devDependencies": {
4342
"@tailwindcss/aspect-ratio": "^0.4.2",
44-
"@tailwindcss/typography": "^0.5.13",
43+
"@tailwindcss/typography": "^0.5.14",
4544
"@typescript-eslint/parser": "^7.18.0",
4645
"eslint": "^8.57.0",
4746
"eslint-plugin-astro": "^0.31.4",
@@ -56,4 +55,4 @@
5655
"peerDependencies": {
5756
"typescript": "^5.0.0"
5857
}
59-
}
58+
}

src/components/Card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (imagePath) {
4747
<div class='flex flex-col gap-y-1.5'>
4848
<div class='flex flex-col gap-y-0.5'>
4949
<h1 class='text-base font-semibold'>{heading}</h1>
50-
<h2 class='text-muted-foreground'>{subheading}, {date}</h2>
50+
<h2 class='text-muted-foreground'>{subheading}{date && (", " + date)}</h2>
5151
</div>
5252
<slot />
5353
</div>

src/components/Section.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { class: className, title } = Astro.props;
88
<div class='text-xl font-bold md:w-1/4'>
99
<h2>{title}</h2>
1010
</div>
11-
<div class='flex flex-col gap-y-3 md:w-3/4'>
11+
<div class='flex flex-col text-base gap-y-3 md:w-3/4'>
1212
<slot />
1313
</div>
1414
</section>

src/components/blog/TOCHeading.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface Props {
66
}
77
88
const {
9-
heading: { depth, slug, subheadings, text },
9+
heading: { depth, slug, text },
1010
} = Astro.props;
1111
---
1212

src/content/post/volume-form.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ $$
7272
which is a pdf under $dV_G$ since it's still positive (note that $G$ is positive-definite) and
7373

7474
$$
75-
\require{cancel}
7675
\int_{\R^n} p \, \abs{\det{G}}^{-\frac{1}{2}} \, dV_G = \int_{\R^n} p \, \cancel{\abs{\det{G}}^{-\frac{1}{2}}} \, \cancel{\abs{\det{G}}^{\frac{1}{2}}} \, dx = 1 ,
7776
$$
7877

src/pages/index.astro

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,30 @@ const sortedSelectedPubs = selectedPubs
205205
</Section>
206206

207207
<Section title='Awards'>
208-
<ul class='list-inside list-disc'>
209-
<li>
210-
Best PhD thesis from the German Research Foundation's Theoretical Foundations
211-
of Deep Learning (FoDL) program.
212-
</li>
213-
<li>Spotlight paper at NeurIPS 2023 (top 4%).</li>
214-
<li>Spotlight paper at NeurIPS 2021 (top 3%).</li>
215-
<li>Long-talk paper at UAI 2021 (top 6%).</li>
216-
<li>Best reviewer at ICML 2021 (top 10%).</li>
217-
</ul>
208+
<Card
209+
heading='Best PhD thesis'
210+
subheading="German Research Foundation's Theoretical Foundations of Deep Learning program, 2023"
211+
/>
212+
213+
<Card
214+
heading='Spotlight paper (top 4%)'
215+
subheading="NeurIPS 2023"
216+
/>
217+
218+
<Card
219+
heading='Spotlight paper (top 3%)'
220+
subheading="NeurIPS 2021"
221+
/>
222+
223+
<Card
224+
heading='Long-talk paper (top 6%)'
225+
subheading="UAI 2021"
226+
/>
227+
228+
<Card
229+
heading='Best reviewer (top 10%)'
230+
subheading="ICML 2021"
231+
/>
218232
</Section>
219233

220234
<Section title='Skills'>
@@ -225,11 +239,9 @@ const sortedSelectedPubs = selectedPubs
225239
{
226240
allPostsByDate.length > 0 && (
227241
<Section title='Latest Posts'>
228-
<ul class='flex flex-col gap-y-2'>
242+
<ul class='flex flex-col gap-y-5 sm:gap-y-2'>
229243
{allPostsByDate.slice(0, 5).map((p) => (
230-
<li class='flex flex-col gap-x-2 sm:flex-row'>
231-
<PostPreview post={p} withDesc maxDescWords={18} />
232-
</li>
244+
<PostPreview post={p} maxDescWords={18} withDesc />
233245
))}
234246
</ul>
235247
</Section>

src/site.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { SiteConfig } from "@/types";
22
import { type AstroExpressiveCodeOptions } from "astro-expressive-code";
3-
import "@fontsource/iosevka";
43
import "@fontsource/jetbrains-mono";
5-
import "@fontsource/source-sans-pro";
4+
import "@fontsource-variable/arimo";
65

76
export const siteConfig: SiteConfig = {
87
// Used as both a meta property (src/components/BaseHead.astro L:31 + L:49) & the generated satori png (src/pages/og-image/[slug].png.ts)

0 commit comments

Comments
 (0)