I’m building a website. I want to put intro content on the home page, but for some reason it just shows a list of posts. Here’s what I’ve tried:
layout: singleor no
layoutin the YAML
type: pageor no
typein the YAML
- naming the file
- putting the file in
One clue: the
title from the YAML only shows up sometimes, and when it does it’s sometimes from several versions of the file ago. I’ve been using the title to indicate the filename and where it is as I try to figure this out.
Sometimes, deleting a file from somewhere else seems to change things. For example,I put
content and it looks like it works (title shows that it’s using that file because my YAML says “/content/index”). So I delete the
_index files from the
home directory and then my homepage goes back to being a list page again.
And sometimes I don’t change any of the YAML, filenames, or file locations, just add a space or delete a word in the
index.md file, and it works! Then reload and it doesn’t work!
What am I doing wrong?
UPDATE: it seems to be working at the moment with
content. I will try removing the
home directory since maybe I don’t need it.