{% extends "base.html" %} {% block head %} {% block title %} {% set len_period = period|length %} {%- if len_period == 1 -%}