mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Modify wording slightly
This commit is contained in:
parent
feae8ef41c
commit
32b72123f0
1 changed files with 4 additions and 4 deletions
|
|
@ -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" %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue