aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc/check_toctree.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: upgrade deprecated cmocka test runnerRafael G. Martins2020-11-051-4/+4
|
* blogc: generate table of contents treeRafael G. Martins2020-09-111-0/+234
this commit allows users to use the `{{ TOCTREE }}` variable in their templates, to get automatically generated table of contents for entries. The variable is binded to each entry, so it can be used in any block that runs in entry context, like `{% block entry %}`. There's a small performance penalty for this, because the table of contents is rendered for any entry, despite being used or not, and not generated on-demand. still missing documentation. tests are good enough.