{% extends "base.html" %} {% block html_lang %}{{ article.lang }}{% endblock %} {% block extra_head %} {% endblock %} {% block head %} {{ super() }} {% import 'translations.html' as translations with context %} {% if translations.entry_hreflang(article) %} {{ translations.entry_hreflang(article) }} {% endif %} {% if article.modified %} {% endif %} {% set og_description = article.summary.split(ANOTHER_READ_MORE_LINK_FORMAT[:6])[0][3:]|striptags|escape %} {% set OG_DESC_LENGTH = 175 %} {% if og_description|length >= OG_DESC_LENGTH %} {# Quita la última palabra para no dejarla incompleta #} {% set og_description = og_description[:OG_DESC_LENGTH].split(' ')[:-1]|join(' ') %} {% if not og_description[-1] in ['.', '?', ':', '!'] %} {% set og_description = og_description + '…' %} {% endif %} {% endif %} {% if article.image %} {% endif %} {% for tag in article.tags %} {% endfor %} {% if article.styles %} {% for style in article.styles %} {{ style|format(SITEURL) }} {% endfor %} {% endif %} {% if article.js %} {% for script in article.js %} {% if 'top' in script[-7:] %} {{ script[:-5]|format(SITEURL) }} {% endif %} {% endfor %} {% endif %} {% endblock %} {% block title %}{{ article.title|striptags }}{% endblock %} {% block content %}