pelican-include
is an open source Pelican plugin to fetch file content and include it within the content page.
Author
Toni Heittola (toni.heittola@gmail.com), GitHub, Home page
Make sure the directory where the plugin was installed is set in pelicanconf.py
. For example if you installed in plugins/pelican-include
, add:
PLUGIN_PATHS = ['plugins']
Enable pelican-include:
PLUGINS = ['pelican-include']
File content is injected to {include::} tags within the content.
Example:
File content:
<pre>{include::content/data/data.yaml}</pre>