{% for metadata in site.data.books %} {% if metadata.Id == book.Id %} {% assign authors_all = metadata.Author | split: '; ' %} Written by {% for author_raw in authors_all | limit: 3 %} {% assign author_firstlast = author_raw | split: ', ' %} {{ author_firstlast | reverse | join: " " }} {% unless forloop.last == true %} + {% endunless %} {% endfor %} // Published in {{ book.Place }} by {{ book.Publisher }} in {{ book.Date }}{% if book.Edition == book.Date %}. First edtition{% else if book.Edition != "" and book.Edition != nil %} // First published in {{ book.Edition }}{% endif %} {% if book.Archive != "" and book.Archive != nil %}// Retrieved by {{ book.Archive }}{% endif %} {% endif %} {% endfor %}