fix: add named endblocks for template consistency
All checks were successful
Build and Deploy Static Site (Pride Theme) / build (push) Successful in 58s
Build and Deploy Static Site / build (push) Successful in 1m0s

Updated templates to use named endblocks for improved clarity and
consistency in the HTML structure. This enhances maintainability
and ensures that closing tags are explicitly associated with their
respective block names, reducing potential confusion.
This commit is contained in:
Kumi 2024-09-26 19:17:16 +02:00
parent eabea6e412
commit 2ce269136f
Signed by: kumi
GPG key ID: ECBCC9082395383F
5 changed files with 11 additions and 9 deletions

View file

@ -29,7 +29,7 @@
content="https://private.coffee/assets/img/logo-inv_grad.png" /> content="https://private.coffee/assets/img/logo-inv_grad.png" />
<link rel="icon" type="image/png" href="assets/img/logo-inv_grad.png" /> <link rel="icon" type="image/png" href="assets/img/logo-inv_grad.png" />
<title> <title>
{% block title %}{% endblock %} {% block title %}{% endblock title %}
- Private.coffee</title> - Private.coffee</title>
<link rel="stylesheet" href="assets/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="assets/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/base.css?v={{ timestamp }}" /> <link rel="stylesheet" href="assets/css/base.css?v={{ timestamp }}" />

View file

@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Home{% endblock %} {% block title %}Home{% endblock title %}
{% block content {% block content
%} %}
<header class="bg-primary-gradient"> <header class="bg-primary-gradient">
@ -165,4 +165,4 @@
</div> </div>
</div> </div>
</section> </section>
{% endblock %} {% endblock content %}

View file

@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Legal Notice{% endblock %} {% block title %}Legal Notice{% endblock title %}
{% block content %} {% block content %}
<section> <section>
<div class="container py-5"> <div class="container py-5">
@ -40,4 +40,4 @@
</div> </div>
</div> </div>
</section> </section>
{% endblock %} {% endblock content %}

View file

@ -8,4 +8,4 @@
If you find our services useful, please consider supporting us through a donation or becoming a supporting member. This will help us keep our free services running and improve our offerings. See below for more information. If you find our services useful, please consider supporting us through a donation or becoming a supporting member. This will help us keep our free services running and improve our offerings. See below for more information.
</p> </p>
</div> </div>
{% endblock %} {% endblock serviceinfo %}

View file

@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Membership / Donations{% endblock %} {% block title %}
Membership / Donations
{% endblock title %}
{% block content %} {% block content %}
<div class="container my-5"> <div class="container my-5">
<div class="text-center mb-5"> <div class="text-center mb-5">
@ -11,7 +13,7 @@
our services and reach more people. our services and reach more people.
</p> </p>
</div> </div>
{% block serviceinfo %}{% endblock %} {% block serviceinfo %}{% endblock serviceinfo %}
<div class="row"> <div class="row">
<div class="col-md-4 mb-4"> <div class="col-md-4 mb-4">
<div class="card shadow-sm"> <div class="card shadow-sm">
@ -110,4 +112,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock content %}