From: Michael Tremer Date: Wed, 26 Jul 2023 15:22:14 +0000 (+0000) Subject: blog: Encourage people to sign up & subscribe to the newsletter X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d71bfafda2d94c3d9e4fdcf455d0ed2f79fbbd4a;p=ipfire.org.git blog: Encourage people to sign up & subscribe to the newsletter Signed-off-by: Michael Tremer --- diff --git a/src/sass/main.sass b/src/sass/main.sass index 5bcbde92..5401a508 100644 --- a/src/sass/main.sass +++ b/src/sass/main.sass @@ -75,3 +75,8 @@ $section-padding-desktop: 3rem 0.5rem color: $grey &:hover color: $black + +// Used to wrap text on buttons +.wrap-text + height: max-content; + white-space: inherit; diff --git a/src/templates/blog/index.html b/src/templates/blog/index.html index ef5b666f..422c9b89 100644 --- a/src/templates/blog/index.html +++ b/src/templates/blog/index.html @@ -67,32 +67,57 @@
+ {# Show a button to sign up for anonymous users #} + {% if not current_user %} + + + {# Show a button to subscribe if users are logged in, but not yet subscribed #} + {% elif current_user and not current_user.consents_to_promotional_emails %} + + {% end %} +
Follow Us!
-
-
- - - -
-
- - - +
+
+
+ + + +
+
+ + + +
+
+ + + +
-
- - - -
-
-
-
- - - +
+
+ + + +