forked from github/pelican
Compare commits
1 commit
main
...
caching_wa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2beefb89c5 |
4 changed files with 30 additions and 0 deletions
|
|
@ -95,6 +95,13 @@ not be a good category name, you can set the setting ``USE_FOLDER_AS_CATEGORY``
|
||||||
to ``False``. When parsing dates given in the page metadata, Pelican supports
|
to ``False``. When parsing dates given in the page metadata, Pelican supports
|
||||||
the W3C's `suggested subset ISO 8601`__.
|
the W3C's `suggested subset ISO 8601`__.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
When experimenting with different settings (especially the metadata
|
||||||
|
ones) caching may interfere and the changes may not be visible. In
|
||||||
|
such cases disable caching with ``LOAD_CONTENT_CACHE = False`` or
|
||||||
|
use the ``--ignore-cache`` command-line switch.
|
||||||
|
|
||||||
__ `W3C ISO 8601`_
|
__ `W3C ISO 8601`_
|
||||||
|
|
||||||
``modified`` should be last time you updated the article, and defaults to ``date`` if not specified.
|
``modified`` should be last time you updated the article, and defaults to ``date`` if not specified.
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,14 @@ Configuration files are optional and are just an easy way to configure Pelican.
|
||||||
For basic operations, it's possible to specify options while invoking Pelican
|
For basic operations, it's possible to specify options while invoking Pelican
|
||||||
via the command line. See ``pelican --help`` for more information.
|
via the command line. See ``pelican --help`` for more information.
|
||||||
|
|
||||||
|
Changes to the setting file take no effect
|
||||||
|
==========================================
|
||||||
|
|
||||||
|
When experimenting with different settings (especially the metadata
|
||||||
|
ones) caching may interfere and the changes may not be visible. In
|
||||||
|
such cases disable caching with ``LOAD_CONTENT_CACHE = False`` or
|
||||||
|
use the ``--ignore-cache`` command-line switch.
|
||||||
|
|
||||||
I'm creating my own theme. How do I use Pygments for syntax highlighting?
|
I'm creating my own theme. How do I use Pygments for syntax highlighting?
|
||||||
=========================================================================
|
=========================================================================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,14 @@ Alternatively, another method is to import them and add them to the list::
|
||||||
from package import myplugin
|
from package import myplugin
|
||||||
PLUGINS = [myplugin,]
|
PLUGINS = [myplugin,]
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
When experimenting with different plugins (especially the ones that
|
||||||
|
deal with metadata and content) caching may interfere and the
|
||||||
|
changes may not be visible. In such cases disable caching with
|
||||||
|
``LOAD_CONTENT_CACHE = False`` or use the ``--ignore-cache``
|
||||||
|
command-line switch.
|
||||||
|
|
||||||
If your plugins are not in an importable path, you can specify a list of paths
|
If your plugins are not in an importable path, you can specify a list of paths
|
||||||
via the ``PLUGIN_PATHS`` setting. As shown in the following example, paths in
|
via the ``PLUGIN_PATHS`` setting. As shown in the following example, paths in
|
||||||
the ``PLUGIN_PATHS`` list can be absolute or relative to the settings file::
|
the ``PLUGIN_PATHS`` list can be absolute or relative to the settings file::
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@ the command line::
|
||||||
(If you used the ``pelican-quickstart`` command, your primary settings file will
|
(If you used the ``pelican-quickstart`` command, your primary settings file will
|
||||||
be named ``pelicanconf.py`` by default.)
|
be named ``pelicanconf.py`` by default.)
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
When experimenting with different settings (especially the metadata
|
||||||
|
ones) caching may interfere and the changes may not be visible. In
|
||||||
|
such cases disable caching with ``LOAD_CONTENT_CACHE = False`` or
|
||||||
|
use the ``--ignore-cache`` command-line switch.
|
||||||
|
|
||||||
Settings are configured in the form of a Python module (a file). There is an
|
Settings are configured in the form of a Python module (a file). There is an
|
||||||
`example settings file
|
`example settings file
|
||||||
<https://github.com/getpelican/pelican/raw/master/samples/pelican.conf.py>`_
|
<https://github.com/getpelican/pelican/raw/master/samples/pelican.conf.py>`_
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue