Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ziyouwa opened this issue Jan 4, 2024 · 4 comments · Fixed by #249
Closed

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

ziyouwa opened this issue Jan 4, 2024 · 4 comments · Fixed by #249
Labels
enhancement New feature or request

Comments

@ziyouwa
Copy link

ziyouwa commented Jan 4, 2024

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?

@ziyouwa ziyouwa added the enhancement New feature or request label Jan 4, 2024
@welpo
Copy link
Owner

welpo commented Jan 4, 2024

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
Copy link
Author

ziyouwa commented Jan 5, 2024

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
Copy link
Owner

welpo commented Jan 5, 2024

Understood. I will look into it!

@welpo
Copy link
Owner

welpo commented Jan 5, 2024

Done in #249.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants