From 151c18da13223b41ce061d4ecebe9011ec94817c Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Wed, 9 Nov 2016 20:08:27 +0300 Subject: [PATCH] Add fontawesome icons to article meta --- alchemy/templates/article.html | 28 ++++++++++++++++++---------- alchemy/templates/index.html | 2 +- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 089fded..6ce254f 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -17,25 +17,33 @@
    -
  • {{ article.locale_date }}
  • -
  • ·
  • -
  • {{ article.category }}
  • - {% if article.authors and ARTICLE_AUTHORS %} -
  • ·
  • -
  • By - {% for author in article.authors %} - {{ author }}{% if not loop.last %}, {% endif %} - {% endfor %} +
  • + + {{ article.locale_date }} +
  • +
  • ·
  • +
  • + + {{ article.category }}
  • - {% endif %} {% if article.tags %}
  • ·
  • + {% for tag in article.tags %} #{{ tag }}{% if not loop.last %}, {% endif %} {% endfor %}
  • {% endif %} + {% if article.authors and ARTICLE_AUTHORS %} +
  • ·
  • +
  • + + {% for author in article.authors %} + {{ author }}{% if not loop.last %}, {% endif %} + {% endfor %} +
  • + {% endif %}
{{ article.content }} diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index bc4ff5c..b50ac6d 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -20,7 +20,7 @@ All Articles
{{ article.locale_date }}
{{ article.category }}
{% if article.authors and ARTICLE_AUTHORS %} -
By +
{% for author in article.authors %} {{ author }}{% if not loop.last %}, {% endif %} {% endfor %}