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