File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ _ template: robots.txt
2+ ---
3+ _ discoverable: no
4+ ---
5+ _ model: none
Original file line number Diff line number Diff line change 1+ {%- macro capitalize _first (text ) - %}
2+ {{- text [0 ].upper () - }}{{- text [1 :] - }}
3+ {%- endmacro - %}
4+ User-agent: *
5+ Disallow: /javascript/*
6+ Disallow: /scss/*
7+ Disallow: /static/*
8+
9+ {# - the '\n' is because we need a newline,
10+ but we need to strip trailing and leading whitespace as well .
11+ fragile , be careful # }
12+ {% for user _agent , directives in bag ('robots _txt ').items () - %}
13+ {{ '\n ' }}User-agent : {{ user _agent }}
14+ {%- for directive , values in directives .items () - %}
15+ {%- for value in values - %}
16+ {{ '\n ' }}{{ capitalize _first (directive ) }}: {{ value - }}
17+ {% endfor - %}
18+ {% endfor %}
19+ {% endfor %}
You can’t perform that action at this time.
0 commit comments