]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Add author's avatar
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Oct 2018 08:45:54 +0000 (08:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Oct 2018 08:45:54 +0000 (08:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/author.html

index b4009f01a13307c60fff40ac47a54c5cceecd639..545f820237861fc239cf649383d4af9bb92f5f8d 100644 (file)
@@ -5,7 +5,13 @@
 {% block main %}
        <div class="card">
                <div class="card-body">
-                       <h5>{{ _("%s's posts") % author.name }}</h5>
+                       <div class="row justify-content-center my-5">
+                               <div class="col-12 col-sm-8 col-md-6 col-xl-4 d-flex flex-column align-items-center">
+                                       <img class="img-fluid rounded-circle mb-4" src="{{ author.avatar_url(512) }}" alt="{{ author }}" />
+
+                                       <h4>{{ author }}</h4>
+                               </div>
+                       </div>
 
                        {% module BlogList(posts) %}
                </div>