article_info.html 2.3 KB

12345678910111213141516171819202122232425262728293031
  1. <footer class="entry-footer">
  2. <span class="posted-on" title="{{ _('Fecha de publicación') }}"><span class="screen-reader-text">{{ _('Publicado el') }} </span>
  3. {% set año = article.date|strftime('%Y') %}
  4. {% set mes = article.date|strftime('%m') %}
  5. {% set nombre_mes = article.date|strftime('%B') %}
  6. {% set dia_publicacion = article.date|strftime('%-d') %}
  7. <time class="entry-date published" datetime="{{ article.date.isoformat() }}">{% trans %}{{ dia_publicacion }}{% endtrans %} <a href="{{ SITEURL }}/{{ ARCHIVES_URL}}{{ año }}/{{ mes }}/" title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}">{{ nombre_mes }}</a> <a href="{{ SITEURL }}/{{ ARCHIVES_URL }}{{ año }}/" title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }}</a></time>
  8. </span>
  9. {% if article.modified %}
  10. {% set año_mod = article.modified|strftime('%Y') %}
  11. {% set nombre_mes_mod = article.modified|strftime('%B') %}
  12. {% set dia_mod = article.modified|strftime('%-d') %}
  13. <span class="edit-link" title="{{ _('Fecha de modificación') }}"><span class="screen-reader-text">{{ _('Modificado el %(fecha)s'|format(fecha='</span><time class="updated" datetime="%s">' + _('%(dia)s %(mes)s %(año)s', dia=dia_mod, mes=nombre_mes_mod, año=año_mod) + '</time>')|format(article.modified.isoformat())) }}
  14. </span>
  15. {% endif %}
  16. <span class="cat-links" title="{{ _('Categoría') }}"><span class="screen-reader-text">{{ _('Categoría') }} </span>
  17. <span>{% trans categoria='<a href="%s" title="%s">%s</a>'|format(SITEURL + '/' + article.category.url, _('Artículos en la categoría %(categoria)s', categoria=article.category), article.category) %}En {{ categoria }}{% endtrans %}</span>
  18. </span>
  19. {% include 'taglist.html' %}
  20. <span class="comments-link" title="{{ _('Comentarios') }}">
  21. <a class="hashover-count-link" href="{{ SITEURL }}/{{ article.url }}#hashover"></a>
  22. <span class="screen-reader-text">{{ _('en %(articulo)s', articulo=article.title) }}</span>
  23. </span>
  24. {% import 'translations.html' as translations with context %}
  25. {% if translations.translations_for(article) %}
  26. <span class="icon-language" title="{{ ngettext('Traducción', 'Traducciones', article.translations|length) }}">
  27. {{ translations.translations_for(article) }}
  28. </span>
  29. {% endif %}
  30. </footer><!-- /.post-info -->