mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Move Python datetime note further down Settings docs
This commit is contained in:
parent
d2c857883f
commit
d7795b8afd
1 changed files with 9 additions and 9 deletions
|
|
@ -362,15 +362,6 @@ variables allow you to place your articles in a location such as
|
|||
example below). These settings give you the flexibility to place your articles
|
||||
and pages anywhere you want.
|
||||
|
||||
.. note::
|
||||
If you specify a ``datetime`` directive, it will be substituted using the
|
||||
input files' date metadata attribute. If the date is not specified for a
|
||||
particular file, Pelican will rely on the file's ``mtime`` timestamp. Check
|
||||
the `Python datetime documentation`_ for more information.
|
||||
|
||||
.. _Python datetime documentation:
|
||||
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
|
||||
|
||||
Also, you can use other file metadata attributes as well:
|
||||
|
||||
* slug
|
||||
|
|
@ -391,6 +382,15 @@ This would save your articles into something like
|
|||
``/pages/about/index.html``, and render them available at URLs of
|
||||
``/posts/2011/Aug/07/sample-post/`` and ``/pages/about/``, respectively.
|
||||
|
||||
.. note::
|
||||
If you specify a ``datetime`` directive, it will be substituted using the
|
||||
input files' date metadata attribute. If the date is not specified for a
|
||||
particular file, Pelican will rely on the file's ``mtime`` timestamp. Check
|
||||
the `Python datetime documentation`_ for more information.
|
||||
|
||||
.. _Python datetime documentation:
|
||||
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
|
||||
|
||||
.. data:: RELATIVE_URLS = False
|
||||
|
||||
Defines whether Pelican should use document-relative URLs or not. Only set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue