# How to have text, not list of posts, on the home page

**URL:** <https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313>\
**Category:** Support\
**Created:** [February 1, 2020, 5:24pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313 "2020-02-01T17:24:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoewr](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zoewr](https://zola.discourse.group/u/zoewr)\
**Post date:** [February 1, 2020, 5:24pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/1 "2020-02-01T17:24:25Z")

</div>

I can’t find a way to have the home page be just a regular page. It looks like the homepage is generated from `index.html`, which lists all posts on the site.

I don’t want to have a list of posts anywhere. I’d like my homepage to be a manually-written markdown page.

I could edit index.html and put my homepage content there, but then I’d be using plain old HTML, and I’d prefer to use markdown.

Am I missing something? I expect `content/index.md` to be visible as body of the home page (`/` url), but it’s not.

---

<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:** [February 1, 2020, 8:24pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/2 "2020-02-01T20:24:45Z")

</div>

> [@zoewr](#):
>
> I expect `content/index.md` to be visible as body of the home page ( `/` url), but it’s not.

It’s `content/_index.md` with an `_` as the index is a section.

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/hugotrentesaux/32/105_2.png) [@HugoTrentesaux](https://zola.discourse.group/u/HugoTrentesaux)\
**Post date:** [February 3, 2020, 3:17pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/3 "2020-02-03T15:17:55Z")

</div>

All depends on the theme you’re using. Which one do you use ?

---

<div class="post-metadata">

**Author:** ![zoewr](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zoewr](https://zola.discourse.group/u/zoewr)\
**Post date:** [February 3, 2020, 9:25pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/4 "2020-02-03T21:25:41Z")

</div>

I’m trying to migrate my existing site to Zola, so I’m also trying to create my own theme that reproduces what I had before.

Existing themes all have a list of posts on their homepage, which as I’ve mentioned, is not appropriate for my content.

---

<div class="post-metadata">

**Author:** ![zoewr](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zoewr](https://zola.discourse.group/u/zoewr)\
**Post date:** [February 3, 2020, 9:26pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/5 "2020-02-03T21:26:34Z")

</div>

I’ve tried `_index.md` as well, but I don’t know how to make it show in the homepage body. Just creating that file is not enough.

---

<div class="post-metadata">

**Author:** ![HugoTrentesaux](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/hugotrentesaux/32/105_2.png) [@HugoTrentesaux](https://zola.discourse.group/u/HugoTrentesaux)\
**Post date:** [February 4, 2020, 6:52pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/6 "2020-02-04T18:52:26Z")

</div>

Ok so if you are creating your own theme, you have to understand the basic mechanisms of the theme engine. You have several options here :

- sections can have their content too, you can just use the section object as if it was a page
- you can do a redirection of the main section page to a page of your choice (landing page)

If you need a concrete example, I can write one for you.

---

<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:** [February 5, 2020, 6:52am UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/7 "2020-02-05T06:52:05Z")

</div>

You can use `{{ section.content | safe}}` in `index.html` if you have content to show: [https://github.com/Keats/tera/blob/master/docs/templates/index.html#L56](https://github.com/Keats/tera/blob/master/docs/templates/index.html#L56)

---

<div class="post-metadata">

**Author:** ![amcsi](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/amcsi/32/406_2.png) [@amcsi](https://zola.discourse.group/u/amcsi)\
**Post date:** [January 9, 2021, 1:35pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/8 "2021-01-09T13:35:13Z")

</div>

I ran into the same issue. I was about to get what I want by…

1. Making the content page into a section naming it content/\_index.md.

2. In the template my \_index.md is extending (which is the same page.html all content htmls of mine use), I added this snippet before accessing any page properties:

With that my section works as if it were a page, and I got my landing page to work that way.

---

<div class="post-metadata">

**Author:** ![michaeljones](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/michaeljones/32/571_2.png) [@michaeljones](https://zola.discourse.group/u/michaeljones)\
**Post date:** [July 26, 2021, 5:37pm UTC](https://zola.discourse.group/t/how-to-have-text-not-list-of-posts-on-the-home-page/313/9 "2021-07-26T17:37:09Z")

</div>

I wanted to add that I’ve just started with Zola and after quite a while skimming the docs and then reading them more carefully I was still quite confused how to get markdown content on to the home page with the default set up. I have little experience with static site generators but I’ve found that aspect confusing. It seems very titled towards sections & pages without mention of how to get markdown content on to the first page that you see.

I’m looking to write an educational overview on a subject and it seemed most reasonable to start with content on the homepage and move from there as it gets more complex. This might not be the usual approach.
