# Confusion trying to determine the page\_template

**URL:** <https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659>\
**Category:** Support\
**Created:** [October 14, 2020, 10:58pm UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659 "2020-10-14T22:58:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dertuxmalwieder](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/dertuxmalwieder/32/336_2.png) [@dertuxmalwieder](https://zola.discourse.group/u/dertuxmalwieder)\
**Post date:** [October 14, 2020, 10:58pm UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659/1 "2020-10-14T22:58:40Z")

</div>

Trying to mimic my WordPress setup, I still fail.

What I want to achieve is to:

1. have a list of pages (`/blog/PAGETITLE`),
2. 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?

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [October 15, 2020, 6:09pm UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659/2 "2020-10-15T18:09:03Z")

</div>

This is weird, it should be working as you expect.

Can you add a zip of that code so I can have a look at it?

---

<div class="post-metadata">

**Author:** ![dertuxmalwieder](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/dertuxmalwieder/32/336_2.png) [@dertuxmalwieder](https://zola.discourse.group/u/dertuxmalwieder)\
**Post date:** [November 26, 2020, 7:28pm UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659/4 "2020-11-26T19:28:58Z")

</div>

I feel like I should push this. I have just tried it with the latest Zola from Git on macOS and I still fail to show the `comments` part in `/2020/08/test`.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [November 27, 2020, 9:29am UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659/5 "2020-11-27T09:29:05Z")

</div>

> [@dertuxmalwieder](#):
>
> /2020/08/test

Your `{% include "comments.html" %}` is outside of the content block so it is ignored.

---

<div class="post-metadata">

**Author:** ![dertuxmalwieder](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/dertuxmalwieder/32/336_2.png) [@dertuxmalwieder](https://zola.discourse.group/u/dertuxmalwieder)\
**Post date:** [November 27, 2020, 9:32am UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659/6 "2020-11-27T09:32:30Z")

</div>

Ahh, too easy. That was it! 😍  
Thank you - sorry, that might make me look a bit dumb… I promise, I’m not. 😉

This topic can be marked solved - I don’t seem to be able to do that myself.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [November 27, 2020, 9:36am UTC](https://zola.discourse.group/t/confusion-trying-to-determine-the-page-template/659/7 "2020-11-27T09:36:04Z")

</div>


