Move strip_toc_summary plugin to lib/ directory

The pelican-plugins/ directory is gitignored, so moved the plugin
to lib/ which is tracked. Updated PLUGIN_PATHS to include lib/.

This plugin provides the strip_anchors Jinja2 filter that removes
TOC divs and toc-backref anchor links from article summaries on
the homepage, preventing broken anchor links in excerpts.
This commit is contained in:
Russell Ballestrini 2025-10-13 09:46:25 -04:00
parent 3a51b633a0
commit 71c8d78853
2 changed files with 44 additions and 1 deletions

View file

@ -105,7 +105,7 @@ OUTPUT_SOURCES_EXTENSION = '.rst'
# Setup filters and plugins.
PLUGIN_PATHS = ["pelican-plugins"]
PLUGIN_PATHS = ["pelican-plugins", "lib"]
PLUGINS = ["random_article", "strip_toc_summary"]
# register filters.