extra_head template hook. This will allow plugins to add extra js/css more easily.
This commit sponsored by Moritz Berberich. Thank you!
This commit is contained in:
parent
5a05016896
commit
f6d1d28d45
@ -36,7 +36,14 @@
|
|||||||
<script src="{{ request.staticdirect('/js/extlib/html5shiv.js') }}"></script>
|
<script src="{{ request.staticdirect('/js/extlib/html5shiv.js') }}"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
|
{# For clarification, the difference between the extra_head.html template
|
||||||
|
# and the extra_head template hook is that the former should be used by
|
||||||
|
# themes and the latter should be used by plugins.
|
||||||
|
# The reason is that only one thing can override extra_head.html...
|
||||||
|
# but multiple plugins can hook into the template hook.
|
||||||
|
#}
|
||||||
{% include "mediagoblin/extra_head.html" %}
|
{% include "mediagoblin/extra_head.html" %}
|
||||||
|
{% template_hook("extra_head") %}
|
||||||
|
|
||||||
{% block mediagoblin_head %}
|
{% block mediagoblin_head %}
|
||||||
{% endblock mediagoblin_head %}
|
{% endblock mediagoblin_head %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user