Skip to content

How to put articles in a subdirectory #331

Closed Answered by welpo
grifferz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!

Thanks for not giving up on tabi & Zola, for reading the docs, and for the detailed message!

It's correct, you did need content/posts/_index.md.

The site is failing to build because of this line in content/_index.md:

section_path = "posts/"

It's missing the path to the _index.md file. Try changing it to:

section_path = "posts/_index.md"

That should fix the error; everything else looks good!

A pointer to documentation about this would be much appreciated.

I've updated README.md with a comment explicitly stating it needs to include the full path to the index file.


I've never tried using the date subdirectory format, but I know others have. transparent —which passes the pages o…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by grifferz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants