diff --git a/static/css/elegant.css b/static/css/elegant.css index e6abf437..a38dc13f 100644 --- a/static/css/elegant.css +++ b/static/css/elegant.css @@ -647,11 +647,17 @@ div.figure.align-left, } /* Author blurb */ .author_blurb { - font-variant: small-caps; font-style: italic; + padding: 5px 0; +} +.author_blurb img { + padding: 0; + width: 32px; + height: 32px; } .author_name { font-weight: bold; + font-variant: small-caps; } /* Github Gist */ .gist table { diff --git a/templates/_includes/article_author.html b/templates/_includes/article_author.html index a73c40c9..b529e15e 100644 --- a/templates/_includes/article_author.html +++ b/templates/_includes/article_author.html @@ -1,11 +1,26 @@ {% macro article_author(article) %} -
+{% set tag = namespace({'open' : true, 'close': false}) %} +{% for author in article.authors %} +{% if author|string in AUTHORS %} +{% if tag.open %} +

- {% for author in article.authors %} - {% if author|string in AUTHORS %} - {{ author }} - - {{ AUTHORS.get(author|string).blurb }}
- {% endif %} + {% set tag.open = false %} + {% set tag.close = true %} + {% endif %} + {% set auth = AUTHORS.get(author|string) %} + + {% endif %} {% endfor %} -
+ {% if tag.close %} + +{% endif %} {% endmacro %}