Skip to content

Commit

Permalink
Add head end and body end include files. Empty by default to make it …
Browse files Browse the repository at this point in the history
…easy to insert custom content (HyphaApp#3777)

Allow implementors to add `templates_custom/includes/head_end.html`
and/or `templates_custom/includes/body_end.html` to easily insert things
like tracking code etc. in to `base.html`.
  • Loading branch information
frjo committed Feb 19, 2024
1 parent 6ff53ae commit c98ca4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hypha/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<!-- modules -->
<script type="module" src="{% static 'js/esm/github-relative-time-element-4-3-0.js' %}"></script>
<script type="module" src="{% static 'js/esm/github-filter-input-element-0-1-1.js' %}"></script>
{% include "includes/head_end.html" %}
</head>

<body
Expand Down Expand Up @@ -139,5 +140,6 @@
</script>
{% endif %}
{% endblock sentry_sdk %}
{% include "includes/body_end.html" %}
</body>
</html>
1 change: 1 addition & 0 deletions hypha/templates/includes/body_end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% comment %} Override in templates_custom to add custom content here. {% endcomment %}
1 change: 1 addition & 0 deletions hypha/templates/includes/head_end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% comment %} Override in templates_custom to add custom content here. {% endcomment %}

0 comments on commit c98ca4d

Please sign in to comment.