mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix warnings and errors from settings.rst
This commit is contained in:
parent
71a5ba3283
commit
10fc8a733d
1 changed files with 5 additions and 0 deletions
|
|
@ -160,6 +160,8 @@ maintain multiple languages with different date formats, you can set this dict
|
|||
using language name (``lang`` in your posts) as key. Regarding available format
|
||||
codes, see `strftime document of python`_ :
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
DATE_FORMAT = {
|
||||
'en': '%a, %d %b %Y',
|
||||
'jp': '%Y-%m-%d(%a)',
|
||||
|
|
@ -167,6 +169,8 @@ codes, see `strftime document of python`_ :
|
|||
|
||||
You can set locale to further control date format:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
LOCALE = ('usa', 'jpn', # On Windows
|
||||
'en_US', 'ja_JP' # On Unix/Linux
|
||||
)
|
||||
|
|
@ -175,6 +179,7 @@ Also, it is possible to set different locale settings for each language. If you
|
|||
put (locale, format) tuples in the dict, this will override the LOCALE setting
|
||||
above:
|
||||
|
||||
.. parsed-literal::
|
||||
# On Unix/Linux
|
||||
DATE_FORMAT = {
|
||||
'en': ('en_US','%a, %d %b %Y'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue