Small adjustments to header section in core template (#4)
Merge branch 'master' into template_fix small adjustment to header section in core template fixed missing closing bracket on base template Co-authored-by: muppeth <muppeth@disroot.org> Reviewed-on: #4 Reviewed-by: meaz <meaz@no-reply@disroot.org> Reviewed-by: antilopa <antilopa@no-reply@disroot.org> Co-Authored-By: muppeth <muppeth@no-reply@disroot.org> Co-Committed-By: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
parent
a9ebf9f942
commit
d225515917
|
@ -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