Trying to mimic my WordPress setup, I still fail.
What I want to achieve is to:
- have a list of pages (
/blog/PAGETITLE
), - have a list of blog articles (
/blog/YEAR/MONTH/TITLE
).
Of those, the blog articles should have a different template than the pages.
My current structure, including one page and one example post, is as follows:
├───content
│ │ test-page.md
│ │ _index.md
│ │
│ └───2020
│ └───08
│ test-article.md
├───sass
├───static
└───themes
└───my-theme-name
├───sass
├───static
├───templates
│ base.html
│ comments.html
│ index.html
│ page.html
│ section.html
└───themes
According to what I read in the documentation, page.html
is the template for pages and section.html
is for blog posts. However, both test-page.md
and test-article.md
use page.html
now. I tried to explicitly set section.html
in content/_index.md
:
+++
title = "Blog Test"
sort_by = "date"
template = "index.html"
page_template = "section.html"
+++
Yet, section.html
is ignored.
I can only imagine that I am too dumb to understand the documentation. Can anyone enlighten me?