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 | |
| parent | c6a40d741c41cdc0af38eef89247c2120dcb6270 (diff) | |
| download | webmentions-ssg-6d984d247444ea547bcd2b6482ed78da4da0a6ae.tar.gz webmentions-ssg-6d984d247444ea547bcd2b6482ed78da4da0a6ae.zip | |
feat(core): add application branding
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/templates/base.html | 20 | ||||
| -rw-r--r-- | webmentions_ssg/templates/login.html | 1 | ||||
| -rw-r--r-- | webmentions_ssg/templates/sent_source.html | 2 | ||||
| -rw-r--r-- | webmentions_ssg/templates/status.html | 1 |
4 files changed, 17 insertions, 7 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 --> diff --git a/webmentions_ssg/templates/login.html b/webmentions_ssg/templates/login.html index 9b9884e..3c40ea6 100644 --- a/webmentions_ssg/templates/login.html +++ b/webmentions_ssg/templates/login.html @@ -3,7 +3,6 @@ SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me> SPDX-License-Identifier: BSD-3-Clause --> - {% extends "base.html" %} {% set title = "Login" %} {% from "bootstrap5/form.html" import render_form %} diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index 45fd5cb..e840f8f 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -7,7 +7,7 @@ SPDX-License-Identifier: BSD-3-Clause {% from "bootstrap5/pagination.html" import render_pagination %} {% block content %} <div class="mb-3"> - <a href="{{ url_for("root.sent") }}">← Back to sources</a> + <a href="{{ url_for("root.sent") }}">← Back to sources</a> </div> <div class="d-flex justify-content-between align-items-start mb-3"> <h1 class="mb-0">Source Details</h1> diff --git a/webmentions_ssg/templates/status.html b/webmentions_ssg/templates/status.html index 9140c95..437a507 100644 --- a/webmentions_ssg/templates/status.html +++ b/webmentions_ssg/templates/status.html @@ -3,7 +3,6 @@ SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me> SPDX-License-Identifier: BSD-3-Clause --> - {% extends "base.html" %} {% from "bootstrap5/utils.html" import render_icon %} {% block content %} |
