Refactoring SEO

This commit is contained in:
Jesús
2019-11-23 18:48:32 -05:00
parent 67beaca9bc
commit edae8a2e59
8 changed files with 207 additions and 159 deletions

View File

@@ -1,5 +1,19 @@
{% extends "base.html" %}
{% block head %}
{% block title %}
{% set len_period = period|length %}
{%- if len_period == 1 -%}
<title>{{ _('Archivos de %(año)d', año=period[0]) }} - {{SITENAME}}</title>
{%- elif len_period == 2 -%}
<title>{{ _('Archivos de %(mes)s de %(año)d', año=period[0], mes=period[1]) }} - {{SITENAME}}</title>
{%- elif len_period == 3 -%}
<title>{{ _('Archivos del %(dia)d de %(mes)s de %(año)d', año=period[0], mes=period[1], dia=period[2]) }} - {{SITENAME}}</title>
{%- endif -%}
{% endblock %}
{{ super() }}
{% endblock %}
{% block menu_header %}{% endblock menu_header %}
{% block content %}