mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
I change PERMALINK_STRUCTURE to ARTICLE_PERMALINK_STRUCTURE and updating the settings.rst documentation.
Also I have implemented other options to this setting, such as the category, the date, the author, this kind of things. Finally, I have setted the ARTICLE_PERMALINK_STRUCTURE option as null in pelican.conf.py sample file.
This commit is contained in:
parent
068a3d2f1d
commit
2609004719
4 changed files with 28 additions and 8 deletions
|
|
@ -61,10 +61,22 @@ Setting name (default value) what does it do?
|
|||
on the output path "static". By default,
|
||||
pelican will copy the 'images' folder to the
|
||||
output folder.
|
||||
`PERMALINK_STRUCTURE` (``'/%Y/%m/'``) Allows to render URLs for articles sorted by date,
|
||||
`ARTICLE_PERMALINK_STRUCTURE` (``'/%Y/%m/'``) Allows to render URLs for articles sorted by date,
|
||||
in case you specify a format as specified in the
|
||||
example. Also, you can specify any other word
|
||||
that you want.
|
||||
example. It follows the python datetime directives:
|
||||
* %Y: Year with century as a decimal number.
|
||||
* %m: Month as a decimal number [01,12].
|
||||
* %d: Day of the month as a decimal number [01,31].
|
||||
|
||||
Check the python datetime documentation
|
||||
at http://bit.ly/cNcJUC for more information.
|
||||
|
||||
Also, you can use any metadata in the
|
||||
restructured text files:
|
||||
* category: '%(category)s'
|
||||
* author: '%(author)s'
|
||||
* tags: '%(tags)s'
|
||||
* date: '%(date)s'
|
||||
================================================ =====================================================
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue