Skip to content

Commit

Permalink
include pageScripts block in layout
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfield-mj committed May 3, 2024
1 parent 0c32fcf commit 5e16813
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions server/views/pages/establishmentRoll.njk
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,7 @@
</table>
</div>
{% endblock %}

{% block pageScripts %}
<script src="/assets/establishment-roll.js"></script>
{% endblock %}
5 changes: 5 additions & 0 deletions server/views/pages/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@
</div>

{% endblock %}

{% block pageScripts %}
<script src="/assets/js/homepage-search.js"></script>
{% endblock %}

4 changes: 0 additions & 4 deletions server/views/partials/homepage/search.njk
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,3 @@
</form>
</div>
</section>

{% block pageScripts %}
<script src="/assets/js/homepage-search.js"></script>
{% endblock %}
4 changes: 3 additions & 1 deletion server/views/partials/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
<script type="module" src="/assets/govukFrontendInit.js"></script>
<script src="/assets/moj/all.js"></script>
<script src="/assets/printPage.js"></script>
<script src="/assets/establishment-roll.js"></script>

{% block pageScripts %}
{% endblock %}
{% endblock %}

{% block footer %}
Expand Down

0 comments on commit 5e16813

Please sign in to comment.