Add period_num var for period_archives template

This makes it easier to create templates that are language-agnostic
or need extra processing for the date period.
This commit is contained in:
Petr Viktorin 2020-12-29 19:22:37 +01:00 committed by Justin Mayer
commit 487da3550b
3 changed files with 7 additions and 0 deletions

View file

@ -327,6 +327,8 @@ period A tuple of the form (`year`, `month`, `day`) that
given year. It contains both `year` and `month`
if the time period is over years and months and
so on.
period_num A tuple of the form (``year``, ``month``, ``day``),
as in ``period``, except all values are numbers.
=================== ===================================================