Add a basic journaling/blogging system

This commit is contained in:
2025-07-18 23:23:29 -04:00
parent fe62a0927b
commit 5684b8250c
3 changed files with 35 additions and 0 deletions

7
_layouts/post.html Normal file
View File

@@ -0,0 +1,7 @@
---
layout: default
---
<a href="/journal">Back</a>
{{ content }}

View File

@@ -0,0 +1,9 @@
---
title: "Hello World"
layout: post
---
# Welcome
**Hello world**, this is my first Jekyll blog post.
I hope you like it!

19
journal.html Normal file
View File

@@ -0,0 +1,19 @@
---
title: "Journal"
layout: default
---
<h1>Journal</h1>
{% 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 %}