aboutsummaryrefslogtreecommitdiffstats
path: root/templates/robots.txt
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-07-10 19:54:16 +0100
committerGravatar Gareth Coles <[email protected]>2018-07-10 19:54:16 +0100
commitd6985a01ea62e6ea9f9bd858f9d89efe14074748 (patch)
treef9cb8d64101bc4073f0a8d84390a9670ad483517 /templates/robots.txt
parent[Wiki] Add OG description text to pages (diff)
Fix robots.txt template
Diffstat (limited to '')
-rw-r--r--templates/robots.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/robots.txt b/templates/robots.txt
index be2a512c..934f9e6a 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 %}
+{% for user_agent, disallowed in rules.keys() %}
User-agent: {{ user_agent }}
{% for rule in rules %}
Disallow: {{ rule }}