Browse Source

Move Twitter widgets.js to article template

restyle-spring-2019
Annika Backstrom 1 year ago
parent
commit
4ac94cc4e2
2 changed files with 6 additions and 1 deletions
  1. 4
    0
      themes/histrionic/templates/article.html
  2. 2
    1
      themes/histrionic/templates/base.html

+ 4
- 0
themes/histrionic/templates/article.html View File

@@ -38,3 +38,7 @@
38 38
   </article>
39 39
 </div>
40 40
 {% endblock %}
41
+
42
+{% block scripts_footer %}
43
+  <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
44
+{% endblock %}

+ 2
- 1
themes/histrionic/templates/base.html View File

@@ -80,6 +80,7 @@
80 80
     </script>
81 81
     {% endif %}
82 82
 
83
-    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
83
+    {% block scripts_footer %}
84
+    {% endblock %}
84 85
   </body>
85 86
 </html>

Loading…
Cancel
Save