summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorRogdham <contact@rogdham.net>2013-06-20 21:58:51 +0100
committerRogdham <contact@rogdham.net>2013-08-04 12:07:40 +0100
commit0999d4d6915574cb0377048157661e1a5e6d9ced (patch)
tree086e1f6317a270d50e42eab53bb88da8a3974e69 /samples
parenta14dc4dad20f7a918ad7391af5950055204af904 (diff)
downloadpelican-0999d4d6915574cb0377048157661e1a5e6d9ced.tar.gz
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 by d0e9c52410e70e14008d2ef827ba7ac306243e72 Overwrite detection introduced by ff7410ce2ada85b486a67ae11874d60d135ff939
Diffstat (limited to 'samples')
-rw-r--r--samples/content/article_tag_baz.rst8
-rw-r--r--samples/content/pages/override_tag_oh.rst8
2 files changed, 16 insertions, 0 deletions
diff --git a/samples/content/article_tag_baz.rst b/samples/content/article_tag_baz.rst
new file mode 100644
index 00000000..9a33a8d3
--- /dev/null
+++ b/samples/content/article_tag_baz.rst
@@ -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.
diff --git a/samples/content/pages/override_tag_oh.rst b/samples/content/pages/override_tag_oh.rst
new file mode 100644
index 00000000..c3160349
--- /dev/null
+++ b/samples/content/pages/override_tag_oh.rst
@@ -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.