Skip to content

Commit

Permalink
bugfix: revise fix for duplicate footer on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Oct 21, 2024
1 parent bbfaf85 commit 144bb9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@
{% block viewer %}{% endblock viewer %}
</main>

{% include '_home/_footer.html' %}
{# prevent duplicate footer on homepage bug #}
{% if request.path != '/'%}
{% include '_home/_footer.html' %}
{% endif %}
</div>

<!-- Matomo Image Tracker-->
Expand Down
1 change: 1 addition & 0 deletions apps/templates/cms/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
{% if page.featured_video_url %}
{% include '_home/_video.html' %}
{% endif %}
{% include '_home/_footer.html' %}
</div>
</div>
{% endif %}
Expand Down

0 comments on commit 144bb9d

Please sign in to comment.