aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-02-23 15:40:17 -0500
committerJesús <heckyel@hyperbola.info>2019-02-23 15:40:17 -0500
commit4088fd03c1dee5d13c86721556b741549b406a05 (patch)
tree33bd51f82d2a433fe3a10c60ec20eb45c1721925
parent64b7375c82b446aafcc39bd61f62707e34191035 (diff)
downloadcl-4088fd03c1dee5d13c86721556b741549b406a05.tar.lz
cl-4088fd03c1dee5d13c86721556b741549b406a05.tar.xz
cl-4088fd03c1dee5d13c86721556b741549b406a05.zip
added author in post
-rw-r--r--cl-theme/templates/article_info.html32
1 files changed, 21 insertions, 11 deletions
diff --git a/cl-theme/templates/article_info.html b/cl-theme/templates/article_info.html
index 854e5c4..f3c6665 100644
--- a/cl-theme/templates/article_info.html
+++ b/cl-theme/templates/article_info.html
@@ -20,26 +20,36 @@
</i>
{% if article.modified %}
- <i class="fa fa-calendar">
- <span class="edit-link"
- title="{{ _('Fecha de modificación') }}">
- <small class="screen-reader-text">{{ _('Modificado el %(fecha)s'|format(fecha='</small>
+ <i class="fa fa-calendar">
+ <span class="edit-link"
+ title="{{ _('Fecha de modificación') }}">
+ <small class="screen-reader-text">{{ _('Modificado el %(fecha)s'|format(fecha='</small>
<time class="updated" datetime="%s"><small>%s</small></time>')|format(article.modified.isoformat(), article.locale_modified)) }}
- </span>
- </i>
+ </span>
+ </i>
{% endif %}
<!-- <i class="fa fa-comment">
<small>20 comments</small>
</i> -->
+ {% if not HIDE_AUTHORS and article.authors %}
+ <i class="fa fa-user-o">
+ {% for author in article.authors %}
+ <small>
+ <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
+ </small>
+ {% endfor %}
+ </i>
+ {% endif %}
+
{% import 'translations.html' as translations with context %}
{% if translations.translations_for(article) %}
- <i class="fa fa-flag">
- <small>
- {{ translations.translations_for(article) }}
- </small>
- </i>
+ <i class="fa fa-flag">
+ <small>
+ {{ translations.translations_for(article) }}
+ </small>
+ </i>
{% else %}
{% endif %}