Skip to content
Snippets Groups Projects
Commit 8a802a32 authored by codecraft's avatar codecraft :crocodile:
Browse files

introduce overlapping author images

parent e78fdc42
No related branches found
No related tags found
1 merge request!45Author cards
<div class="columns">
<div class="column">
{% set authors_data = load_data(path="authors.json") -%} {% set authors_data = load_data(path="authors.json") -%}
{% for author in post.authors -%} {% for author in post.authors -%}
<div class="media"> <figure class="image is-48x48 is-inline-block" style="margin-right: -30px;">
<div class="media-left">
<figure class="image is-48x48">
{% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%} {% set meta = get_image_metadata(path="authors/" ~ author ~ ".jpg", allow_missing=true) -%}
{% if meta -%} {% if meta -%}
{% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%} {% set image = resize_image(path="authors/" ~ author ~ ".jpg", width=48, height=48) -%}
...@@ -14,11 +14,13 @@ ...@@ -14,11 +14,13 @@
</span> </span>
{% endif -%} {% endif -%}
</figure> </figure>
{% endfor %}
</div> </div>
<div class="media-content"> <ul class="column is-three-fifths">
<p class="title is-4"> {% for author in post.authors -%}
<li class="title is-5 is-inline mr-3">
{{ authors_data[author].display_name }} {{ authors_data[author].display_name }}
</p> </li>
</div>
</div>
{% endfor %} {% endfor %}
</ul>
</div>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
<div class="card-footer"> <div class="card-footer">
<div class="card-footer-item"> <div class="card-footer-item">
<div class=""> <div class="is-fullwidth">
{% include "blog/author_media.html" -%} {% include "blog/author_media.html" -%}
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment