article_info.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- post footer -->
  2. <footer class="card-content-footer mb-4">
  3. <span class="soumaicon text-info">
  4. <svg>
  5. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#calendar" />
  6. </svg>
  7. </span>
  8. {% set año = article.date|strftime('%Y') %}
  9. {% set mes = article.date|strftime('%m') %}
  10. {% set nombre_mes = article.date|strftime('%B') %}
  11. <time class="entry-date published"
  12. datetime="{{ article.date.isoformat() }}" itemprop="datePublished">
  13. <small>
  14. {{ article.date|strftime('%a %-d') }}
  15. <a href="{{ SITEURL }}/archives/{{ año }}/{{ mes }}/"
  16. title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}">
  17. {{ nombre_mes }}
  18. </a>
  19. <a href="{{ SITEURL }}/archives/{{ año }}/"
  20. title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }}
  21. </a>
  22. </small>
  23. </time>
  24. {% if article.modified %}
  25. <span class="soumaicon text-info">
  26. <svg>
  27. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#calendar" />
  28. </svg>
  29. </span>
  30. <span class="edit-link"
  31. title="{{ _('Fecha de modificación') }}">
  32. <small class="screen-reader-text">{{ _('Modificado el %(fecha)s'|format(fecha='</small>
  33. <time class="updated" datetime="%s"><small>%s</small></time>')|format(article.modified.isoformat(), article.locale_modified)) }}
  34. </span>
  35. {% endif %}
  36. {% if not HIDE_AUTHORS and article.authors %}
  37. <span class="soumaicon text-info">
  38. <svg>
  39. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#user" />
  40. </svg>
  41. </span>
  42. {% for author in article.authors %}
  43. <small itemprop="director" itemscope itemtype="https://schema.org/Person">
  44. <a href="{{ SITEURL }}/{{ author.url }}"
  45. title="{% trans %}Autor del artículo{% endtrans %}"
  46. itemprop="name">{{ author }}</a>{% if not loop.last %}, {% endif %}
  47. </small>
  48. {% endfor %}
  49. {% endif %}
  50. {% import 'translations.html' as translations with context %}
  51. {% if translations.translations_for(article) %}
  52. <span class="soumaicon text-info">
  53. <svg>
  54. <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#translate" />
  55. </svg>
  56. </span>
  57. <small>
  58. {{ translations.translations_for(article) }}
  59. </small>
  60. {% else %}
  61. {% endif %}
  62. </footer>
  63. <!-- end of post footer -->
  64. <!-- /.post-info -->