From ff8898476685e6b7dff03231275a6a8bc2cbaf17 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 11 Sep 2020 01:07:43 +0200 Subject: blogc: generate table of contents tree 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. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 5336760..659c5f2 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,7 @@ blogc*.html /tests/blogc/check_sysinfo /tests/blogc/check_sysinfo2 /tests/blogc/check_template_parser +/tests/blogc/check_toctree /tests/blogc-git-receiver/check_pre_receive_parser /tests/blogc-git-receiver/check_pre_receive.sh /tests/blogc-git-receiver/check_post_receive.sh @@ -105,3 +106,5 @@ blogc-*.rpm /root/ /maint/releases/ + +.gdb_history -- cgit v1.2.3-18-g5258