]> git.ipfire.org Git - ipfire.org.git/commitdiff
base: Tidy up markup for navbar branding
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Apr 2023 17:28:13 +0000 (17:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Apr 2023 17:28:13 +0000 (17:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index 4ec421505676261087f432f6346b6ef106be53bf..75695c2a30eb5c6a183da565065f15eb8d279e3e 100644 (file)
                        <nav class="navbar" role="navigation" aria-label="main navigation">
                                <div class="container">
                                        <div class="navbar-brand">
-                                               <a class="navbar-item" href="/">
-                                                       {% if hostname.startswith("fireinfo.") %}
-                                                               <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span><span class="is-size-4 has-text-weight-bold">Fireinfo</span>
-                                                       {% elif hostname.startswith("nopaste.") %}
-                                                               <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span><span class="is-size-4 has-text-weight-bold">Nopaste</span>
-                                                       {% elif hostname.startswith("people.") %}
-                                                               <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span><span class="is-size-4 has-text-weight-bold">People</span>
-                                                       {% else %}
-                                                               <span class="is-size-4 has-text-weight-bold">IPFire</span><span class="has-text-primary is-size-4 has-text-weight-bold">_</span>
-                                                       {% end %}
-
-                                                       {% if hostname.startswith("location.") %}
-                                                               {{ _("Location") }}
-                                                       {% elif hostname.startswith("wiki.") %}
-                                                               {{ _("Wiki") }}
-                                                       {% end %}
+                                               <a class="navbar-item is-size-4" href="/">
+                                                       <strong>
+                                                               IPFire<span class="has-text-primary">_</span>
+
+                                                               {% if hostname.startswith("fireinfo.") %}
+                                                                       {{ _("Fireinfo") }}
+                                                               {% elif hostname.startswith("nopaste.") %}
+                                                                       {{ _("Nopaste") }}
+                                                               {% elif hostname.startswith("people.") %}
+                                                                       {{ _("People") }}
+                                                               {% elif hostname.startswith("location.") %}
+                                                                       {{ _("Location") }}
+                                                               {% elif hostname.startswith("wiki.") %}
+                                                                       {{ _("Wiki") }}
+                                                               {% end %}
+                                                       </strong>
                                                </a>
                                                <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarMainMenu">
                                                        <span aria-hidden="true"></span>