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

add commata between author names

parent 8a802a32
No related branches found
No related tags found
1 merge request!45Author cards
<div class="columns"> <div class="columns">
<div class="column"> <div class="column is-two-fifths">
{% 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 -%}
<figure class="image is-48x48 is-inline-block" style="margin-right: -30px;"> <figure class="image is-48x48 is-inline-block" style="margin-right: -30px;">
...@@ -17,10 +17,16 @@ ...@@ -17,10 +17,16 @@
{% endfor %} {% endfor %}
</div> </div>
<ul class="column is-three-fifths"> <ul class="column is-three-fifths">
<div class="title is-5">
{% for author in post.authors -%} {% for author in post.authors -%}
<li class="title is-5 is-inline mr-3"> <p class="is-inline">
{{ authors_data[author].display_name }} {{ authors_data[author].display_name }}
</li> {% if not loop.last %}
,
{% endif %}
</p>
{% endfor %} {% endfor %}
</div>
</ul> </ul>
</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