changeset 63a20559015d in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=63a20559015d
description:
        Use head block
diffstat:

 templates/index.html  |  4 ++--
 templates/layout.html |  2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 0989278ead9a -r 63a20559015d templates/index.html
--- a/templates/index.html      Fri Jul 26 20:26:37 2019 +0200
+++ b/templates/index.html      Fri Jul 26 21:47:31 2019 +0200
@@ -4,10 +4,10 @@
 {% macro slide_img(i, alt) %}
 <img class="d-block w-100 img-fluid" src="{{ url_for('static', 
filename='images/slide%i.jpg' % i) }}" sizes="100vw" srcset="{{ 
url_for('static', filename='images/slide%i.jpg' % i) }} 1920w, {{ 
url_for('static', filename='images/slide%i-800px.jpg' % i) }} 800w, {{ 
url_for('static', filename='images/slide%i-400px.jpg' % i) }} 400w" alt="{{ alt 
}}">
 {% endmacro %}
-{% block style %}
+{% block head %}
 {{ super() }}
 <link rel="alternate" type="application/rss+xml" title="Tryton's news" 
href="{{ url_for('news_rss') }}"/>
-{% endblock style %}
+{% endblock head %}
 {% block header %}
 {{ super() }}
 <div id="carousel-header" class="carousel slide carousel-fade" 
data-ride="carousel">
diff -r 0989278ead9a -r 63a20559015d templates/layout.html
--- a/templates/layout.html     Fri Jul 26 20:26:37 2019 +0200
+++ b/templates/layout.html     Fri Jul 26 21:47:31 2019 +0200
@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html lang="en" prefix="og: http://ogp.me/ns#";>
     <head>
+        {% block head %}
         <meta charset="utf-8"/>
         <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
         <meta name="viewport" content="width=device-width, initial-scale=1"/>
@@ -36,6 +37,7 @@
         {% endblock style %}
 
         <script async src="{{ url_for('static', filename='js/all.js') 
}}"></script>
+        {% endblock head %}
     </head>
     <body>
 

Reply via email to