mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
update doc for replacing FALLBACK_ON_FS_DATE by DEFAULT_DATE
This commit is contained in:
parent
36be150f20
commit
775b236c93
2 changed files with 11 additions and 3 deletions
|
|
@ -130,8 +130,12 @@ Pelican est fournit avec :doc:`pelican-themes`, un script permettant de gérer l
|
||||||
Paramètres divers
|
Paramètres divers
|
||||||
=================
|
=================
|
||||||
|
|
||||||
FALLBACK_ON_FS_DATE :
|
DEFAULT_DATE:
|
||||||
Si *True*, Pelican se basera sur le *mtime* du fichier s'il n'y a pas de date spécifiée dans le fichier de l'article ;
|
Date par défaut à utiliser si l'information de date n'est pas spécifiée
|
||||||
|
dans les metadonnées de l'article.
|
||||||
|
Si 'fs', Pelican se basera sur le *mtime* du fichier.
|
||||||
|
Si c'est un tuple, il sera passé au constructeur datetime.datetime pour
|
||||||
|
générer l'objet datetime utilisé par défaut.
|
||||||
|
|
||||||
KEEP_OUTPUT DIRECTORY :
|
KEEP_OUTPUT DIRECTORY :
|
||||||
Ne génère que les fichiers modifiés et n'efface pas le repertoire de sortie ;
|
Ne génère que les fichiers modifiés et n'efface pas le repertoire de sortie ;
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,13 @@ Setting name (default value) What doe
|
||||||
`DISPLAY_PAGES_ON_MENU` (``True``) Whether to display pages on the menu of the
|
`DISPLAY_PAGES_ON_MENU` (``True``) Whether to display pages on the menu of the
|
||||||
template. Templates may or not honor this
|
template. Templates may or not honor this
|
||||||
setting.
|
setting.
|
||||||
`FALLBACK_ON_FS_DATE` (``True``) If True, Pelican will use the file system
|
`DEFAULT_DATE` (``fs``) The default date you want to use.
|
||||||
|
If 'fs', Pelican will use the file system
|
||||||
timestamp information (mtime) if it can't get
|
timestamp information (mtime) if it can't get
|
||||||
date information from the metadata.
|
date information from the metadata.
|
||||||
|
If tuple object, it will instead generate the
|
||||||
|
default datetime object by passing the tuple to
|
||||||
|
the datetime.datetime constructor.
|
||||||
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
|
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
|
||||||
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the output directory as well as
|
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the output directory as well as
|
||||||
the generated files.
|
the generated files.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue