Add a basic journaling/blogging system
This commit is contained in:
7
_layouts/post.html
Normal file
7
_layouts/post.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
<a href="/journal">Back</a>
|
||||||
|
|
||||||
|
{{ content }}
|
||||||
9
_posts/2025-07-18-hello-world.md
Normal file
9
_posts/2025-07-18-hello-world.md
Normal 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
19
journal.html
Normal 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 %}
|
||||||
Reference in New Issue
Block a user