Skip to content

Commit f8d267d

Browse files
committed
refactor: replace direct template include with helper function for extra head HTML
Replace {% include "extra_head.html" ignore missing %} with h.get_extra_head_html() helper call to centralize the logic for injecting custom head HTML. Also normalize indentation in styles block.
1 parent fbefacc commit f8d267d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • ckanext/digitizationknowledge/templates
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{% ckan_extends %}
22

33
{% block styles %}
4-
{{ super() }}
5-
{% asset 'digitizationknowledge_theme/main-css' %}
6-
<script src="//unpkg.com/alpinejs" defer></script>
4+
{{ super() }}
5+
{% asset 'digitizationknowledge_theme/main-css' %}
6+
<script src="//unpkg.com/alpinejs" defer></script>
77
{% endblock %}
88

99
{% block head_extras %}
1010
{{ super() }}
11-
{% include "extra_head.html" ignore missing %}
11+
{{ h.get_extra_head_html() }}
1212
{% endblock %}

0 commit comments

Comments
 (0)