diff --git a/_layouts/post.html b/_layouts/post.html index afa3422..a727980 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -12,19 +12,43 @@

{{ page.title }}

- {% if page.author %} -

- By - {% assign author = site.data.authors[page.author] %} - {% if author %} - - {{ page.author }} - - {% else %} - {{ page.author }} - {% endif %} -

- {% endif %} +

+ {%- if page.authors -%} + Written by + {%- for author in page.authors -%} + {%- assign data = site.data.authors[author] -%} + {%- if data -%} + + {{author -}} + + {%- else -%} + {{ author -}} + {%- endif -%} + + {%- if forloop.last == false -%} + , + {%- endif -%} + {%- endfor -%} + {%- endif -%} + + {%- if page.editors -%} +
Edited by + {%- for editor in page.editors -%} + {% assign data = site.data.authors[editor] %} + {% if data %} + + {{editor -}} + + {% else %} + {{ editor -}} + {% endif %} + + {%- if forloop.last == false -%} + , + {%- endif -%} + {%- endfor -%} + {%- endif -%} +

{% for tagname in page.tags %} {% assign tag = site.my_tags | where: "slug", tagname | first %}