]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Fix header link leading to main page
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Nov 2020 13:17:46 +0000 (13:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Nov 2020 13:17:46 +0000 (13:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index 190b38c38b396dc46337168bdd3e697e0b95a754..bf87f64afd4e58a88145c698dff3844e5d147dc0 100644 (file)
        <body id="page-top" class="{{ hostname.replace(".", "-") }}">
                <nav class="navbar navbar-light navbar-expand-lg">
                        <div class="container">
-                               <a class="navbar-brand" href="/">
-                                       {% if hostname == "www.ipfire.org" and request.path.startswith("/blog") %}
+                               {% if hostname == "www.ipfire.org" and request.path.startswith("/blog") %}
+                                       <a class="navbar-brand" href="/blog">
                                                IPFire<span class="text-primary">_</span>Blog
-                                       {% else %}
+                                       </a>
+                               {% else %}
+                                       <a class="navbar-brand" href="/">
                                                IPFire<span class="text-primary">_</span>
-                                       {% end %}
 
-                                       {% if hostname == "fireinfo.ipfire.org" %}
-                                               {{ _("Fireinfo") }}
-                                       {% elif hostname == "location.ipfire.org" %}
-                                               {{ _("Location") }}
-                                       {% elif hostname == "mirrors.ipfire.org" %}
-                                               {{ _("Mirrors") }}
-                                       {% elif hostname == "people.ipfire.org" %}
-                                               {{ _("People") }}
-                                       {% elif hostname == "wiki.ipfire.org" %}
-                                               {{ _("Wiki") }}
-                                       {% end %}
-                               </a>
+                                               {% if hostname == "fireinfo.ipfire.org" %}
+                                                       {{ _("Fireinfo") }}
+                                               {% elif hostname == "location.ipfire.org" %}
+                                                       {{ _("Location") }}
+                                               {% elif hostname == "mirrors.ipfire.org" %}
+                                                       {{ _("Mirrors") }}
+                                               {% elif hostname == "people.ipfire.org" %}
+                                                       {{ _("People") }}
+                                               {% elif hostname == "wiki.ipfire.org" %}
+                                                       {{ _("Wiki") }}
+                                               {% end %}
+                                       </a>
+                               {% end %}
 
                                {% block menu %}
                                        {% if hostname == "www.ipfire.org" and request.path.startswith("/blog") %}