Back to Zola

Robots

docs/content/documentation/templates/robots.md

0.22.1494 B
Original Source

+++ title = "Robots.txt" weight = 70 +++

Zola will look for a robots.txt file in the templates directory or use the built-in one.

Robots.txt is the simplest of all templates: it only gets config and the default is what most sites want:

jinja
User-agent: *
Disallow:
Allow: /
Sitemap: {}

The file can be extended & expanded like other templates using e.g. Tera's include tag:

jinja
User-agent: *
Disallow:
Allow: /
Sitemap: {}

{% include "path/to/other/robots.txt" %}