Browse Source

Account for multiple authors in styling

Edd Baldry 8 years ago
parent
commit
0733a0bee6
2 changed files with 5 additions and 1 deletions
  1. 4 0
      bakerydemo/static/css/main.css
  2. 1 1
      bakerydemo/templates/blog/blog_page.html

+ 4 - 0
bakerydemo/static/css/main.css

@@ -610,6 +610,10 @@ time.location-time {
 .blog-avatars {
     margin-bottom: 20px;
 }
+.blog-avatars .author {
+  display: inline-block;
+  margin-right: 30px;
+}
 
 /* Blog list view */
 .blog-tags>li {

+ 1 - 1
bakerydemo/templates/blog/blog_page.html

@@ -27,7 +27,7 @@
                 {% if page.authors %}
                 <div class="blog-avatars">
                     {% for author in page.authors %}
-                        {% image author.image fill-50x50-c100 class="blog-avatar" %} {{ author.first_name }} {{ author.last_name }}
+                        <div class="author">{% image author.image fill-50x50-c100 class="blog-avatar" %} {{ author.first_name }} {{ author.last_name }}</div>
                     {% endfor %}
                 </div>
                 {% endif %}