summaryrefslogtreecommitdiffstatshomepage
path: root/templates/tags (follow)
Commit message (Collapse)AuthorAgeLines
* templates: Simplify Tera blocksWolfgang Müller2021-06-24-2/+2
| | | | | We don't need to reference the block name in the 'endblock' statement if blocks are not nested.
* templates: Consolidate blocks into base templateWolfgang Müller2021-06-16-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This is the first in a series of commits that will attempt to clean up and simplify the templates, most of which were put together hastily. One particular egregious example of this is how Tera blocks are employed to set per-page titles, provide banner descriptions and links, and include additional RSS feeds. These elements are all outside the normal 'content' block provided by the base template. Almost always they contain only one line of text. This solution was chosen because there did not seem to be a cleaner way of having per-page variables in the base template. This is a problem especially for the 'single' and list' taxonomy pages which do not even have front matter (and therefore cannot carry additional metadata). Furthermore, we want to keep each page's front matter as minimal as possible and avoid hard-coding a post description of "post № <X>". Instead rely on the fact that each type of page is identifiable in the base template by the variables that are set in it. The index carries the 'section' variable, pages carry 'page', a single taxonomy term carries 'term', and a single taxonomy carries 'terms'. Using this information we can consolidate all these blocks into the base template in a simple and clean way.
* Initial commitWolfgang Müller2021-06-12-0/+39