zalsaeed / cgav

Certificate Generation and Verification
GNU General Public License v3.0
3 stars 1 forks source link

` base.html ` file is not rendering correctly when extended in another HTML file #4

Closed wesamhamad closed 8 months ago

wesamhamad commented 8 months ago

Issue Description:

Problem

The base.html file is not rendering correctly when extended in another HTML file. Styling and essential elements such as the navbar and footer are not applied or displayed as expected.

Steps to Reproduce

  1. Extend base.html in a template using the following directives:
    {% extends 'base.html' %}
    {% block body %}
        <!-- Content of the specific page goes here -->
    {% endblock %}
  2. Open the extended page in a browser.

Expected Behavior

The page should render with correct styling, including the navbar and footer from base.html.

Actual Behavior

The styling and essential elements are missing when extending base.html. The issue persists unless the following block is explicitly added into base.html :

   <!-- Navbar  -->
   {% block body %}{% endblock %}
   <!-- Footer -->