Move Python datetime note further down Settings docs

This commit is contained in:
Justin Mayer 2019-12-28 09:57:41 +01:00
commit d7795b8afd

View file

@ -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 example below). These settings give you the flexibility to place your articles
and pages anywhere you want. 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: Also, you can use other file metadata attributes as well:
* slug * slug
@ -391,6 +382,15 @@ This would save your articles into something like
``/pages/about/index.html``, and render them available at URLs of ``/pages/about/index.html``, and render them available at URLs of
``/posts/2011/Aug/07/sample-post/`` and ``/pages/about/``, respectively. ``/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 .. data:: RELATIVE_URLS = False
Defines whether Pelican should use document-relative URLs or not. Only set Defines whether Pelican should use document-relative URLs or not. Only set