Modify wording slightly

This commit is contained in:
Justin Mayer 2023-11-02 14:09:51 +01:00 committed by GitHub
commit 32b72123f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,10 +144,10 @@ Checking Loaded Plugins
-----------------------
Pelican provides a ``plugin_enabled`` Jinja test for checking if a certain plugin
is enabled. This test accepts a plugin name as a string and will return a boolean.
Namespace Plugins can be specified with their full name (``pelican.plugins.plugin_name``)
or their short name (``plugin_name``). The following example uses ``webassets`` plugin
to minify CSS if it is enabled and falls back to regular CSS otherwise::
is enabled. This test accepts a plugin name as a string and will return a Boolean.
Namespace plugins can be specified by full name (``pelican.plugins.plugin_name``)
or short name (``plugin_name``). The following example uses the ``webassets`` plugin
to minify CSS if the plugin is enabled and otherwise falls back to regular CSS::
{% if "webassets" is plugin_enabled %}
{% assets filters="cssmin", output="css/style.min.css", "css/style.scss" %}