# Exclude section from being rendered on the posts list

**URL:** <https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118>\
**Category:** Support\
**Created:** [May 7, 2024, 7:01pm UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118 "2024-05-07T19:01:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![punk-pen](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@punk-pen](https://zola.discourse.group/u/punk-pen)\
**Post date:** [May 7, 2024, 7:01pm UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/1 "2024-05-07T19:01:14Z")

</div>

I am moving my personal blog from Jekyll to [Zola](https://www.getzola.org/), but I am struggling to understand how to exclude a section from being rendered on the main page.

I want a paginated list of posts on the `/`, all posts are available in the `content` directory. And I want an `/about` page, to be excluded from posts list, that will render `./content/about/index.md`

This is the structure of content:

```auto
content
├── 2024-05-01-first.md
├── 2024-05-01-second.md
├── _index.md
└── about
    └── index.md

```

With the theme I am currently using, [zola-pickles](https://github.com/lukehsiao/zola-pickles), the `/about` page is displayed in the paginated list of posts on the home page.

---

<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:** [May 9, 2024, 3:24pm UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/2 "2024-05-09T15:24:31Z")

</div>

Change `about/index.md` to `about/_index.md` and that should do the trick.

---

<div class="post-metadata">

**Author:** ![punk-pen](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@punk-pen](https://zola.discourse.group/u/punk-pen)\
**Post date:** [May 9, 2024, 4:03pm UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/3 "2024-05-09T16:03:34Z")

</div>

I have tried:

```auto
content
├── ___.md
├── ___.md
├── _index.md
└── about
    └── _index.md

```

But:

 ![Screenshot 2024-05-09 at 18.01.46](https://global.discourse-cdn.com/free1/uploads/zola1/original/2X/e/e84d8afba1f8f3c683e7a1c346fc23de80fb1f62.jpeg)

---

<div class="post-metadata">

**Author:** ![welpo](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/welpo/32/1087_2.png) [@welpo](https://zola.discourse.group/u/welpo)\
**Post date:** [May 11, 2024, 12:20pm UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/4 "2024-05-11T12:20:23Z")

</div>

In your `about/_index.md`, have you set a `template` in the front matter? Like this:

```auto
+++
title = "About"
template = "page.html"
path = "about"
+++

```

---

<div class="post-metadata">

**Author:** ![punk-pen](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@punk-pen](https://zola.discourse.group/u/punk-pen)\
**Post date:** [May 13, 2024, 6:46am UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/5 "2024-05-13T06:46:12Z")

</div>

tried also, but:

```auto
✗ zola serve
Building site...
Checking all internal links with anchors.
> Successfully checked 5 internal link(s) with anchors.
-> Creating 11 pages (0 orphan) and 1 sections
Error: Failed to serve the site
Error: Failed to render section '/Users/punkpen/Documents/blog/content/about/_index.md'
Error: Reason: Failed to render 'page.html'
Error: Reason: Variable `page.title` not found in context while rendering 'page.html'

```

---

<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:** [May 13, 2024, 11:00am UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/6 "2024-05-13T11:00:36Z")

</div>

> [@welpo](#):
>
> `about/_index.md`

It’s going to be a section, not a page. So define a `about.html` template and use `section.` to access the fields

---

<div class="post-metadata">

**Author:** ![welpo](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/welpo/32/1087_2.png) [@welpo](https://zola.discourse.group/u/welpo)\
**Post date:** [May 13, 2024, 9:55pm UTC](https://zola.discourse.group/t/exclude-section-from-being-rendered-on-the-posts-list/2118/7 "2024-05-13T21:55:38Z")

</div>

> [@keats](#):
>
> So define a `about.html` template and use `section.` to access the fields

Right. I misspoke. I actually have:  
content → pages → about → index.md

`pages` is a section with `render = false` ([link to code](https://github.com/welpo/tabi/blob/main/content/pages/_index.md?plain=1)).  
`about` is a directory with [an `index.md` file](https://github.com/welpo/tabi/blob/main/content/pages/about/index.md?plain=1).

It specifies a template to use, but you might get away with using the default.

Hope that helps!
