-
Notifications
You must be signed in to change notification settings - Fork 967
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
Comments
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 |
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. |
Addresses feature request getzola#2248
Addresses feature request getzola#2248
* 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
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. |
…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
* 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
…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
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.
The text was updated successfully, but these errors were encountered: