]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Try something to encourage people to sign up & subscribe
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2023 16:55:07 +0000 (16:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2023 16:55:07 +0000 (16:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/post.html

index ceb23428776c45dbfd2e10abcee12d3ccbe0bbb3..f057fe5e0854847c27a787611c2b6f6a18abcd82 100644 (file)
                </div>
        </section>
 
+       {# Encourage people to sign up & subscribe... #}
+       {% if not current_user or not current_user.consents_to_promotional_emails %}
+               <section class="has-background-light">
+                       <div class="container">
+                               <p class="has-text-centered px-2 py-1">
+                                       {{ _("Do you like what you are reading?") }}
+                                       {{ _("Subscribe to our newsletter and don't miss out on the latest...") }}
+
+                                       &nbsp;
+
+                                       {% if not current_user %}
+                                               <a class="has-text-weight-bold" href="/register">
+                                                       {{ _("Join Now") }}
+                                               </a>
+                                       {% else %}
+                                               <a class="has-text-weight-bold" href="/subscribe">
+                                                       {{ _("Subscribe Now") }}
+                                               </a>
+                                       {% end %}
+                               </p>
+                       </div>
+               </section>
+       {% end %}
+
        <section class="section">
                <div class="container">
                        <div class="columns is-justify-content-space-between">