welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
97 stars 32 forks source link

How to archived more than one directory in content? #245

Closed ziyouwa closed 6 months ago

ziyouwa commented 6 months ago

On the archive page, only the articles under the blog directory in content are archived. How do I archive articles under other directories in content?

welpo commented 6 months ago

Hi @ziyouwa,

Have you tried setting the section_path? Described in the docs.

I'm not sure if you want: a) to change the Archive path (this is possible; see the docs) b) to show posts from multiple paths in Archive (this is not possible)

ziyouwa commented 6 months ago

Thanks for all your hard work! In my content directory, besides the blog directory, there are others, such as study, work, etc. I want to traverse these directories as well when archiving, and collect the articles inside them.

welpo commented 6 months ago

Understood. I will look into it!

welpo commented 6 months ago

Done in #249.

Set section_path = ["blog/", "notes/", "path-three/"]. Let me know if you encounter any issues.