aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/base.html
diff options
context:
space:
mode:
authorDennis Fink2026-10-31 19:07:58 +0100
committerDennis Fink2026-10-31 19:07:58 +0100
commit0afc76fb78518bf8185c02e548e83e63c8bb0153 (patch)
tree0fc9a08b6fde613492378ed694f0d65f32a69be9 /webmentions_ssg/templates/base.html
parent95a13558fb9c3e083cdf43206f3bfa328631761b (diff)
downloadwebmentions-ssg-0afc76fb78518bf8185c02e548e83e63c8bb0153.tar.gz
webmentions-ssg-0afc76fb78518bf8185c02e548e83e63c8bb0153.zip
chore(core): add djlint template tooling
Add djlint to the development toolchain with Jinja, CSS, and JavaScript formatting rules so template style can be checked and normalized consistently. Reformat existing templates to match the configured conventions.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/base.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/webmentions_ssg/templates/base.html b/webmentions_ssg/templates/base.html
index 15739ab..19412ed 100644
--- a/webmentions_ssg/templates/base.html
+++ b/webmentions_ssg/templates/base.html
@@ -20,6 +20,7 @@ SPDX-License-Identifier: BSD-3-Clause
type="image/png"
sizes="32x32"
href="{{ url_for('static', filename='images/favicon.png') }}">
+
{% block styles %}
<!-- Bootstrap CSS -->
{{ bootstrap.load_css() }}
@@ -31,7 +32,7 @@ SPDX-License-Identifier: BSD-3-Clause
<header>
<nav class="navbar bg-primary py-1">
<div class="container-fluid px-3">
- <a class="navbar-brand fs-6 mb-0" href="{{ url_for("root.index") }}">
+ <a class="navbar-brand fs-6 mb-0" href="{{ url_for('root.index') }}">
<img src="{{ url_for('static', filename='images/logo.svg') }}"
width="30"
height="30"
@@ -45,7 +46,7 @@ SPDX-License-Identifier: BSD-3-Clause
href='{{ url_for("root.received") }}'>Received</a>
<a class="nav-link{% if request.endpoint == 'root.sent' %} active{% endif %}"
href='{{ url_for("root.sent") }}'>Sent</a>
- <form action="{{ url_for("root.logout") }}" method="post" class="m-0">
+ <form action="{{ url_for('root.logout') }}" method="post" class="m-0">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button type="submit" class="nav-link border-0 bg-transparent">Logout</button>
</form>
@@ -54,13 +55,14 @@ SPDX-License-Identifier: BSD-3-Clause
</div>
</nav>
</header>
- <div class="mt-4">{{ render_messages(container=True) }}</div>
- <div class="container py-4">
- {% block content %}{% endblock %}
- </div>
- {% block scripts %}
- <!-- Optional JavaScript -->
- {{ bootstrap.load_js() }}
- {% endblock %}
-</body>
+ <div class="mt-4">{{ render_messages(container=True) }}</div>
+ <div class="container py-4">
+ {% block content %}{% endblock %}
+ </div>
+
+ {% block scripts %}
+ <!-- Optional JavaScript -->
+ {{ bootstrap.load_js() }}
+ {% endblock %}
+ </body>
</html>