Skip to content

Commit 3da398b

Browse files
committed
various ui improvements
1 parent 436a01f commit 3da398b

11 files changed

+222
-129
lines changed

astro.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import rehypeKatex from 'rehype-katex';
77
import codeTheme from './src/utils/code-theme.json';
88

99
export default defineConfig({
10+
prefetch: {
11+
prefetchAll: true
12+
},
1013
site: 'https://salm.dev',
1114
integrations: [
1215
tailwind(),

src/content/books/algorithmic-game-theory.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2025-01-15"
55
cover: "/src/assets/images/books/agt.jpg"
66
rating: 0
77
tags: ["Algorithms", "Math"]
8-
review: "Fairly complex overview on game theory. It offers a deep dive into computation of equilibria and related CS theory."
8+
review: "Deep dive into computation of equilibria and related CS theory."
99
links:
1010
personalSite: "https://www.cs.cmu.edu/~sandholm/cs15-892F13/algorithmic-game-theory.pdf"
1111
currentlyReading: true

src/content/books/beyond-ctci.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2025-02-01"
55
cover: "https://static.wixstatic.com/media/172248_f823554b56c841cc97733fbbf1e47803~mv2.png/v1/fill/w_964,h_1422,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/full%20cover.png"
66
rating: 0
77
tags: ["Software Engineering", "Career Development"]
8-
review: "Review soon! The updated 2025 version of the acclaimed 'Green Book' for SWE."
8+
review: "The 2025 version of the acclaimed 'Green Book' for SWE."
99
links:
1010
personalSite: "https://www.beyondctci.com"
1111
currentlyReading: true

src/content/books/clrs.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2024-02-15"
55
cover: "https://mit-press-us.imgix.net/covers/9780262046305.jpg"
66
rating: 4
77
tags: ["Algorithms"]
8-
review: "The definitive algorithms reference book. Challenging to read, but nevertheless is the definitive source of truth."
8+
review: "The definitive reference book for Algorithms."
99
recommendationLevel: "Must Read"
1010
links:
1111
personalSite: "https://mitpress.mit.edu/9780262046305/introduction-to-algorithms/"

src/content/books/ddia.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2024-11-15"
55
cover: "https://dataintensive.net/images/book-cover.png"
66
rating: 4.5
77
tags: ["Data Science", "Programming"]
8-
review: "Comprehensive guide to designing data-intensive applications (as the title might suggest). Successfully provides the reader with the tools needed to scale 'models'/'toys' and transform them into production-capable services."
8+
review: "Designing data-intensive applications (as the title might suggest)."
99
links:
1010
personalSite: "https://dataintensive.net"
1111
------

src/content/books/intro-to-probability.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2025-02-10"
55
cover: "https://people.math.wisc.edu/~asv/ASV_cover_small.jpg"
66
rating: 0
77
tags: ["Math"]
8-
review: "Intermediate-level probability book by professors from UW-Madison. Provides necessary foundation for further math and statistics."
8+
review: "Provides necessary foundation for further math and statistics."
99
recommendationLevel: "Must Read"
1010
links:
1111
personalSite: "https://people.math.wisc.edu/~asv/"

src/content/books/logicomix.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2025-01-15"
55
cover: "/src/assets/images/books/logicomix.jpg"
66
rating: 5
77
tags: ["Algorithms"]
8-
review: "Graphic novel chronicling Bertrand Russell's quest to establish the foundations of mathematics while exploring the personal turmoil of great logicians."
8+
review: "Bertrand Russell's quest to establish the foundations of mathematics."
99
links:
1010
personalSite: "https://www.logicomix.com/en/index.html"
1111
------

src/content/books/ostep.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2025-01-15"
55
cover: "https://pages.cs.wisc.edu/~remzi/OSTEP/book-cover-two.jpg"
66
rating: 4.5
77
tags: ["Systems", "Programming"]
8-
review: "The OS textbook, written by Remzi and Andrea Arpaci-Dusseau, two professors at the University of Wisconsin-Madison. Written with a heavy Unix-bias. Nevertheless, the standard high-level overview of OS topics."
8+
review: "The standard high-level overview of OS topics. Written with Heavy UNIX bias."
99
links:
1010
personalSite: "https://pages.cs.wisc.edu/~remzi/OSTEP/"
1111
------

src/content/books/pragmatic-programmer.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dateRead: "2024-01-15"
55
cover: "https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/tpp20.jpg"
66
rating: 4
77
tags: ["Software Engineering", "Programming", "Career Development"]
8-
review: "A collection of practical programming wisdom covering topics from basic tools to software design, emphasizing pragmatic approaches to development."
8+
review: "Practical wisdom covering topics from basic tools to software design."
99
links:
1010
personalSite: "https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/"
1111
------

src/pages/blog.astro

+10-20
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,36 @@
22
import Layout from '../layouts/Layout.astro';
33
import { getCollection } from 'astro:content';
44
import { calculateReadingTime } from '../utils/readingTime';
5-
65
const posts = await getCollection('blog');
76
const sortedPosts = posts.sort((a, b) =>
87
new Date(b.data.date).getTime() - new Date(a.data.date).getTime()
98
);
109
---
11-
1210
<Layout title="Blog">
1311
<div class="max-w-2xl mx-auto">
14-
<section class="mb-12">
15-
<h1 class="text-3xl font-normal mb-4">Writing</h1>
16-
<p class="text-gray-600 dark:text-gray-400 mb-8">
12+
<section class="mb-8">
13+
<h1 class="text-3xl font-normal mb-2">Writing</h1>
14+
<p class="text-gray-600 dark:text-gray-400">
1715
Hot takes and cool things.
1816
</p>
1917
</section>
20-
2118
<section>
22-
<h2 class="text-2xl font-normal mb-4">All Posts</h2>
23-
<div class="space-y-6">
19+
<div class="space-y-4">
2420
{sortedPosts.map(post => (
25-
<article class="border-b dark:border-gray-800 pb-6 last:border-0">
21+
<article class="border-b dark:border-gray-800 pb-4 last:border-0">
2622
<a href={`/blog/${post.slug}`} class="block group">
27-
<h3 class="text-lg group-hover:underline">{post.data.title}</h3>
28-
<div class="flex items-center text-sm text-gray-600 dark:text-gray-400 gap-4 mt-1">
29-
<time datetime={post.data.date}>
23+
<div class="flex flex-col sm:flex-row sm:items-baseline gap-2">
24+
<h3 class="text-lg group-hover:underline">{post.data.title}</h3>
25+
<time datetime={post.data.date} class="text-sm text-gray-600 dark:text-gray-400">
3026
{new Date(post.data.date).toLocaleDateString('en-US', {
3127
year: 'numeric',
32-
month: 'long',
28+
month: 'short',
3329
day: 'numeric'
3430
})}
3531
</time>
36-
<span class="inline-flex items-center">
37-
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" viewBox="0 0 20 20" fill="currentColor">
38-
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd"/>
39-
</svg>
40-
{calculateReadingTime(post.body)} min read
41-
</span>
4232
</div>
4333
{post.data.description && (
44-
<p class="mt-2 text-gray-700 dark:text-gray-300 text-sm">
34+
<p class="mt-1 text-gray-700 dark:text-gray-300 text-sm">
4535
{post.data.description}
4636
</p>
4737
)}

0 commit comments

Comments
 (0)