# Static landing page using non-index template

**URL:** <https://zola.discourse.group/t/static-landing-page-using-non-index-template/208>\
**Category:** Support\
**Created:** [September 22, 2019, 3:08pm UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208 "2019-09-22T15:08:58Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [September 22, 2019, 3:08pm UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208/1 "2019-09-22T15:08:59Z")

</div>

This question has certainly an obvious answer but I can’t find it. How to get a static page in the root of the site using a _non-index_ template?

Now I have a `home.md` file in the `content` folder using the `landing.html` template, which inherits from `index.html` and I can see my site at `/home`.

If I rename `home.md` to `index.md` (still having the same template in the front matter), looking at `/` gives me the page rendered with the `index.html` template. WTF’s happening? Expected behavior would be to use the `landing.html` template, wouldn’t be?

---

<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:** [September 22, 2019, 5:47pm UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208/2 "2019-09-22T17:47:06Z")

</div>

As a workaround I added a redirection in my `{% block content %}` as follows :  
`<script>document.location.href="/home/"</script>`

---

<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:** [September 23, 2019, 2:05am UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208/3 "2019-09-23T02:05:59Z")

</div>

Index pages are `_index.md`, with a leading underscore. If `template` is specified though it should use it.

---

<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:** [September 23, 2019, 9:02pm UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208/4 "2019-09-23T21:02:42Z")

</div>

Thanks for the answer! I think I was stuck because I wanted to create a _page_ and not a _section_. I still do not really get the difference between the two. I’m pretty sure I already tried this option but may not have understood the error message saying `Reason: Variable `page.extra` not found in context while rendering 'landing.html'`. It was actually looking for a `section` variable, not a `page` one.

I’m coming from pelican and I am not familiar with this concept. Thanks a lot for this very good piece of software, I’ll maybe write a “dumb-beginner’s tutorial” for people like me who are not good enough at reading the doc 🙂

---

<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:** [September 24, 2019, 1:03am UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208/5 "2019-09-24T01:03:45Z")

</div>

> I’ll maybe write a “dumb-beginner’s tutorial” for people like me who are not good enough at reading the doc

The docs are definitely missing a quickstart: [Docs should have "Quickstart" section. · Issue #534 · getzola/zola · GitHub](https://github.com/getzola/zola/issues/534)  
Any help on that is welcome!

---

<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:** [September 26, 2019, 1:12am UTC](https://zola.discourse.group/t/static-landing-page-using-non-index-template/208/6 "2019-09-26T01:12:19Z")

</div>

@keats j’ai fait un prototype de quickstart en français, tu peux me faire des retours et quand ça te convient, je traduirai en anglais : [https://git.42l.fr/HugoTrentesaux/zola-quickstart](https://git.42l.fr/HugoTrentesaux/zola-quickstart)
