Small adjustments to header section in core template #4
|
@ -8,10 +8,10 @@
|
||||||
{% block location %}
|
{% block location %}
|
||||||
location / {
|
location / {
|
||||||
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
|
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
|
||||||
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block app_root_location %}
|
{% block app_root_location %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
}
|
|
||||||
|
|
||||||
{% block extra_locations %}
|
{% block extra_locations %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -83,7 +83,10 @@ server {
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.robots is defined %}
|
{% if item.robots is defined %}
|
||||||
|
{% if item.robots == 'none' %}
|
||||||
|
{% else %}
|
||||||
add_header X-Robots-Tag "{{ item.robots }}";
|
add_header X-Robots-Tag "{{ item.robots }}";
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
add_header X-Robots-Tag none;
|
add_header X-Robots-Tag none;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue