mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
samples: Remove EXTRA_PATH_METADATA entries for pictures
I'd added them earlier to test that a configuration edit could preserve the original output locations. However, it is likely that you have quite a number of static files, and we shouldn't recommend listing explicit paths for all of them. With this configuration change, the pictures will be copied into the output directory using their original relative path (e.g. `pictures/Fat_Cat.jpg` without the `static`). Any |filename|-style links will be updated automatically. If you *want* the pictures to end up in a `static` directory, it's easier to just organize your source that way.
This commit is contained in:
parent
dfb29b5388
commit
0dee76f259
27 changed files with 31 additions and 34 deletions
|
|
@ -1,2 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /static/pictures
|
||||
Disallow: /pictures
|
||||
|
|
|
|||
|
|
@ -37,9 +37,6 @@ DEFAULT_METADATA = (('yeah', 'it is'),)
|
|||
# path-specific metadata
|
||||
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'},
|
||||
}
|
||||
|
||||
# static paths will be copied without parsing their contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue