I’m overriding the default robots.txt and wanted to include a set of files that are generated elsewhere. Since robots.txt is a template, I was hoping to just use Tera’s {% include "robots.foo.txt" %}
as one would in any template, except I get an error:
Error: Failed to render 'robots.txt'
Error: Reason: Template '[robots.foo.txt]' not found
If I change the include and rename the file to .html
instead of .txt
, it seems to work. Is Tera not able to include non-html files? How does the robots.txt
template work with .txt
extension? Is this intended behaviour or a bug?
Thanks,
Mayo