From fa001c23a1c26d513eb6347ca2aa6bb8a5f2702c Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Mon, 7 Nov 2016 12:05:38 +0300 Subject: [PATCH] Support multiple authors, via the :author:/:authors: metadata field --- alchemy/templates/article.html | 8 ++++++-- alchemy/templates/index.html | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 2fd6a0e..4ca52b1 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -20,9 +20,13 @@
  • {{ article.locale_date }}
  • ·
  • {{ article.category }}
  • - {% if article.author and SHOW_ARTICLE_AUTHORS %} + {% if article.authors and SHOW_ARTICLE_AUTHORS %}
  • ·
  • -
  • By {{ article.author }}
  • +
  • By + {% for author in article.authors %} + {{ author }}{% if not loop.last %}, {% endif %} + {% endfor %} +
  • {% endif %} {% if article.tags %}
  • ·
  • diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index 8d1249f..aa943fc 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -19,8 +19,12 @@ All Articles