{% extends "base.html" %} {% block html_lang %}{{ article.lang }}{% endblock %} {% block head %} {% block title %} {{ article.title }} - {{SITENAME}} {% endblock %} {{ super() }} {% import 'translations.html' as translations with context %} {% if translations.entry_hreflang(article) %} {{ translations.entry_hreflang(article) }} {% endif %} {% 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 %} {% block seo %} {% set seo_description = article.summary|striptags %} {% set SEO_DESC_LENGTH = 175 %} {% if seo_description|length >= SEO_DESC_LENGTH %} {# Quita la última palabra para no dejarla incompleta #} {% set seo_description = seo_description[:SEO_DESC_LENGTH].split(' ')[:-1]|join(' ') %} {% if not seo_description[-1] in ['.', '?', ':', '!'] %} {% set seo_more = seo_description + '…' %} {% set seo_description = seo_more|replace('"','') %} {% endif %} {% endif %} {% if article.modified %} {% endif %} {% endblock %} {% endblock %} {% block content %}

{{ article.title }}

{% if article.toc %} {% endif %} {{ article.content }}
{% include 'comments.html' %}
{% endblock %}