feat: add books collection

This commit is contained in:
Devin Haska 2024-02-01 21:31:31 -08:00
parent 900377c334
commit 24a16f8557
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,7 @@
---
title: Here is my test book
---
# A test book
Here we go!!

View file

@ -0,0 +1,5 @@
{
"layout": "base",
"tags": "books",
"permalink": "books/{{ page.fileSlug }}/index.html"
}

View file

@ -0,0 +1,10 @@
---
permalink: /books/index.html
layout: "base"
---
# Books page
{% for book in collections.books %}
{{ book.data.title }}
{% endfor %}