feat: add books collection
This commit is contained in:
parent
900377c334
commit
24a16f8557
3 changed files with 22 additions and 0 deletions
7
src/content/books/a-test-book.md
Normal file
7
src/content/books/a-test-book.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
title: Here is my test book
|
||||||
|
---
|
||||||
|
|
||||||
|
# A test book
|
||||||
|
|
||||||
|
Here we go!!
|
5
src/content/books/books.json
Normal file
5
src/content/books/books.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"layout": "base",
|
||||||
|
"tags": "books",
|
||||||
|
"permalink": "books/{{ page.fileSlug }}/index.html"
|
||||||
|
}
|
10
src/content/pages/books.md
Normal file
10
src/content/pages/books.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
permalink: /books/index.html
|
||||||
|
layout: "base"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Books page
|
||||||
|
|
||||||
|
{% for book in collections.books %}
|
||||||
|
{{ book.data.title }}
|
||||||
|
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue