From 79e480a89486acc79802cd8c2f7f0f62964590a2 Mon Sep 17 00:00:00 2001 From: tBunnyMan Date: Sat, 14 Jul 2012 17:53:10 -0700 Subject: [PATCH] Change default REVERSE_ARCHIVE_ORDER to true Updated documentation and updated tests to reflect correct default order Fixes #304 --- docs/settings.rst | 2 +- pelican/settings.py | 2 +- tests/output/basic/archives.html | 22 +++++++++++----------- tests/output/basic/tag/bar.html | 16 ++++++++-------- tests/output/basic/tag/baz.html | 16 ++++++++-------- tests/output/basic/tag/foo.html | 16 ++++++++-------- tests/output/custom/archives.html | 22 +++++++++++----------- tests/output/custom/tag/bar.html | 20 ++++++++++---------- tests/output/custom/tag/baz.html | 20 ++++++++++---------- tests/output/custom/tag/foo.html | 20 ++++++++++---------- 10 files changed, 78 insertions(+), 78 deletions(-) diff --git a/docs/settings.rst b/docs/settings.rst index 0a1af584..54d95b9d 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -364,7 +364,7 @@ Ordering content ================================================ ===================================================== Setting name (default value) What does it do? ================================================ ===================================================== -`REVERSE_ARCHIVE_ORDER` (``False``) Reverse the archives list order. (True: orders by date +`REVERSE_ARCHIVE_ORDER` (``True``) Reverse the archives list order. (True: orders by date in descending order, with newer articles first.) `REVERSE_CATEGORY_ORDER` (``False``) Reverse the category order. (True: lists by reverse alphabetical order; default lists alphabetically.) diff --git a/pelican/settings.py b/pelican/settings.py index 41b8baa9..dbecfd47 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -32,7 +32,7 @@ _DEFAULT_CONFIG = {'PATH': '.', 'DEFAULT_DATE': 'fs', 'WITH_FUTURE_DATES': True, 'CSS_FILE': 'main.css', - 'REVERSE_ARCHIVE_ORDER': False, + 'REVERSE_ARCHIVE_ORDER': True, 'REVERSE_CATEGORY_ORDER': False, 'DELETE_OUTPUT_DIRECTORY': False, 'ARTICLE_URL': '{slug}.html', diff --git a/tests/output/basic/archives.html b/tests/output/basic/archives.html index dac96a47..704fc836 100644 --- a/tests/output/basic/archives.html +++ b/tests/output/basic/archives.html @@ -47,14 +47,11 @@
-
Fri 15 October 2010
-
Unbelievable !
+
Wed 29 February 2012
+
Second article
-
Wed 20 October 2010
-
Oh yeah !
- -
Thu 02 December 2010
-
This is a super article !
+
Wed 20 April 2011
+
A markdown powered article
Thu 17 February 2011
Article 1
@@ -65,11 +62,14 @@
Thu 17 February 2011
Article 3
-
Wed 20 April 2011
-
A markdown powered article
+
Thu 02 December 2010
+
This is a super article !
-
Wed 29 February 2012
-
Second article
+
Wed 20 October 2010
+
Oh yeah !
+ +
Fri 15 October 2010
+
Unbelievable !
diff --git a/tests/output/basic/tag/bar.html b/tests/output/basic/tag/bar.html index 47a427cb..99c2cb7f 100644 --- a/tests/output/basic/tag/bar.html +++ b/tests/output/basic/tag/bar.html @@ -49,7 +49,7 @@