Add a Jekyll configuration with the notes collection
This commit is contained in:
4
_config.yml
Normal file
4
_config.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
collections:
|
||||
notes:
|
||||
output: true
|
||||
permalink: /:slug/
|
||||
6
_notes/test.md
Normal file
6
_notes/test.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "Hello World"
|
||||
layout: default
|
||||
---
|
||||
|
||||
Hello World
|
||||
23
notes.html
23
notes.html
@@ -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 %}
|
||||
Reference in New Issue
Block a user