mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Update sample configurations from FILES_TO_COPY to EXTRA_PATH_METADATA
This commit is contained in:
parent
d43dc1b9d6
commit
7de7bd0e37
2 changed files with 23 additions and 10 deletions
|
|
@ -29,11 +29,16 @@ SOCIAL = (('twitter', 'http://twitter.com/ametaireau'),
|
||||||
# global metadata to all the contents
|
# global metadata to all the contents
|
||||||
DEFAULT_METADATA = (('yeah', 'it is'),)
|
DEFAULT_METADATA = (('yeah', 'it is'),)
|
||||||
|
|
||||||
# static paths will be copied under the same name
|
# path-specific metadata
|
||||||
STATIC_PATHS = ["pictures", ]
|
EXTRA_PATH_METADATA = {
|
||||||
|
'extra/robots.txt': {'path': 'robots.txt'},
|
||||||
|
}
|
||||||
|
|
||||||
# A list of files to copy from the source to the destination
|
# static paths will be copied without parsing their contents
|
||||||
FILES_TO_COPY = (('extra/robots.txt', 'robots.txt'),)
|
STATIC_PATHS = [
|
||||||
|
'pictures',
|
||||||
|
'extra/robots.txt',
|
||||||
|
]
|
||||||
|
|
||||||
# foobar will not be used, because it's not in caps. All configuration keys
|
# foobar will not be used, because it's not in caps. All configuration keys
|
||||||
# have to be in caps
|
# have to be in caps
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,19 @@ SOCIAL = (('twitter', 'http://twitter.com/ametaireau'),
|
||||||
# global metadata to all the contents
|
# global metadata to all the contents
|
||||||
DEFAULT_METADATA = (('yeah', 'it is'),)
|
DEFAULT_METADATA = (('yeah', 'it is'),)
|
||||||
|
|
||||||
# static paths will be copied under the same name
|
# path-specific metadata
|
||||||
STATIC_PATHS = ["pictures", ]
|
EXTRA_PATH_METADATA = {
|
||||||
|
'extra/robots.txt': {'path': 'robots.txt'},
|
||||||
|
'pictures/Fat_Cat.jpg': {'path': 'static/pictures/Fat_Cat.jpg'},
|
||||||
|
'pictures/Sushi.jpg': {'path': 'static/pictures/Sushi.jpg'},
|
||||||
|
'pictures/Sushi_Macro.jpg': {'path': 'static/pictures/Sushi_Macro.jpg'},
|
||||||
|
}
|
||||||
|
|
||||||
# A list of files to copy from the source to the destination
|
# static paths will be copied without parsing their contents
|
||||||
FILES_TO_COPY = (('extra/robots.txt', 'robots.txt'),)
|
STATIC_PATHS = [
|
||||||
|
'pictures',
|
||||||
|
'extra/robots.txt',
|
||||||
|
]
|
||||||
|
|
||||||
# custom page generated with a jinja2 template
|
# custom page generated with a jinja2 template
|
||||||
TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
|
TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue