mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Deliberate overriding of an existing file to tests
Deliberate overriding via `save_as` metadata should be allowed, even after the overwrite detection feature. This commit is to add tests for deliberate overriding. As a result, the relevant tests *should fail* after this commit. Added a page and an article, both to override a tag, with very old dates so it limits the amount of diff in the generated pages. Overriding feature introduced byd0e9c52410Overwrite detection introduced byff7410ce2a
This commit is contained in:
parent
a14dc4dad2
commit
0999d4d691
71 changed files with 262 additions and 87 deletions
8
samples/content/article_tag_baz.rst
Normal file
8
samples/content/article_tag_baz.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
The baz tag
|
||||
###########
|
||||
|
||||
:date: 2010-03-14
|
||||
:url: tag/baz.html
|
||||
:save_as: tag/baz.html
|
||||
|
||||
This article overrides the listening of the articles under the *baz* tag.
|
||||
8
samples/content/pages/override_tag_oh.rst
Normal file
8
samples/content/pages/override_tag_oh.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Oh Oh Oh
|
||||
########
|
||||
|
||||
:date: 2010-03-14
|
||||
:url: tag/oh.html
|
||||
:save_as: tag/oh.html
|
||||
|
||||
This page overrides the listening of the articles under the *oh* tag.
|
||||
Loading…
Add table
Add a link
Reference in a new issue