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.
I ran into the same issue. I was about to get what I want by…
Making the content page into a section naming it content/_index.md.
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:
{% if page is undefined %}
{% set page = section %}
{% endif %}
With that my section works as if it were a page, and I got my landing page to work that way.
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.