mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Change lists, not tuples, in config settings
In the documentation, both `SOCIAL` and `LINKS` are described as a list of tuples, but all examples show them as tuples of tuples. It makes the most sense for them to be lists, so the examples should match the docs going forward. Similarly, `LOCALE` is described as a list, but the examples show it as a tuple. Likewise, the examples should be lists, in line with the description.
This commit is contained in:
parent
9e3e1325c0
commit
fca2fde2ed
5 changed files with 18 additions and 18 deletions
8
samples/pelican.conf.py
vendored
8
samples/pelican.conf.py
vendored
|
|
@ -17,20 +17,20 @@ DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
|
|||
FEED_ALL_RSS = "feeds/all.rss.xml"
|
||||
CATEGORY_FEED_RSS = "feeds/{slug}.rss.xml"
|
||||
|
||||
LINKS = (
|
||||
LINKS = [
|
||||
("Biologeek", "http://biologeek.org"),
|
||||
("Filyb", "http://filyb.info/"),
|
||||
("Libert-fr", "http://www.libert-fr.com"),
|
||||
("N1k0", "http://prendreuncafe.com/blog/"),
|
||||
("Tarek Ziadé", "http://ziade.org/blog"),
|
||||
("Zubin Mithra", "http://zubin71.wordpress.com/"),
|
||||
)
|
||||
]
|
||||
|
||||
SOCIAL = (
|
||||
SOCIAL = [
|
||||
("twitter", "http://twitter.com/ametaireau"),
|
||||
("lastfm", "http://lastfm.com/user/akounet"),
|
||||
("github", "http://github.com/ametaireau"),
|
||||
)
|
||||
]
|
||||
|
||||
# global metadata to all the contents
|
||||
DEFAULT_METADATA = {"yeah": "it is"}
|
||||
|
|
|
|||
8
samples/pelican.conf_FR.py
vendored
8
samples/pelican.conf_FR.py
vendored
|
|
@ -21,20 +21,20 @@ ARTICLE_SAVE_AS = ARTICLE_URL + "index.html"
|
|||
FEED_ALL_RSS = "feeds/all.rss.xml"
|
||||
CATEGORY_FEED_RSS = "feeds/{slug}.rss.xml"
|
||||
|
||||
LINKS = (
|
||||
LINKS = [
|
||||
("Biologeek", "http://biologeek.org"),
|
||||
("Filyb", "http://filyb.info/"),
|
||||
("Libert-fr", "http://www.libert-fr.com"),
|
||||
("N1k0", "http://prendreuncafe.com/blog/"),
|
||||
("Tarek Ziadé", "http://ziade.org/blog"),
|
||||
("Zubin Mithra", "http://zubin71.wordpress.com/"),
|
||||
)
|
||||
]
|
||||
|
||||
SOCIAL = (
|
||||
SOCIAL = [
|
||||
("twitter", "http://twitter.com/ametaireau"),
|
||||
("lastfm", "http://lastfm.com/user/akounet"),
|
||||
("github", "http://github.com/ametaireau"),
|
||||
)
|
||||
]
|
||||
|
||||
# global metadata to all the contents
|
||||
DEFAULT_METADATA = {"yeah": "it is"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue