diff options
| author | Dennis Fink | 2026-10-28 22:27:40 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-28 22:27:40 +0100 |
| commit | 6d984d247444ea547bcd2b6482ed78da4da0a6ae (patch) | |
| tree | f961c9c9d59f4e7da4981e8387ab8d77265d4845 /webmentions_ssg/templates/base.html | |
| parent | c6a40d741c41cdc0af38eef89247c2120dcb6270 (diff) | |
| download | webmentions-ssg-6d984d247444ea547bcd2b6482ed78da4da0a6ae.tar.gz webmentions-ssg-6d984d247444ea547bcd2b6482ed78da4da0a6ae.zip | |
feat(core): add application branding
Diffstat (limited to 'webmentions_ssg/templates/base.html')
| -rw-r--r-- | webmentions_ssg/templates/base.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/webmentions_ssg/templates/base.html b/webmentions_ssg/templates/base.html index 1275391..fabfaaf 100644 --- a/webmentions_ssg/templates/base.html +++ b/webmentions_ssg/templates/base.html @@ -3,7 +3,6 @@ SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me> SPDX-License-Identifier: BSD-3-Clause --> - {% from "bootstrap5/utils.html" import render_messages %} <!DOCTYPE html> <html lang="en" data-bs-theme="dark"> @@ -13,6 +12,14 @@ SPDX-License-Identifier: BSD-3-Clause <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <link rel="icon" + type="image/svg+xml" + sizes="any" + href="{{ url_for('static', filename='images/logo.svg') }}"> + <link rel="icon" + type="image/png" + sizes="32x32" + href="{{ url_for('static', filename='images/favicon.png') }}"> {% block styles %} <!-- Bootstrap CSS --> {{ bootstrap.load_css() }} @@ -24,7 +31,13 @@ SPDX-License-Identifier: BSD-3-Clause <header> <nav class="navbar bg-primary py-1"> <div class="container-fluid px3"> - <a class="navbar-brand fs-6 mb-0" href="{{ url_for("root.index") }}">Webmentions</a> + <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" + class="d-inline-block align-center"> + Webmentions + </a> {% if current_user.is_authenticated %} <div class="navbar-nav flex-row gap-3"> <a class="nav-link{% if request.endpoint == 'root.received' %} active{% endif %}" @@ -40,8 +53,7 @@ SPDX-License-Identifier: BSD-3-Clause </header> <div class="mt-4">{{ render_messages(container=True) }}</div> <div class="container py-4"> - {% block content %} - {% endblock %} + {% block content %}{% endblock %} </div> {% block scripts %} <!-- Optional JavaScript --> |
