Skip to content
Discussion options

You must be logged in to vote

There's currently no variable, the content hashes are generated as part of the build. The general advice is to use template block overrides. Overriding base.html may bring a lot of other problems. Thus, you could just extend the respective block with a super() call, as we do in the overrides for our own documentation:

<!-- Theme-related JavaScript -->
{% block scripts %}
{{ super() }}
<!-- Extra JavaScript -->
<script src="{{ 'overrides/assets/javascripts/bundle.js' | url }}"></script>
{% endblock %}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlphaJack
Comment options

Answer selected by AlphaJack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants