summaryrefslogtreecommitdiff
path: root/libretube-theme/templates/article_info.html
diff options
context:
space:
mode:
authorsrv <enmanuel.saravia.externo@pandero.com.pe>2025-04-28 17:11:28 -0500
committersrv <enmanuel.saravia.externo@pandero.com.pe>2025-04-28 17:11:28 -0500
commitf35a7b0e70032de2feec9f3bda09da44cf0e1073 (patch)
tree1e0e09581dd3707d0ceb93346452dd14451a8423 /libretube-theme/templates/article_info.html
first commit
Diffstat (limited to 'libretube-theme/templates/article_info.html')
-rw-r--r--libretube-theme/templates/article_info.html68
1 files changed, 68 insertions, 0 deletions
diff --git a/libretube-theme/templates/article_info.html b/libretube-theme/templates/article_info.html
new file mode 100644
index 0000000..cd6e949
--- /dev/null
+++ b/libretube-theme/templates/article_info.html
@@ -0,0 +1,68 @@
+<!-- post footer -->
+<footer class="card-content-footer mb-4">
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#calendar" />
+ </svg>
+ </span>
+ {% set año = article.date|strftime('%Y') %}
+ {% set mes = article.date|strftime('%m') %}
+ {% set nombre_mes = article.date|strftime('%B') %}
+ <time class="entry-date published"
+ datetime="{{ article.date.isoformat() }}" itemprop="datePublished">
+ <small>
+ {{ article.date|strftime('%a %-d') }}
+ <a href="{{ SITEURL }}/archives/{{ año }}/{{ mes }}/"
+ title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}">
+ {{ nombre_mes }}
+ </a>
+ <a href="{{ SITEURL }}/archives/{{ año }}/"
+ title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }}
+ </a>
+ </small>
+ </time>
+
+ {% if article.modified %}
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#calendar" />
+ </svg>
+ </span>
+ <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>
+ {% endif %}
+
+ {% if not HIDE_AUTHORS and article.authors %}
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#user" />
+ </svg>
+ </span>
+ {% for author in article.authors %}
+ <small itemprop="director" itemscope itemtype="https://schema.org/Person">
+ <a href="{{ SITEURL }}/{{ author.url }}"
+ title="{% trans %}Autor del artículo{% endtrans %}"
+ itemprop="name">{{ author }}</a>{% if not loop.last %}, {% endif %}
+ </small>
+ {% endfor %}
+ {% endif %}
+
+ {% import 'translations.html' as translations with context %}
+ {% if translations.translations_for(article) %}
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#translate" />
+ </svg>
+ </span>
+ <small>
+ {{ translations.translations_for(article) }}
+ </small>
+ {% else %}
+ {% endif %}
+
+</footer>
+<!-- end of post footer -->
+<!-- /.post-info -->