Hide footer on agent pages only

- Add conditional logic to show footer on all pages except agent pages
- Use request.path check to detect '/agents/' URLs
- Footer still appears on home, marketplace, pricing, and other pages
- Only hidden on individual agent detail pages

Benefits:
- Cleaner agent page experience
- Footer remains for marketing/info pages
- Simple URL-based detection
This commit is contained in:
Claude 2025-07-16 23:11:13 +05:30
parent 55214b1dc3
commit 7a3d0b65ee

View File

@ -52,7 +52,8 @@
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
<!-- Footer --> <!-- Footer (hidden on agent pages) -->
{% if not request.resolver_match.url_name == 'agent_detail' and '/agents/' not in request.path %}
<footer class="footer" id="footer"> <footer class="footer" id="footer">
<div class="footer-container"> <div class="footer-container">
<!-- Main Footer Content --> <!-- Main Footer Content -->
@ -117,6 +118,7 @@
</div> </div>
</div> </div>
</footer> </footer>
{% endif %}
<!-- Privacy Policy Modal --> <!-- Privacy Policy Modal -->
<div class="modal-overlay" id="privacy-modal"> <div class="modal-overlay" id="privacy-modal">