]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Fix icons on buttons
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Jul 2023 08:57:43 +0000 (08:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 27 Jul 2023 08:57:43 +0000 (08:57 +0000)
buttons don't need the icon-text span.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/post.html

index ea9d51d3b48e1091ac79f791a1a45d09c3c3acd8..00898f612d1f366b823c04b6cc21ccff403a714c 100644 (file)
                                        <div class="buttons are-medium">
                                                {% if "lightningwirelabs.com" in post.tags and post.link %}
                                                        <a class="button is-lwl is-fullwidth" href="{{ post.link }}">
-                                                               <span class="icon-text">
-                                                                       <span class="icon">
-                                                                               <i class="fas fa-external-link-alt"></i>
-                                                                       </span>
-                                                                       <span>{{ _("Go to Lightning Wire Labs") }}</span>
+                                                               <span class="icon">
+                                                                       <i class="fas fa-external-link-alt"></i>
                                                                </span>
+                                                               <span>{{ _("Go to Lightning Wire Labs") }}</span>
                                                        </a>
                                                {% end %}
 
                                                {% if post.release or "donate" in post.tags %}
                                                        <a class="button is-primary is-fullwidth" href="/donate">
-                                                               <span class="icon-text">
-                                                                       <span class="icon">
-                                                                               <i class="fas fa-heart"></i>
-                                                                       </span>
-                                                                       <span>{{ _("Donate") }}</span>
+                                                               <span class="icon">
+                                                                       <i class="fas fa-heart"></i>
                                                                </span>
+                                                               <span>{{ _("Donate") }}</span>
                                                        </a>
                                                {% end %}
 
                                                {% if post.release %}
                                                        <a class="button is-dark is-fullwidth" href="/downloads/{{ post.release.slug }}">
-                                                               <span class="icon-text">
-                                                                       <span class="icon">
-                                                                               <i class="fas fa-download"></i>
-                                                                       </span>
-                                                                       <span>{{ _("Download %s") % post.release }}</span>
+                                                               <span class="icon">
+                                                                       <i class="fas fa-download"></i>
                                                                </span>
+                                                               <span>{{ _("Download %s") % post.release }}</span>
                                                        </a>
                                                {% end %}
                                        </div>