Skip to content

Commit 6bf691c

Browse files
committed
restructure blog posts
1 parent 71e7dd9 commit 6bf691c

40 files changed

+2717
-2864
lines changed

_pages/books.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
layout: page
3+
title: "Books"
4+
permalink: /books/
5+
---
6+
7+
<div class="post-list">
8+
<!-- Pinned book posts first -->
9+
{% assign pinned_book_posts = site.posts | where: "pinned", true | where_exp: "post", "post.tags contains 'books'" %}
10+
{% for post in pinned_book_posts %}
11+
<article class="pinned-post">
12+
<span class="pinned-label">📌</span>
13+
<small>
14+
Published: {{ post.date | date_to_string }}
15+
{% if post.updated %}
16+
<br><span class="updated-date">Updated: {{ post.updated | date_to_string }}</span>
17+
{% endif %}
18+
</small>
19+
<h2><a href="{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2>
20+
<p>{{ post.excerpt }}</p>
21+
{% if post.tags.size > 0 %}
22+
<div class="post-tags">
23+
{% for tag in post.tags %}
24+
<a href="{{site.baseurl}}/archive.html#{{tag | slugize}}" class="post-tag">#{{ tag }}</a>
25+
{% endfor %}
26+
</div>
27+
{% endif %}
28+
</article>
29+
{% endfor %}
30+
31+
<!-- Regular book posts (excluding pinned ones) -->
32+
{% assign regular_book_posts = site.posts | where: "pinned", nil | where_exp: "post", "post.tags contains 'books'" %}
33+
{% for post in regular_book_posts %}
34+
<article>
35+
<small>
36+
Published: {{ post.date | date_to_string }}
37+
{% if post.updated %}
38+
<br><span class="updated-date">Updated: {{ post.updated | date_to_string }}</span>
39+
{% endif %}
40+
</small>
41+
<h2><a href="{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2>
42+
<p>{{ post.excerpt }}</p>
43+
{% if post.tags.size > 0 %}
44+
<div class="post-tags">
45+
{% for tag in post.tags %}
46+
<a href="{{site.baseurl}}/archive.html#{{tag | slugize}}" class="post-tag">#{{ tag }}</a>
47+
{% endfor %}
48+
</div>
49+
{% endif %}
50+
</article>
51+
{% endfor %}
52+
</div>

_pages/blog.md renamed to _pages/tech.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
layout: page
3-
title: "Blog"
4-
permalink: /blog/
3+
title: "Tech"
4+
permalink: /tech/
55
---
66

77
<div class="post-list">
8-
<!-- Pinned posts first -->
9-
{% assign pinned_posts = site.posts | where: "pinned", true %}
10-
{% for post in pinned_posts %}
8+
<!-- Pinned tech posts first -->
9+
{% assign pinned_tech_posts = site.posts | where: "pinned", true | where_exp: "post", "post.tags contains 'tech'" %}
10+
{% for post in pinned_tech_posts %}
1111
<article class="pinned-post">
1212
<span class="pinned-label">📌</span>
1313
<small>
@@ -28,9 +28,9 @@ permalink: /blog/
2828
</article>
2929
{% endfor %}
3030

31-
<!-- Regular posts (excluding pinned ones) -->
32-
{% assign regular_posts = site.posts | where: "pinned", nil %}
33-
{% for post in regular_posts %}
31+
<!-- Regular tech posts (excluding pinned ones) -->
32+
{% assign regular_tech_posts = site.posts | where: "pinned", nil | where_exp: "post", "post.tags contains 'tech'" %}
33+
{% for post in regular_tech_posts %}
3434
<article>
3535
<small>
3636
Published: {{ post.date | date_to_string }}

_posts/2025-02-09-jekyll.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ title: "Using an LLM to revamp my site"
44
date: 2025-02-09
55
updated: 2025-06-06
66
tags: ai tech
7-
pinned: true
87
---
98

109
Recently, I revamped this site to use Jekyll and Markdown instead of handwritten HTML. I used Claude to do it. Overall, I found that Claude is good for troubleshooting when you already have some domain experience.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2-
layout: page
2+
layout: post
33
title: "Books I've read"
4-
permalink: /books/
4+
tags: books
5+
pinned: true
56
---
67

78
All the books I've read since January 2020.

_site/2020/06/08/elantris.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</span>
3434
</label>
3535

36-
<div class="trigger"><a class="page-link" href="/blog/">Blog</a><a class="page-link" href="/books/">Books I&#39;ve read</a></div>
36+
<div class="trigger"><a class="page-link" href="/books/">Books</a><a class="page-link" href="/tech/">Tech</a></div>
3737
</nav></div>
3838
</header><main class="page-content" aria-label="Content">
3939
<div class="wrapper">

_site/2020/06/13/normalpeople.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</span>
3434
</label>
3535

36-
<div class="trigger"><a class="page-link" href="/blog/">Blog</a><a class="page-link" href="/books/">Books I&#39;ve read</a></div>
36+
<div class="trigger"><a class="page-link" href="/books/">Books</a><a class="page-link" href="/tech/">Tech</a></div>
3737
</nav></div>
3838
</header><main class="page-content" aria-label="Content">
3939
<div class="wrapper">

_site/2020/09/26/americanwoman.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</span>
3434
</label>
3535

36-
<div class="trigger"><a class="page-link" href="/blog/">Blog</a><a class="page-link" href="/books/">Books I&#39;ve read</a></div>
36+
<div class="trigger"><a class="page-link" href="/books/">Books</a><a class="page-link" href="/tech/">Tech</a></div>
3737
</nav></div>
3838
</header><main class="page-content" aria-label="Content">
3939
<div class="wrapper">

_site/2021/01/01/ereaders.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</span>
3434
</label>
3535

36-
<div class="trigger"><a class="page-link" href="/blog/">Blog</a><a class="page-link" href="/books/">Books I&#39;ve read</a></div>
36+
<div class="trigger"><a class="page-link" href="/books/">Books</a><a class="page-link" href="/tech/">Tech</a></div>
3737
</nav></div>
3838
</header><main class="page-content" aria-label="Content">
3939
<div class="wrapper">

_site/2021/02/04/wharton.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</span>
3434
</label>
3535

36-
<div class="trigger"><a class="page-link" href="/blog/">Blog</a><a class="page-link" href="/books/">Books I&#39;ve read</a></div>
36+
<div class="trigger"><a class="page-link" href="/books/">Books</a><a class="page-link" href="/tech/">Tech</a></div>
3737
</nav></div>
3838
</header><main class="page-content" aria-label="Content">
3939
<div class="wrapper">

_site/2021/04/08/mexicangothic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</span>
3434
</label>
3535

36-
<div class="trigger"><a class="page-link" href="/blog/">Blog</a><a class="page-link" href="/books/">Books I&#39;ve read</a></div>
36+
<div class="trigger"><a class="page-link" href="/books/">Books</a><a class="page-link" href="/tech/">Tech</a></div>
3737
</nav></div>
3838
</header><main class="page-content" aria-label="Content">
3939
<div class="wrapper">

0 commit comments

Comments
 (0)