Skip to content

Add other files to sitemap #2823

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

Open
axelkar opened this issue Mar 15, 2025 · 4 comments
Open

Add other files to sitemap #2823

axelkar opened this issue Mar 15, 2025 · 4 comments

Comments

@axelkar
Copy link

axelkar commented Mar 15, 2025

It'd be useful to add non-markdown files like PDFs to the sitemap without editing the template

@Keats
Copy link
Collaborator

Keats commented Mar 17, 2025

How would you like it to work?

@axelkar
Copy link
Author

axelkar commented Mar 18, 2025

I'm not sure entirely. An option to pass file paths in posts and the global config maybe?

@digitalillusions
Copy link

I would also be interested in this. I would be fine with having an option to manually add entries to the generated sitemap, possibly through the frontmatter in page _index.md files? I would mostly use this so that .pdf assets in my website get indexed by search engines. Is there already a way to do this that I'm missing somehow?

@Keats
Copy link
Collaborator

Keats commented Mar 31, 2025

For that currently you can create your own template for the sitemap and add the name of the pdfs in the [extra] section of the pages and create an entry when you find one

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

No branches or pull requests

3 participants