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
commit 5a74df9fcd
4 changed files with 10 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.
=================== ===================================================