templates: add new custom block for top javascript (#40640)

This commit is contained in:
Frédéric Péters 2020-03-11 10:48:57 +01:00
parent b3b3650e19
commit 41caec29f5
2 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@
{% block extra_top_head %}
{{ block.super }}
{% block extra_top_head_js %}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
{% endblock %}
{% skeleton_extra_placeholder extra-top-head %}
{% end_skeleton_extra_placeholder %}
{% if page.picture %}

View File

@ -1,7 +1,7 @@
{% extends "combo/page_template.html" %}
{% load combo gadjo %}
{% block extra_top_head %}
{% block extra_top_head_js %}
{{ block.super }}
<script src="{{site_base}}{% xstatic 'jquery-ui' 'jquery-ui.min.js' %}"></script>
{% endblock %}