]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Make unpublished posts grey
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 16:48:32 +0000 (16:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 16:48:32 +0000 (16:48 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/post.html

index be74862da298a45166daa2c32873102a17b30150..226cb2be1fc083657ac955445c9994cf087ef48f 100644 (file)
@@ -37,7 +37,7 @@
 {% block container %}
        {% import ipfire.accounts as accounts %}
 
-       <section class="hero is-primary">
+       <section class="hero {% if post.is_published() %}is-primary{% else %}is-light{% end %}">
                <div class="hero-body">
                        <div class="container">
                                <nav class="breadcrumb is-medium" aria-label="breadcrumbs">