Add a Jekyll configuration with the notes collection

This commit is contained in:
2026-08-08 19:22:20 -04:00
parent e5d94e37a6
commit e90ac9fe79
3 changed files with 10 additions and 23 deletions

4
_config.yml Normal file
View File

@@ -0,0 +1,4 @@
collections:
notes:
output: true
permalink: /:slug/

6
_notes/test.md Normal file
View File

@@ -0,0 +1,6 @@
---
title: "Hello World"
layout: default
---
Hello World

View File

@@ -1,23 +0,0 @@
---
title: "Notes"
layout: default
---
<h1>Notes</h1>
<p>I've moved publishing to my [Substack](https://bchendev.substack.com?utm_source=bchen.dev). For reference, old notes remain accessible here.</p>
<p></p>
{% assign posts_by_month = site.posts | group_by_exp: "post", "post.date | date: '%B %Y'" %}
{% for month in posts_by_month %}
<h2>{{ month.name }}</h2>
<ul>
{% for post in month.items %}
<li>
<time>{{ post.date | date: "%Y.%m.%d" }}</time>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}