From 4e5211b2a34f51036a47affc9abd9891e0e58c8a Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 11 Jul 2018 13:27:25 +0100 Subject: robots.txt: I can code, I swear --- templates/robots.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/robots.txt b/templates/robots.txt index 934f9e6a..fa61be5e 100644 --- a/templates/robots.txt +++ b/templates/robots.txt @@ -1,6 +1,6 @@ {# robots.txt is a little picky about whitespace and newlines - that's why the below looks kind of bad.#} {% if rules is defined and rules %} -{% for user_agent, disallowed in rules.keys() %} +{% for user_agent, disallowed in rules.items() %} User-agent: {{ user_agent }} {% for rule in rules %} Disallow: {{ rule }} -- cgit v1.2.3