comparison default/base/base.html @ 25:b046a7835374

base/base.html: if norobots is set, add a <meta> to tell robots no to index or follow this page.
author Goffi <goffi@goffi.org>
date Sat, 24 Jun 2017 20:20:51 +0200
parents 8fa2fd2e928e
children d782227c088d
comparison
equal deleted inserted replaced
24:2496887339f6 25:b046a7835374
1 {% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} 1 {% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #}
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html> 3 <html>
4 <head> 4 <head>
5 <meta charset="utf-8" /> 5 <meta charset="utf-8" />
6
7 {% if norobots %}
8 <meta name="robots" content="noindex, nofollow">
9 {% endif %}
10
6 <title>{% block title %}{{C.APP_NAME}}{% endblock %}</title> 11 <title>{% block title %}{{C.APP_NAME}}{% endblock %}</title>
7 {% if css_content is defined %} 12 {% if css_content is defined %}
8 <style type="text/css"> 13 <style type="text/css">
9 {{css_content}} 14 {{css_content}}
10 </style> 15 </style>