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

Feature request: allow disabling robots.txt and sitemap.xml #2248

Open
ismay opened this issue Jul 17, 2023 · 4 comments
Open

Feature request: allow disabling robots.txt and sitemap.xml #2248

ismay opened this issue Jul 17, 2023 · 4 comments
Labels
done in pr Already done in a PR

Comments

@ismay
Copy link

ismay commented Jul 17, 2023

For a project I'm working I don't need a sitemap.xml nor robots.txt. However there is no way to stop zola generating these files. From what I gather from the docs these can only be overwritten, not disabled entirely. The ignored_content glob also does not seem to have an effect. It would be good if a user had an option to disable these files if they're not wanted.

@Keats
Copy link
Collaborator

Keats commented Jul 19, 2023

Yeah it's not possible to disable them right now. We could make it a config.toml option. For now you can just rm them after the zola build

@ismay
Copy link
Author

ismay commented Jul 19, 2023

For now you can just rm them after the zola build

Thanks, yeah I'll do that for now. Not a huge deal of course. But if it's possible to add as a config value without adding too much complexity I'd appreciate it.

Bromind added a commit to Bromind/zola that referenced this issue Jul 19, 2024
@Bromind Bromind mentioned this issue Jul 19, 2024
3 tasks
Bromind added a commit to Bromind/zola that referenced this issue Jul 19, 2024
Keats pushed a commit that referenced this issue Jul 25, 2024
* Add feature to disable robots.txt and sitemap.xml from the config file.

Addresses feature request #2248

* Add documentation for no_sitemap & no_robots

* Rename no_robots and no_sitemap into generate_robots_txt and generate_sitemap (default to true)

* fix rustfmt issues

* Change documentation to show defaults

* Update documentation for the fields generate_sitemaps (resp. robots_txt), now that the default is true and false is needed to disable
@Bromind
Copy link
Contributor

Bromind commented Jul 25, 2024

I think we can close this issue now that #2579 is merged.

(ping @Keats ?)

@Keats Keats added done in pr Already done in a PR and removed enhancement labels Jul 25, 2024
@Keats
Copy link
Collaborator

Keats commented Jul 25, 2024

I close issues when the feature is released in a Zola version, so it will be closed whenever 0.19.2 or 0.20.0 is released.

reujab pushed a commit to reujab/zola that referenced this issue Aug 14, 2024
…2579)

* Add feature to disable robots.txt and sitemap.xml from the config file.

Addresses feature request getzola#2248

* Add documentation for no_sitemap & no_robots

* Rename no_robots and no_sitemap into generate_robots_txt and generate_sitemap (default to true)

* fix rustfmt issues

* Change documentation to show defaults

* Update documentation for the fields generate_sitemaps (resp. robots_txt), now that the default is true and false is needed to disable
Keats pushed a commit that referenced this issue Aug 15, 2024
* Add feature to disable robots.txt and sitemap.xml from the config file.

Addresses feature request #2248

* Add documentation for no_sitemap & no_robots

* Rename no_robots and no_sitemap into generate_robots_txt and generate_sitemap (default to true)

* fix rustfmt issues

* Change documentation to show defaults

* Update documentation for the fields generate_sitemaps (resp. robots_txt), now that the default is true and false is needed to disable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done in pr Already done in a PR
Projects
None yet
Development

No branches or pull requests

3 participants