From 877d454c8fa979343d4881a00977d9ac8786f178 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:24:44 +0200
Subject: [PATCH 01/22] fix sorting of categories list
---
pelican/generators.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pelican/generators.py b/pelican/generators.py
index d7ebb0b0..02bed967 100644
--- a/pelican/generators.py
+++ b/pelican/generators.py
@@ -302,7 +302,9 @@ class ArticlesGenerator(Generator):
# order the categories per name
self.categories = list(self.categories.items())
- self.categories.sort(reverse=self.settings['REVERSE_CATEGORY_ORDER'])
+ self.categories.sort(
+ key=lambda item: item[0].name,
+ reverse=self.settings['REVERSE_CATEGORY_ORDER'])
self.authors = list(self.authors.items())
self.authors.sort()
From 7f36e0ed20745c73886d96d4af303b0d858b8a53 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:24:53 +0200
Subject: [PATCH 02/22] fix sorting of authors list
---
pelican/generators.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pelican/generators.py b/pelican/generators.py
index 02bed967..de45f411 100644
--- a/pelican/generators.py
+++ b/pelican/generators.py
@@ -307,7 +307,7 @@ class ArticlesGenerator(Generator):
reverse=self.settings['REVERSE_CATEGORY_ORDER'])
self.authors = list(self.authors.items())
- self.authors.sort()
+ self.authors.sort(key=lambda item: item[0].name)
self._update_context(('articles', 'dates', 'tags', 'categories',
'tag_cloud', 'authors'))
From f903aaa1a4241e3cf35aff74ee4d231cb6d368e5 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:43:08 +0200
Subject: [PATCH 03/22] remove unittest.skip statements for functional tests
---
tests/test_pelican.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/test_pelican.py b/tests/test_pelican.py
index c317e5b3..49328ebe 100644
--- a/tests/test_pelican.py
+++ b/tests/test_pelican.py
@@ -23,7 +23,6 @@ class TestPelican(unittest.TestCase):
# general functional testing for pelican. Basically, this test case tries
# to run pelican in different situations and see how it behaves
- @unittest.skip("Test failing")
def test_basic_generation_works(self):
# when running pelican without settings, it should pick up the default
# ones and generate the output without raising any exception / issuing
@@ -36,7 +35,6 @@ class TestPelican(unittest.TestCase):
self.assertEqual(diff.right_only, [])
self.assertEqual(diff.diff_files, [])
- @unittest.skip("Test failing")
def test_custom_generation_works(self):
# the same thing with a specified set of settings should work
with temporary_folder() as temp_path:
From 7fcaca85dded7b06729ec901bc80f0bf9036487c Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:35:53 +0200
Subject: [PATCH 04/22] update custom output now that categories are correctly
sorted
pelican -o tests/output/custom/ -s samples/pelican.conf.py samples/content/
---
.../custom/a-markdown-powered-article.html | 8 ++++----
tests/output/custom/archives.html | 8 ++++----
tests/output/custom/article-1.html | 8 ++++----
tests/output/custom/article-2.html | 8 ++++----
tests/output/custom/article-3.html | 8 ++++----
tests/output/custom/author/alexis-metaireau.html | 8 ++++----
.../output/custom/author/alexis-metaireau2.html | 13 +++++++------
tests/output/custom/categories.html | 16 ++++++++--------
tests/output/custom/category/bar.html | 8 ++++----
tests/output/custom/category/cat1.html | 8 ++++----
tests/output/custom/category/content.html | 8 ++++----
tests/output/custom/category/yeah.html | 8 ++++----
tests/output/custom/drafts/a-draft-article.html | 8 ++++----
tests/output/custom/feeds/all-en.atom.xml | 14 +++++++-------
tests/output/custom/feeds/all-fr.atom.xml | 4 ++--
tests/output/custom/feeds/all.atom.xml | 14 +++++++-------
tests/output/custom/feeds/all.rss.xml | 16 ++++++++--------
tests/output/custom/feeds/bar.atom.xml | 2 +-
tests/output/custom/feeds/bar.rss.xml | 4 ++--
tests/output/custom/feeds/cat1.atom.xml | 6 +++---
tests/output/custom/feeds/cat1.rss.xml | 8 ++++----
tests/output/custom/feeds/content.atom.xml | 4 ++--
tests/output/custom/feeds/content.rss.xml | 6 +++---
tests/output/custom/feeds/yeah.atom.xml | 2 +-
tests/output/custom/feeds/yeah.rss.xml | 4 ++--
tests/output/custom/index.html | 8 ++++----
tests/output/custom/index2.html | 13 +++++++------
tests/output/custom/oh-yeah-fr.html | 8 ++++----
tests/output/custom/oh-yeah.html | 8 ++++----
.../output/custom/pages/this-is-a-test-page.html | 8 ++++----
tests/output/custom/second-article-fr.html | 8 ++++----
tests/output/custom/second-article.html | 8 ++++----
tests/output/custom/tag/bar.html | 13 +++++++------
tests/output/custom/tag/baz.html | 8 ++++----
tests/output/custom/tag/foo.html | 13 +++++++------
tests/output/custom/tag/foobar.html | 8 ++++----
tests/output/custom/tag/oh.html | 8 ++++----
tests/output/custom/tag/yeah.html | 8 ++++----
tests/output/custom/theme/css/main.css | 7 +++++++
tests/output/custom/this-is-a-super-article.html | 8 ++++----
tests/output/custom/unbelievable.html | 8 ++++----
41 files changed, 177 insertions(+), 166 deletions(-)
diff --git a/tests/output/custom/a-markdown-powered-article.html b/tests/output/custom/a-markdown-powered-article.html
index c001278a..74e53913 100644
--- a/tests/output/custom/a-markdown-powered-article.html
+++ b/tests/output/custom/a-markdown-powered-article.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/archives.html b/tests/output/custom/archives.html
index e9393667..706c7464 100644
--- a/tests/output/custom/archives.html
+++ b/tests/output/custom/archives.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/article-1.html b/tests/output/custom/article-1.html
index 4bdb8f16..8c73b4ac 100644
--- a/tests/output/custom/article-1.html
+++ b/tests/output/custom/article-1.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/article-2.html b/tests/output/custom/article-2.html
index 6a0bb442..e8758391 100644
--- a/tests/output/custom/article-2.html
+++ b/tests/output/custom/article-2.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/article-3.html b/tests/output/custom/article-3.html
index 8410b4f9..ace9dfbf 100644
--- a/tests/output/custom/article-3.html
+++ b/tests/output/custom/article-3.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/author/alexis-metaireau.html b/tests/output/custom/author/alexis-metaireau.html
index 1a373e5d..85f550b4 100644
--- a/tests/output/custom/author/alexis-metaireau.html
+++ b/tests/output/custom/author/alexis-metaireau.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/author/alexis-metaireau2.html b/tests/output/custom/author/alexis-metaireau2.html
index 43ded360..53fec2e5 100644
--- a/tests/output/custom/author/alexis-metaireau2.html
+++ b/tests/output/custom/author/alexis-metaireau2.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
@@ -165,8 +165,9 @@ Translations:
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
There are comments .
diff --git a/tests/output/custom/categories.html b/tests/output/custom/categories.html
index a1a44e5b..92830754 100644
--- a/tests/output/custom/categories.html
+++ b/tests/output/custom/categories.html
@@ -39,27 +39,27 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/category/bar.html b/tests/output/custom/category/bar.html
index 809a2bdf..53af38da 100644
--- a/tests/output/custom/category/bar.html
+++ b/tests/output/custom/category/bar.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/category/cat1.html b/tests/output/custom/category/cat1.html
index fa6c6556..94bb74a7 100644
--- a/tests/output/custom/category/cat1.html
+++ b/tests/output/custom/category/cat1.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/category/content.html b/tests/output/custom/category/content.html
index 16651436..7645d430 100644
--- a/tests/output/custom/category/content.html
+++ b/tests/output/custom/category/content.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/category/yeah.html b/tests/output/custom/category/yeah.html
index 3c9af4e2..dc20affb 100644
--- a/tests/output/custom/category/yeah.html
+++ b/tests/output/custom/category/yeah.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/drafts/a-draft-article.html b/tests/output/custom/drafts/a-draft-article.html
index 99f5ad68..e12e5bd7 100644
--- a/tests/output/custom/drafts/a-draft-article.html
+++ b/tests/output/custom/drafts/a-draft-article.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/feeds/all-en.atom.xml b/tests/output/custom/feeds/all-en.atom.xml
index 7356cb17..1b18c1bd 100644
--- a/tests/output/custom/feeds/all-en.atom.xml
+++ b/tests/output/custom/feeds/all-en.atom.xml
@@ -1,9 +1,9 @@
-Alexis' log http://blog.notmyidea.org 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau http://blog.notmyidea.org/a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau http://blog.notmyidea.org/this-is-a-super-article.html <p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau http://blog.notmyidea.org/oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau http://blog.notmyidea.org/unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/all-fr.atom.xml b/tests/output/custom/feeds/all-fr.atom.xml
index 27949d80..1d42bb6e 100644
--- a/tests/output/custom/feeds/all-fr.atom.xml
+++ b/tests/output/custom/feeds/all-fr.atom.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.org 2012-03-02T14:01:01+01:00 Trop bien ! 2012-03-02T14:01:01+01:00 Alexis Métaireau http://blog.notmyidea.org/oh-yeah-fr.html <p>Et voila du contenu en français</p>
- Deuxième article 2012-02-29T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/second-article-fr.html <p>Ceci est un article, en français.</p>
+Alexis' log http://blog.notmyidea.org/ 2012-03-02T14:01:01+01:00 Trop bien ! 2012-03-02T14:01:01+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
+ Deuxième article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/all.atom.xml b/tests/output/custom/feeds/all.atom.xml
index ef6dbf52..9090f431 100644
--- a/tests/output/custom/feeds/all.atom.xml
+++ b/tests/output/custom/feeds/all.atom.xml
@@ -1,9 +1,9 @@
-Alexis' log http://blog.notmyidea.org 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau http://blog.notmyidea.org/a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau http://blog.notmyidea.org/this-is-a-super-article.html <p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau http://blog.notmyidea.org/oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau http://blog.notmyidea.org/unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/all.rss.xml b/tests/output/custom/feeds/all.rss.xml
index a3f7eff9..b726e2d1 100644
--- a/tests/output/custom/feeds/all.rss.xml
+++ b/tests/output/custom/feeds/all.rss.xml
@@ -1,9 +1,9 @@
-Alexis' log http://blog.notmyidea.orgWed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.org/second-article.html<p>This is some article, in english</p>
- Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 http://blog.notmyidea.org/second-article.html foo bar baz A markdown powered article http://blog.notmyidea.org/a-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 http://blog.notmyidea.org/a-markdown-powered-article.html Article 1 http://blog.notmyidea.org/article-1.html<p>Article 1</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 http://blog.notmyidea.org/article-1.html Article 2 http://blog.notmyidea.org/article-2.html<p>Article 2</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 http://blog.notmyidea.org/article-2.html Article 3 http://blog.notmyidea.org/article-3.html<p>Article 3</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 http://blog.notmyidea.org/article-3.html This is a super article ! http://blog.notmyidea.org/this-is-a-super-article.html<p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.orgsecond-article.html<p>This is some article, in english</p>
+ Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz A markdown powered article http://blog.notmyidea.orga-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html Article 1 http://blog.notmyidea.orgarticle-1.html<p>Article 1</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-1.html Article 2 http://blog.notmyidea.orgarticle-2.html<p>Article 2</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-2.html Article 3 http://blog.notmyidea.orgarticle-3.html<p>Article 3</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-3.html This is a super article ! http://blog.notmyidea.orgthis-is-a-super-article.html<p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Alexis Métaireau Thu, 02 Dec 2010 10:14:00 +0100 http://blog.notmyidea.org/this-is-a-super-article.html foo bar foobar Oh yeah ! http://blog.notmyidea.org/oh-yeah.html<div class="section" id="why-not">
+ Alexis Métaireau Thu, 02 Dec 2010 10:14:00 +0100 tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html foo bar foobar Oh yeah ! http://blog.notmyidea.orgoh-yeah.html<div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Alexis Métaireau Wed, 20 Oct 2010 10:14:00 +0200 http://blog.notmyidea.org/oh-yeah.html oh bar yeah Unbelievable ! http://blog.notmyidea.org/unbelievable.html<p>Or completely awesome. Depends the needs.</p>
- Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 http://blog.notmyidea.org/unbelievable.html
\ No newline at end of file
+ Alexis Métaireau Wed, 20 Oct 2010 10:14:00 +0200 tag:blog.notmyidea.org,2010-10-20:oh-yeah.html oh bar yeah Unbelievable ! http://blog.notmyidea.orgunbelievable.html<p>Or completely awesome. Depends the needs.</p>
+ Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 tag:blog.notmyidea.org,2010-10-15:unbelievable.html
\ No newline at end of file
diff --git a/tests/output/custom/feeds/bar.atom.xml b/tests/output/custom/feeds/bar.atom.xml
index 84ac9cda..93961545 100644
--- a/tests/output/custom/feeds/bar.atom.xml
+++ b/tests/output/custom/feeds/bar.atom.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org 2010-10-20T10:14:00+02:00 Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau http://blog.notmyidea.org/oh-yeah.html <div class="section" id="why-not">
+Alexis' log http://blog.notmyidea.org/ 2010-10-20T10:14:00+02:00 Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
diff --git a/tests/output/custom/feeds/bar.rss.xml b/tests/output/custom/feeds/bar.rss.xml
index bb5cb2b4..0a9d0f9d 100644
--- a/tests/output/custom/feeds/bar.rss.xml
+++ b/tests/output/custom/feeds/bar.rss.xml
@@ -1,8 +1,8 @@
-Alexis' log http://blog.notmyidea.orgWed, 20 Oct 2010 10:14:00 +0200 Oh yeah ! http://blog.notmyidea.org/oh-yeah.html<div class="section" id="why-not">
+Alexis' log http://blog.notmyidea.org/Wed, 20 Oct 2010 10:14:00 +0200 Oh yeah ! http://blog.notmyidea.orgoh-yeah.html<div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Alexis Métaireau Wed, 20 Oct 2010 10:14:00 +0200 http://blog.notmyidea.org/oh-yeah.html oh bar yeah
\ No newline at end of file
+ Alexis Métaireau Wed, 20 Oct 2010 10:14:00 +0200 tag:blog.notmyidea.org,2010-10-20:oh-yeah.html oh bar yeah
\ No newline at end of file
diff --git a/tests/output/custom/feeds/cat1.atom.xml b/tests/output/custom/feeds/cat1.atom.xml
index e0f01780..4fce560d 100644
--- a/tests/output/custom/feeds/cat1.atom.xml
+++ b/tests/output/custom/feeds/cat1.atom.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org 2011-04-20T00:00:00+02:00 A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau http://blog.notmyidea.org/a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/article-3.html <p>Article 3</p>
+Alexis' log http://blog.notmyidea.org/ 2011-04-20T00:00:00+02:00 A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/cat1.rss.xml b/tests/output/custom/feeds/cat1.rss.xml
index 0043b2fb..d322572b 100644
--- a/tests/output/custom/feeds/cat1.rss.xml
+++ b/tests/output/custom/feeds/cat1.rss.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.orgWed, 20 Apr 2011 00:00:00 +0200 A markdown powered article http://blog.notmyidea.org/a-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 http://blog.notmyidea.org/a-markdown-powered-article.html Article 1 http://blog.notmyidea.org/article-1.html<p>Article 1</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 http://blog.notmyidea.org/article-1.html Article 2 http://blog.notmyidea.org/article-2.html<p>Article 2</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 http://blog.notmyidea.org/article-2.html Article 3 http://blog.notmyidea.org/article-3.html<p>Article 3</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 http://blog.notmyidea.org/article-3.html
\ No newline at end of file
+Alexis' log http://blog.notmyidea.org/Wed, 20 Apr 2011 00:00:00 +0200 A markdown powered article http://blog.notmyidea.orga-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html Article 1 http://blog.notmyidea.orgarticle-1.html<p>Article 1</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-1.html Article 2 http://blog.notmyidea.orgarticle-2.html<p>Article 2</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-2.html Article 3 http://blog.notmyidea.orgarticle-3.html<p>Article 3</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-3.html
\ No newline at end of file
diff --git a/tests/output/custom/feeds/content.atom.xml b/tests/output/custom/feeds/content.atom.xml
index c141a0aa..6f93c8f4 100644
--- a/tests/output/custom/feeds/content.atom.xml
+++ b/tests/output/custom/feeds/content.atom.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.org 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau http://blog.notmyidea.org/second-article.html <p>This is some article, in english</p>
- Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau http://blog.notmyidea.org/unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+ Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/content.rss.xml b/tests/output/custom/feeds/content.rss.xml
index 9f36c97e..74a322e7 100644
--- a/tests/output/custom/feeds/content.rss.xml
+++ b/tests/output/custom/feeds/content.rss.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.orgWed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.org/second-article.html<p>This is some article, in english</p>
- Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 http://blog.notmyidea.org/second-article.html foo bar baz Unbelievable ! http://blog.notmyidea.org/unbelievable.html<p>Or completely awesome. Depends the needs.</p>
- Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 http://blog.notmyidea.org/unbelievable.html
\ No newline at end of file
+Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.orgsecond-article.html<p>This is some article, in english</p>
+ Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz Unbelievable ! http://blog.notmyidea.orgunbelievable.html<p>Or completely awesome. Depends the needs.</p>
+ Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 tag:blog.notmyidea.org,2010-10-15:unbelievable.html
\ No newline at end of file
diff --git a/tests/output/custom/feeds/yeah.atom.xml b/tests/output/custom/feeds/yeah.atom.xml
index 4c6eed49..9a95fa03 100644
--- a/tests/output/custom/feeds/yeah.atom.xml
+++ b/tests/output/custom/feeds/yeah.atom.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org 2010-12-02T10:14:00+01:00 This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau http://blog.notmyidea.org/this-is-a-super-article.html <p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/ 2010-12-02T10:14:00+01:00 This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
diff --git a/tests/output/custom/feeds/yeah.rss.xml b/tests/output/custom/feeds/yeah.rss.xml
index c4f5512e..1c5884a2 100644
--- a/tests/output/custom/feeds/yeah.rss.xml
+++ b/tests/output/custom/feeds/yeah.rss.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.orgThu, 02 Dec 2010 10:14:00 +0100 This is a super article ! http://blog.notmyidea.org/this-is-a-super-article.html<p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/Thu, 02 Dec 2010 10:14:00 +0100 This is a super article ! http://blog.notmyidea.orgthis-is-a-super-article.html<p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -11,4 +11,4 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Alexis Métaireau Thu, 02 Dec 2010 10:14:00 +0100 http://blog.notmyidea.org/this-is-a-super-article.html foo bar foobar
\ No newline at end of file
+ Alexis Métaireau Thu, 02 Dec 2010 10:14:00 +0100 tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html foo bar foobar
\ No newline at end of file
diff --git a/tests/output/custom/index.html b/tests/output/custom/index.html
index 466a4db4..ae77c625 100644
--- a/tests/output/custom/index.html
+++ b/tests/output/custom/index.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/index2.html b/tests/output/custom/index2.html
index 9262d717..797217ad 100644
--- a/tests/output/custom/index2.html
+++ b/tests/output/custom/index2.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
@@ -115,8 +115,9 @@
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
There are comments .
diff --git a/tests/output/custom/oh-yeah-fr.html b/tests/output/custom/oh-yeah-fr.html
index e692105b..b699b41c 100644
--- a/tests/output/custom/oh-yeah-fr.html
+++ b/tests/output/custom/oh-yeah-fr.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/oh-yeah.html b/tests/output/custom/oh-yeah.html
index 6ffaad13..b8263c1b 100644
--- a/tests/output/custom/oh-yeah.html
+++ b/tests/output/custom/oh-yeah.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/pages/this-is-a-test-page.html b/tests/output/custom/pages/this-is-a-test-page.html
index 27d6ec69..f176e761 100644
--- a/tests/output/custom/pages/this-is-a-test-page.html
+++ b/tests/output/custom/pages/this-is-a-test-page.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/second-article-fr.html b/tests/output/custom/second-article-fr.html
index b3b12af7..9e5b81ad 100644
--- a/tests/output/custom/second-article-fr.html
+++ b/tests/output/custom/second-article-fr.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/second-article.html b/tests/output/custom/second-article.html
index 4b31dc69..a769cee4 100644
--- a/tests/output/custom/second-article.html
+++ b/tests/output/custom/second-article.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/tag/bar.html b/tests/output/custom/tag/bar.html
index bf468bf2..5d6237cd 100644
--- a/tests/output/custom/tag/bar.html
+++ b/tests/output/custom/tag/bar.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
@@ -158,8 +158,9 @@ Translations:
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
There are comments .
diff --git a/tests/output/custom/tag/baz.html b/tests/output/custom/tag/baz.html
index 34bcdbc3..e1be3d77 100644
--- a/tests/output/custom/tag/baz.html
+++ b/tests/output/custom/tag/baz.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/tag/foo.html b/tests/output/custom/tag/foo.html
index c8f088f1..3beabbb1 100644
--- a/tests/output/custom/tag/foo.html
+++ b/tests/output/custom/tag/foo.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
@@ -158,8 +158,9 @@ Translations:
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
There are comments .
diff --git a/tests/output/custom/tag/foobar.html b/tests/output/custom/tag/foobar.html
index 682a9b7d..2da611ed 100644
--- a/tests/output/custom/tag/foobar.html
+++ b/tests/output/custom/tag/foobar.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/tag/oh.html b/tests/output/custom/tag/oh.html
index 9e8239a4..73db4505 100644
--- a/tests/output/custom/tag/oh.html
+++ b/tests/output/custom/tag/oh.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/tag/yeah.html b/tests/output/custom/tag/yeah.html
index 675a53cb..f72400a6 100644
--- a/tests/output/custom/tag/yeah.html
+++ b/tests/output/custom/tag/yeah.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/theme/css/main.css b/tests/output/custom/theme/css/main.css
index 28c98b99..92905076 100644
--- a/tests/output/custom/theme/css/main.css
+++ b/tests/output/custom/theme/css/main.css
@@ -111,6 +111,13 @@ cite {}
q {}
+div.note {
+ float: right;
+ margin: 5px;
+ font-size: 85%;
+ max-width: 300px;
+}
+
/* Tables */
table {margin: .5em auto 1.5em auto; width: 98%;}
diff --git a/tests/output/custom/this-is-a-super-article.html b/tests/output/custom/this-is-a-super-article.html
index 2fd6b306..9ba6bb9b 100644
--- a/tests/output/custom/this-is-a-super-article.html
+++ b/tests/output/custom/this-is-a-super-article.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
diff --git a/tests/output/custom/unbelievable.html b/tests/output/custom/unbelievable.html
index b7730421..1b611efe 100644
--- a/tests/output/custom/unbelievable.html
+++ b/tests/output/custom/unbelievable.html
@@ -39,14 +39,14 @@
- cat1
-
- bar
-
yeah
content
+ cat1
+
+ bar
+
From c4c49678f906897fe276831ab5e5261f16f757ac Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:40:03 +0200
Subject: [PATCH 05/22] update basic output now that categories are correctly
sorted
pelican -o tests/output/basic/ samples/content/
---
tests/output/basic/a-markdown-powered-article.html | 4 ++--
tests/output/basic/archives.html | 4 ++--
tests/output/basic/article-1.html | 4 ++--
tests/output/basic/article-2.html | 4 ++--
tests/output/basic/article-3.html | 4 ++--
tests/output/basic/author/alexis-metaireau.html | 9 +++++----
tests/output/basic/author/bruno.html | 4 ++--
tests/output/basic/categories.html | 8 ++++----
tests/output/basic/category/bar.html | 4 ++--
tests/output/basic/category/cat1.html | 4 ++--
tests/output/basic/category/content.html | 4 ++--
tests/output/basic/category/yeah.html | 4 ++--
tests/output/basic/drafts/a-draft-article.html | 4 ++--
tests/output/basic/feeds/all-en.atom.xml | 14 +++++++-------
tests/output/basic/feeds/all-fr.atom.xml | 4 ++--
tests/output/basic/feeds/all.atom.xml | 14 +++++++-------
tests/output/basic/feeds/bar.atom.xml | 2 +-
tests/output/basic/feeds/cat1.atom.xml | 6 +++---
tests/output/basic/feeds/content.atom.xml | 4 ++--
tests/output/basic/feeds/yeah.atom.xml | 2 +-
tests/output/basic/index.html | 9 +++++----
tests/output/basic/oh-yeah-fr.html | 4 ++--
tests/output/basic/oh-yeah.html | 4 ++--
tests/output/basic/pages/this-is-a-test-page.html | 4 ++--
tests/output/basic/second-article-fr.html | 4 ++--
tests/output/basic/second-article.html | 4 ++--
tests/output/basic/tag/bar.html | 9 +++++----
tests/output/basic/tag/baz.html | 4 ++--
tests/output/basic/tag/foo.html | 9 +++++----
tests/output/basic/tag/foobar.html | 4 ++--
tests/output/basic/tag/oh.html | 4 ++--
tests/output/basic/tag/yeah.html | 4 ++--
tests/output/basic/theme/css/main.css | 7 +++++++
tests/output/basic/this-is-a-super-article.html | 4 ++--
tests/output/basic/unbelievable.html | 4 ++--
35 files changed, 98 insertions(+), 87 deletions(-)
diff --git a/tests/output/basic/a-markdown-powered-article.html b/tests/output/basic/a-markdown-powered-article.html
index 32a863d6..d36ba32c 100644
--- a/tests/output/basic/a-markdown-powered-article.html
+++ b/tests/output/basic/a-markdown-powered-article.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/archives.html b/tests/output/basic/archives.html
index 840dfa02..9aedb29d 100644
--- a/tests/output/basic/archives.html
+++ b/tests/output/basic/archives.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/article-1.html b/tests/output/basic/article-1.html
index c1199371..e681b991 100644
--- a/tests/output/basic/article-1.html
+++ b/tests/output/basic/article-1.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/article-2.html b/tests/output/basic/article-2.html
index 62dd0368..b56d18ba 100644
--- a/tests/output/basic/article-2.html
+++ b/tests/output/basic/article-2.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/article-3.html b/tests/output/basic/article-3.html
index 9fd6df0a..0d2525e7 100644
--- a/tests/output/basic/article-3.html
+++ b/tests/output/basic/article-3.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/author/alexis-metaireau.html b/tests/output/basic/author/alexis-metaireau.html
index ab68482d..6bf631eb 100644
--- a/tests/output/basic/author/alexis-metaireau.html
+++ b/tests/output/basic/author/alexis-metaireau.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
@@ -115,8 +115,9 @@ YEAH !
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
diff --git a/tests/output/basic/author/bruno.html b/tests/output/basic/author/bruno.html
index 1e2dc655..f889c94e 100644
--- a/tests/output/basic/author/bruno.html
+++ b/tests/output/basic/author/bruno.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/categories.html b/tests/output/basic/categories.html
index 5ffb220d..2430cc96 100644
--- a/tests/output/basic/categories.html
+++ b/tests/output/basic/categories.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
@@ -44,11 +44,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/category/bar.html b/tests/output/basic/category/bar.html
index b268dd53..77d0187b 100644
--- a/tests/output/basic/category/bar.html
+++ b/tests/output/basic/category/bar.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/category/cat1.html b/tests/output/basic/category/cat1.html
index e92fd0df..ba43f8f5 100644
--- a/tests/output/basic/category/cat1.html
+++ b/tests/output/basic/category/cat1.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/category/content.html b/tests/output/basic/category/content.html
index 0eec912c..9f44fa9e 100644
--- a/tests/output/basic/category/content.html
+++ b/tests/output/basic/category/content.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/category/yeah.html b/tests/output/basic/category/yeah.html
index ccb531f1..747cad37 100644
--- a/tests/output/basic/category/yeah.html
+++ b/tests/output/basic/category/yeah.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/drafts/a-draft-article.html b/tests/output/basic/drafts/a-draft-article.html
index 59b6223f..0b7f6899 100644
--- a/tests/output/basic/drafts/a-draft-article.html
+++ b/tests/output/basic/drafts/a-draft-article.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/feeds/all-en.atom.xml b/tests/output/basic/feeds/all-en.atom.xml
index c9fe8270..66c51fdf 100644
--- a/tests/output/basic/feeds/all-en.atom.xml
+++ b/tests/output/basic/feeds/all-en.atom.xml
@@ -1,9 +1,9 @@
-A Pelican Blog ../. 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno .././second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00Z bruno .././a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno .././article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z bruno .././article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z bruno .././article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau .././this-is-a-super-article.html <p>Some content here !</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00Z bruno tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau .././oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00Z bruno .././unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00Z bruno tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/all-fr.atom.xml b/tests/output/basic/feeds/all-fr.atom.xml
index 606e5186..2de714bb 100644
--- a/tests/output/basic/feeds/all-fr.atom.xml
+++ b/tests/output/basic/feeds/all-fr.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog ../. 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z bruno .././oh-yeah-fr.html <p>Et voila du contenu en français</p>
- Deuxième article 2012-02-29T00:00:00Z bruno .././second-article-fr.html <p>Ceci est un article, en français.</p>
+A Pelican Blog .././ 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z bruno tag:../.,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
+ Deuxième article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/all.atom.xml b/tests/output/basic/feeds/all.atom.xml
index 3bb7d2fd..c496adf7 100644
--- a/tests/output/basic/feeds/all.atom.xml
+++ b/tests/output/basic/feeds/all.atom.xml
@@ -1,9 +1,9 @@
-A Pelican Blog ../. 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno .././second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00Z bruno .././a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno .././article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z bruno .././article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z bruno .././article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau .././this-is-a-super-article.html <p>Some content here !</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00Z bruno tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau .././oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00Z bruno .././unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00Z bruno tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/bar.atom.xml b/tests/output/basic/feeds/bar.atom.xml
index 6ce45518..066ae95f 100644
--- a/tests/output/basic/feeds/bar.atom.xml
+++ b/tests/output/basic/feeds/bar.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog ../. 2010-10-20T10:14:00Z Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau .././oh-yeah.html <div class="section" id="why-not">
+A Pelican Blog .././ 2010-10-20T10:14:00Z Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
diff --git a/tests/output/basic/feeds/cat1.atom.xml b/tests/output/basic/feeds/cat1.atom.xml
index f66c2e73..3a4af6a6 100644
--- a/tests/output/basic/feeds/cat1.atom.xml
+++ b/tests/output/basic/feeds/cat1.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog ../. 2011-04-20T00:00:00Z A markdown powered article 2011-04-20T00:00:00Z bruno .././a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno .././article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z bruno .././article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z bruno .././article-3.html <p>Article 3</p>
+A Pelican Blog .././ 2011-04-20T00:00:00Z A markdown powered article 2011-04-20T00:00:00Z bruno tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-3.html <p>Article 3</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/content.atom.xml b/tests/output/basic/feeds/content.atom.xml
index 0cf53aa7..e35b840f 100644
--- a/tests/output/basic/feeds/content.atom.xml
+++ b/tests/output/basic/feeds/content.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog ../. 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno .././second-article.html <p>This is some article, in english</p>
- Unbelievable ! 2010-10-15T20:30:00Z bruno .././unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ Unbelievable ! 2010-10-15T20:30:00Z bruno tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/yeah.atom.xml b/tests/output/basic/feeds/yeah.atom.xml
index 7fd8e9f2..5ae933f4 100644
--- a/tests/output/basic/feeds/yeah.atom.xml
+++ b/tests/output/basic/feeds/yeah.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog ../. 2010-12-02T10:14:00Z This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau .././this-is-a-super-article.html <p>Some content here !</p>
+A Pelican Blog .././ 2010-12-02T10:14:00Z This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
diff --git a/tests/output/basic/index.html b/tests/output/basic/index.html
index 8a2091b9..9bc1a2f9 100644
--- a/tests/output/basic/index.html
+++ b/tests/output/basic/index.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
@@ -249,8 +249,9 @@ Translations:
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
diff --git a/tests/output/basic/oh-yeah-fr.html b/tests/output/basic/oh-yeah-fr.html
index 55eec103..b380252e 100644
--- a/tests/output/basic/oh-yeah-fr.html
+++ b/tests/output/basic/oh-yeah-fr.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/oh-yeah.html b/tests/output/basic/oh-yeah.html
index 4b650e7d..dfa1d178 100644
--- a/tests/output/basic/oh-yeah.html
+++ b/tests/output/basic/oh-yeah.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/pages/this-is-a-test-page.html b/tests/output/basic/pages/this-is-a-test-page.html
index 0162232c..cc282243 100644
--- a/tests/output/basic/pages/this-is-a-test-page.html
+++ b/tests/output/basic/pages/this-is-a-test-page.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/second-article-fr.html b/tests/output/basic/second-article-fr.html
index 704971d2..e6244aa8 100644
--- a/tests/output/basic/second-article-fr.html
+++ b/tests/output/basic/second-article-fr.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/second-article.html b/tests/output/basic/second-article.html
index 94043446..3dec8d70 100644
--- a/tests/output/basic/second-article.html
+++ b/tests/output/basic/second-article.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/tag/bar.html b/tests/output/basic/tag/bar.html
index 4afb4bfd..bc4ffc9c 100644
--- a/tests/output/basic/tag/bar.html
+++ b/tests/output/basic/tag/bar.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
@@ -150,8 +150,9 @@ Translations:
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
diff --git a/tests/output/basic/tag/baz.html b/tests/output/basic/tag/baz.html
index b8df58e3..523e6f71 100644
--- a/tests/output/basic/tag/baz.html
+++ b/tests/output/basic/tag/baz.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/tag/foo.html b/tests/output/basic/tag/foo.html
index 20cf293a..49cc3fd8 100644
--- a/tests/output/basic/tag/foo.html
+++ b/tests/output/basic/tag/foo.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
@@ -150,8 +150,9 @@ Translations:
- Multi-line metadata should be supported
-as well as inline markup .
+ Multi-line metadata should be supported
+as well as inline markup .
+
read more
diff --git a/tests/output/basic/tag/foobar.html b/tests/output/basic/tag/foobar.html
index 0a5eeb3b..1817aa88 100644
--- a/tests/output/basic/tag/foobar.html
+++ b/tests/output/basic/tag/foobar.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/tag/oh.html b/tests/output/basic/tag/oh.html
index 563c0f2e..3ff36f49 100644
--- a/tests/output/basic/tag/oh.html
+++ b/tests/output/basic/tag/oh.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/tag/yeah.html b/tests/output/basic/tag/yeah.html
index 4b18b7e3..76ca35a3 100644
--- a/tests/output/basic/tag/yeah.html
+++ b/tests/output/basic/tag/yeah.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/theme/css/main.css b/tests/output/basic/theme/css/main.css
index 28c98b99..92905076 100644
--- a/tests/output/basic/theme/css/main.css
+++ b/tests/output/basic/theme/css/main.css
@@ -111,6 +111,13 @@ cite {}
q {}
+div.note {
+ float: right;
+ margin: 5px;
+ font-size: 85%;
+ max-width: 300px;
+}
+
/* Tables */
table {margin: .5em auto 1.5em auto; width: 98%;}
diff --git a/tests/output/basic/this-is-a-super-article.html b/tests/output/basic/this-is-a-super-article.html
index cb12da2d..b2cf0392 100644
--- a/tests/output/basic/this-is-a-super-article.html
+++ b/tests/output/basic/this-is-a-super-article.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
diff --git a/tests/output/basic/unbelievable.html b/tests/output/basic/unbelievable.html
index 4c6e6b07..6380a2a3 100644
--- a/tests/output/basic/unbelievable.html
+++ b/tests/output/basic/unbelievable.html
@@ -31,11 +31,11 @@
- content
+ bar
cat1
- bar
+ content
yeah
From c430ab57ba1c2276f0a150cd8c6467fdb12a01b5 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:48:11 +0200
Subject: [PATCH 06/22] mock getenv to always return the same value for $USER
---
tests/test_pelican.py | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/tests/test_pelican.py b/tests/test_pelican.py
index 49328ebe..1192dfe1 100644
--- a/tests/test_pelican.py
+++ b/tests/test_pelican.py
@@ -6,6 +6,8 @@ except ImportError:
import os
from filecmp import dircmp
+from mock import patch
+
from .support import temporary_folder
from pelican import Pelican
@@ -28,12 +30,15 @@ class TestPelican(unittest.TestCase):
# ones and generate the output without raising any exception / issuing
# any warning.
with temporary_folder() as temp_path:
- pelican = Pelican(path=INPUT_PATH, output_path=temp_path)
- pelican.run()
- diff = dircmp(temp_path, os.sep.join((OUTPUT_PATH, "basic")))
- self.assertEqual(diff.left_only, [])
- self.assertEqual(diff.right_only, [])
- self.assertEqual(diff.diff_files, [])
+ with patch("pelican.contents.getenv") as mock_getenv:
+ # force getenv('USER') to always return the same value
+ mock_getenv.return_value = "Dummy Author"
+ pelican = Pelican(path=INPUT_PATH, output_path=temp_path)
+ pelican.run()
+ diff = dircmp(temp_path, os.sep.join((OUTPUT_PATH, "basic")))
+ self.assertEqual(diff.left_only, [])
+ self.assertEqual(diff.right_only, [])
+ self.assertEqual(diff.diff_files, [])
def test_custom_generation_works(self):
# the same thing with a specified set of settings should work
From 912ffe4a912a4e4760015c003dc7d0a6b2cc3c44 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 22:49:12 +0200
Subject: [PATCH 07/22] update basic output with $USER="Dummy Author"
USER="Dummy Author" pelican -o tests/output/basic/ samples/content/
---
tests/output/basic/a-markdown-powered-article.html | 2 +-
tests/output/basic/article-1.html | 2 +-
tests/output/basic/article-2.html | 2 +-
tests/output/basic/article-3.html | 2 +-
.../basic/author/{bruno.html => dummy-author.html} | 14 +++++++-------
tests/output/basic/category/cat1.html | 8 ++++----
tests/output/basic/category/content.html | 4 ++--
tests/output/basic/drafts/a-draft-article.html | 2 +-
tests/output/basic/feeds/all-en.atom.xml | 10 +++++-----
tests/output/basic/feeds/all-fr.atom.xml | 4 ++--
tests/output/basic/feeds/all.atom.xml | 10 +++++-----
tests/output/basic/feeds/cat1.atom.xml | 6 +++---
tests/output/basic/feeds/content.atom.xml | 4 ++--
tests/output/basic/index.html | 12 ++++++------
tests/output/basic/oh-yeah-fr.html | 2 +-
tests/output/basic/second-article-fr.html | 2 +-
tests/output/basic/second-article.html | 2 +-
tests/output/basic/tag/bar.html | 4 ++--
tests/output/basic/tag/baz.html | 4 ++--
tests/output/basic/tag/foo.html | 4 ++--
tests/output/basic/unbelievable.html | 2 +-
21 files changed, 51 insertions(+), 51 deletions(-)
rename tests/output/basic/author/{bruno.html => dummy-author.html} (92%)
diff --git a/tests/output/basic/a-markdown-powered-article.html b/tests/output/basic/a-markdown-powered-article.html
index d36ba32c..9cb92c4b 100644
--- a/tests/output/basic/a-markdown-powered-article.html
+++ b/tests/output/basic/a-markdown-powered-article.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In cat1 .
diff --git a/tests/output/basic/article-1.html b/tests/output/basic/article-1.html
index e681b991..5f1d7c1d 100644
--- a/tests/output/basic/article-1.html
+++ b/tests/output/basic/article-1.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In cat1 .
diff --git a/tests/output/basic/article-2.html b/tests/output/basic/article-2.html
index b56d18ba..d6dbf74b 100644
--- a/tests/output/basic/article-2.html
+++ b/tests/output/basic/article-2.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In cat1 .
diff --git a/tests/output/basic/article-3.html b/tests/output/basic/article-3.html
index 0d2525e7..8dc806c1 100644
--- a/tests/output/basic/article-3.html
+++ b/tests/output/basic/article-3.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In cat1 .
diff --git a/tests/output/basic/author/bruno.html b/tests/output/basic/author/dummy-author.html
similarity index 92%
rename from tests/output/basic/author/bruno.html
rename to tests/output/basic/author/dummy-author.html
index f889c94e..cf23f899 100644
--- a/tests/output/basic/author/bruno.html
+++ b/tests/output/basic/author/dummy-author.html
@@ -1,7 +1,7 @@
- A Pelican Blog - bruno
+ A Pelican Blog - Dummy Author
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -96,7 +96,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -131,7 +131,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -166,7 +166,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -201,7 +201,7 @@
- By bruno
+ By Dummy Author
In content .
@@ -241,7 +241,7 @@ Translations:
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/category/cat1.html b/tests/output/basic/category/cat1.html
index ba43f8f5..1d8d67e8 100644
--- a/tests/output/basic/category/cat1.html
+++ b/tests/output/basic/category/cat1.html
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -96,7 +96,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -131,7 +131,7 @@
- By bruno
+ By Dummy Author
In cat1 .
@@ -166,7 +166,7 @@
- By bruno
+ By Dummy Author
In cat1 .
diff --git a/tests/output/basic/category/content.html b/tests/output/basic/category/content.html
index 9f44fa9e..19ceef2c 100644
--- a/tests/output/basic/category/content.html
+++ b/tests/output/basic/category/content.html
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In content .
@@ -102,7 +102,7 @@ Translations:
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/drafts/a-draft-article.html b/tests/output/basic/drafts/a-draft-article.html
index 0b7f6899..32a11e69 100644
--- a/tests/output/basic/drafts/a-draft-article.html
+++ b/tests/output/basic/drafts/a-draft-article.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/feeds/all-en.atom.xml b/tests/output/basic/feeds/all-en.atom.xml
index 66c51fdf..e10386d5 100644
--- a/tests/output/basic/feeds/all-en.atom.xml
+++ b/tests/output/basic/feeds/all-en.atom.xml
@@ -1,8 +1,8 @@
-A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00Z bruno tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
@@ -21,5 +21,5 @@
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00Z bruno tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/all-fr.atom.xml b/tests/output/basic/feeds/all-fr.atom.xml
index 2de714bb..3243f840 100644
--- a/tests/output/basic/feeds/all-fr.atom.xml
+++ b/tests/output/basic/feeds/all-fr.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog .././ 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z bruno tag:../.,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
- Deuxième article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
+A Pelican Blog .././ 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z Dummy Author tag:../.,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
+ Deuxième article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/all.atom.xml b/tests/output/basic/feeds/all.atom.xml
index c496adf7..7cdadf5d 100644
--- a/tests/output/basic/feeds/all.atom.xml
+++ b/tests/output/basic/feeds/all.atom.xml
@@ -1,8 +1,8 @@
-A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00Z bruno tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
@@ -21,5 +21,5 @@
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00Z bruno tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/cat1.atom.xml b/tests/output/basic/feeds/cat1.atom.xml
index 3a4af6a6..05b21f75 100644
--- a/tests/output/basic/feeds/cat1.atom.xml
+++ b/tests/output/basic/feeds/cat1.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog .././ 2011-04-20T00:00:00Z A markdown powered article 2011-04-20T00:00:00Z bruno tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z bruno tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+A Pelican Blog .././ 2011-04-20T00:00:00Z A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/content.atom.xml b/tests/output/basic/feeds/content.atom.xml
index e35b840f..d255cc8a 100644
--- a/tests/output/basic/feeds/content.atom.xml
+++ b/tests/output/basic/feeds/content.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z bruno tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
- Unbelievable ! 2010-10-15T20:30:00Z bruno tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/index.html b/tests/output/basic/index.html
index 9bc1a2f9..1f247443 100644
--- a/tests/output/basic/index.html
+++ b/tests/output/basic/index.html
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In content .
@@ -102,7 +102,7 @@ Translations:
- By bruno
+ By Dummy Author
In cat1 .
@@ -136,7 +136,7 @@ Translations:
- By bruno
+ By Dummy Author
In cat1 .
@@ -171,7 +171,7 @@ Translations:
- By bruno
+ By Dummy Author
In cat1 .
@@ -206,7 +206,7 @@ Translations:
- By bruno
+ By Dummy Author
In cat1 .
@@ -322,7 +322,7 @@ YEAH !
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/oh-yeah-fr.html b/tests/output/basic/oh-yeah-fr.html
index b380252e..186791b5 100644
--- a/tests/output/basic/oh-yeah-fr.html
+++ b/tests/output/basic/oh-yeah-fr.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/second-article-fr.html b/tests/output/basic/second-article-fr.html
index e6244aa8..9f9838dc 100644
--- a/tests/output/basic/second-article-fr.html
+++ b/tests/output/basic/second-article-fr.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/second-article.html b/tests/output/basic/second-article.html
index 3dec8d70..13f56e4c 100644
--- a/tests/output/basic/second-article.html
+++ b/tests/output/basic/second-article.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/tag/bar.html b/tests/output/basic/tag/bar.html
index bc4ffc9c..8ffd84d8 100644
--- a/tests/output/basic/tag/bar.html
+++ b/tests/output/basic/tag/bar.html
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In content .
@@ -102,7 +102,7 @@ Translations:
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/tag/baz.html b/tests/output/basic/tag/baz.html
index 523e6f71..ea01a199 100644
--- a/tests/output/basic/tag/baz.html
+++ b/tests/output/basic/tag/baz.html
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In content .
@@ -102,7 +102,7 @@ Translations:
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/tag/foo.html b/tests/output/basic/tag/foo.html
index 49cc3fd8..ea674062 100644
--- a/tests/output/basic/tag/foo.html
+++ b/tests/output/basic/tag/foo.html
@@ -57,7 +57,7 @@
- By bruno
+ By Dummy Author
In content .
@@ -102,7 +102,7 @@ Translations:
- By bruno
+ By Dummy Author
In content .
diff --git a/tests/output/basic/unbelievable.html b/tests/output/basic/unbelievable.html
index 6380a2a3..581e8318 100644
--- a/tests/output/basic/unbelievable.html
+++ b/tests/output/basic/unbelievable.html
@@ -54,7 +54,7 @@
- By bruno
+ By Dummy Author
In content .
From 03fdefb158cd495c960c6637bf7f7deb99a9f1de Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Wed, 4 Apr 2012 23:18:11 +0200
Subject: [PATCH 08/22] add instructions to regenerate the output of functional
tests
---
docs/contribute.rst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/docs/contribute.rst b/docs/contribute.rst
index fcf8d5c0..e33f8ab4 100644
--- a/docs/contribute.rst
+++ b/docs/contribute.rst
@@ -39,6 +39,14 @@ The tests live in "pelican/tests" and you can run them using the
$ unit2 discover
+If you have made changes that affect the output of a pelican generated weblog,
+then you should update the output used by functional tests.
+To do so, you can use the 2 following commands::
+
+ $ pelican -o tests/output/custom/ -s samples/pelican.conf.py \
+ samples/content/
+ $ pelican -o tests/output/basic/ samples/content/
+
Coding standards
================
From cfebb37c6464d42432da0694eb6665004b7efedb Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Apr 2012 06:47:15 +0200
Subject: [PATCH 09/22] fix command to regenerate the output of basic
functional test
the command needs to be prefixed by USER="Dummy Author" which is the author
name value mocked in the corresponding functional test.
---
docs/contribute.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/contribute.rst b/docs/contribute.rst
index e33f8ab4..3960b3f9 100644
--- a/docs/contribute.rst
+++ b/docs/contribute.rst
@@ -45,7 +45,7 @@ To do so, you can use the 2 following commands::
$ pelican -o tests/output/custom/ -s samples/pelican.conf.py \
samples/content/
- $ pelican -o tests/output/basic/ samples/content/
+ $ USER="Dummy Author" pelican -o tests/output/basic/ samples/content/
Coding standards
================
From 1efda9eb74701ca2e56f082327f1970da154ce33 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Mon, 23 Apr 2012 23:29:00 +0200
Subject: [PATCH 10/22] test that categories are ordered as expected
---
tests/test_generators.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/test_generators.py b/tests/test_generators.py
index bc5c8b73..dd27d97f 100644
--- a/tests/test_generators.py
+++ b/tests/test_generators.py
@@ -46,3 +46,7 @@ class TestArticlesGenerator(unittest.TestCase):
elif relfilepath == "article_without_category.rst":
self.assertEquals(article.category.name, 'Default')
+ categories = [cat.name for cat, _ in generator.categories]
+ # assert that the categories are ordered as expected
+ self.assertEquals(
+ categories, ['Default', 'TestCategory', 'Yeah', 'yeah'])
From b7e6d3d98d0a131e1cd93eb95a586fd1ec3d7da5 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Sat, 12 May 2012 01:07:17 +0200
Subject: [PATCH 11/22] update functional tests output
---
.../basic/a-markdown-powered-article.html | 27 +++++----
tests/output/basic/archives.html | 16 +++---
tests/output/basic/article-1.html | 27 +++++----
tests/output/basic/article-2.html | 27 +++++----
tests/output/basic/article-3.html | 27 +++++----
tests/output/basic/categories.html | 8 +--
.../output/basic/drafts/a-draft-article.html | 27 +++++----
tests/output/basic/feeds/all-en.atom.xml | 14 ++---
tests/output/basic/feeds/all-fr.atom.xml | 4 +-
tests/output/basic/feeds/all.atom.xml | 14 ++---
tests/output/basic/feeds/bar.atom.xml | 2 +-
tests/output/basic/feeds/cat1.atom.xml | 6 +-
tests/output/basic/feeds/content.atom.xml | 4 +-
tests/output/basic/feeds/yeah.atom.xml | 2 +-
tests/output/basic/oh-yeah-fr.html | 27 +++++----
tests/output/basic/oh-yeah.html | 27 +++++----
tests/output/basic/second-article-fr.html | 27 +++++----
tests/output/basic/second-article.html | 27 +++++----
tests/output/basic/theme/css/wide.css | 15 +++--
.../basic/theme/images/icons/facebook.png | Bin 0 -> 300 bytes
.../output/basic/this-is-a-super-article.html | 27 +++++----
tests/output/basic/unbelievable.html | 27 +++++----
.../custom/a-markdown-powered-article.html | 53 ++++++++++--------
tests/output/custom/archives.html | 16 +++---
tests/output/custom/article-1.html | 53 ++++++++++--------
tests/output/custom/article-2.html | 53 ++++++++++--------
tests/output/custom/article-3.html | 53 ++++++++++--------
tests/output/custom/categories.html | 8 +--
.../output/custom/drafts/a-draft-article.html | 53 ++++++++++--------
tests/output/custom/feeds/all-en.atom.xml | 14 ++---
tests/output/custom/feeds/all-fr.atom.xml | 4 +-
tests/output/custom/feeds/all.atom.xml | 14 ++---
tests/output/custom/feeds/all.rss.xml | 14 ++---
tests/output/custom/feeds/bar.atom.xml | 2 +-
tests/output/custom/feeds/bar.rss.xml | 2 +-
tests/output/custom/feeds/cat1.atom.xml | 6 +-
tests/output/custom/feeds/cat1.rss.xml | 6 +-
tests/output/custom/feeds/content.atom.xml | 4 +-
tests/output/custom/feeds/content.rss.xml | 4 +-
tests/output/custom/feeds/yeah.atom.xml | 2 +-
tests/output/custom/feeds/yeah.rss.xml | 2 +-
tests/output/custom/oh-yeah-fr.html | 53 ++++++++++--------
tests/output/custom/oh-yeah.html | 53 ++++++++++--------
tests/output/custom/second-article-fr.html | 53 ++++++++++--------
tests/output/custom/second-article.html | 53 ++++++++++--------
tests/output/custom/theme/css/wide.css | 15 +++--
.../custom/theme/images/icons/facebook.png | Bin 0 -> 300 bytes
.../custom/this-is-a-super-article.html | 53 ++++++++++--------
tests/output/custom/unbelievable.html | 53 ++++++++++--------
49 files changed, 599 insertions(+), 479 deletions(-)
create mode 100644 tests/output/basic/theme/images/icons/facebook.png
create mode 100644 tests/output/custom/theme/images/icons/facebook.png
diff --git a/tests/output/basic/a-markdown-powered-article.html b/tests/output/basic/a-markdown-powered-article.html
index 9cb92c4b..ceadf79a 100644
--- a/tests/output/basic/a-markdown-powered-article.html
+++ b/tests/output/basic/a-markdown-powered-article.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 20 April 2011
@@ -62,11 +67,11 @@
-
You're mutually oblivious.
-
-
+ You're mutually oblivious.
+
+
-
+
diff --git a/tests/output/basic/archives.html b/tests/output/basic/archives.html
index 9aedb29d..52d00234 100644
--- a/tests/output/basic/archives.html
+++ b/tests/output/basic/archives.html
@@ -48,28 +48,28 @@
Fri 15 October 2010
- Unbelievable !
+ Unbelievable !
Wed 20 October 2010
- Oh yeah !
+ Oh yeah !
Thu 02 December 2010
- This is a super article !
+ This is a super article !
Thu 17 February 2011
- Article 1
+ Article 1
Thu 17 February 2011
- Article 2
+ Article 2
Thu 17 February 2011
- Article 3
+ Article 3
Wed 20 April 2011
- A markdown powered article
+ A markdown powered article
Wed 29 February 2012
- Second article
+ Second article
diff --git a/tests/output/basic/article-1.html b/tests/output/basic/article-1.html
index 5f1d7c1d..bd6f9716 100644
--- a/tests/output/basic/article-1.html
+++ b/tests/output/basic/article-1.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 17 February 2011
@@ -62,12 +67,12 @@
-
Article 1
+
Article 1
-
-
+
+
-
+
diff --git a/tests/output/basic/article-2.html b/tests/output/basic/article-2.html
index d6dbf74b..7811204a 100644
--- a/tests/output/basic/article-2.html
+++ b/tests/output/basic/article-2.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 17 February 2011
@@ -62,12 +67,12 @@
-
Article 2
+
Article 2
-
-
+
+
-
+
diff --git a/tests/output/basic/article-3.html b/tests/output/basic/article-3.html
index 8dc806c1..96acb190 100644
--- a/tests/output/basic/article-3.html
+++ b/tests/output/basic/article-3.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 17 February 2011
@@ -62,12 +67,12 @@
-
Article 3
+
Article 3
-
-
+
+
-
+
diff --git a/tests/output/basic/categories.html b/tests/output/basic/categories.html
index 2430cc96..db25ed68 100644
--- a/tests/output/basic/categories.html
+++ b/tests/output/basic/categories.html
@@ -44,13 +44,13 @@
diff --git a/tests/output/basic/drafts/a-draft-article.html b/tests/output/basic/drafts/a-draft-article.html
index 32a11e69..99b90c33 100644
--- a/tests/output/basic/drafts/a-draft-article.html
+++ b/tests/output/basic/drafts/a-draft-article.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Fri 02 March 2012
@@ -62,13 +67,13 @@
-
This is a draft article, it should live under the /drafts/ folder and not be
+
This is a draft article, it should live under the /drafts/ folder and not be
listed anywhere else.
-
-
+
+
-
+
diff --git a/tests/output/basic/feeds/all-en.atom.xml b/tests/output/basic/feeds/all-en.atom.xml
index e10386d5..b532e454 100644
--- a/tests/output/basic/feeds/all-en.atom.xml
+++ b/tests/output/basic/feeds/all-en.atom.xml
@@ -1,9 +1,9 @@
-A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/all-fr.atom.xml b/tests/output/basic/feeds/all-fr.atom.xml
index 3243f840..ce245dee 100644
--- a/tests/output/basic/feeds/all-fr.atom.xml
+++ b/tests/output/basic/feeds/all-fr.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog .././ 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z Dummy Author tag:../.,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
- Deuxième article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
+A Pelican Blog .././ 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z Dummy Author tag:../.,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
+ Deuxième article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/all.atom.xml b/tests/output/basic/feeds/all.atom.xml
index 7cdadf5d..a0fb9144 100644
--- a/tests/output/basic/feeds/all.atom.xml
+++ b/tests/output/basic/feeds/all.atom.xml
@@ -1,9 +1,9 @@
-A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/bar.atom.xml b/tests/output/basic/feeds/bar.atom.xml
index 066ae95f..15708734 100644
--- a/tests/output/basic/feeds/bar.atom.xml
+++ b/tests/output/basic/feeds/bar.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog .././ 2010-10-20T10:14:00Z Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
+A Pelican Blog .././ 2010-10-20T10:14:00Z Oh yeah ! 2010-10-20T10:14:00Z Alexis Métaireau tag:../.,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
diff --git a/tests/output/basic/feeds/cat1.atom.xml b/tests/output/basic/feeds/cat1.atom.xml
index 05b21f75..383c8ab7 100644
--- a/tests/output/basic/feeds/cat1.atom.xml
+++ b/tests/output/basic/feeds/cat1.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog .././ 2011-04-20T00:00:00Z A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
+A Pelican Blog .././ 2011-04-20T00:00:00Z A markdown powered article 2011-04-20T00:00:00Z Dummy Author tag:../.,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00Z Dummy Author tag:../.,2011-02-17:article-3.html <p>Article 3</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/content.atom.xml b/tests/output/basic/feeds/content.atom.xml
index d255cc8a..1fa740b4 100644
--- a/tests/output/basic/feeds/content.atom.xml
+++ b/tests/output/basic/feeds/content.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
- Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/yeah.atom.xml b/tests/output/basic/feeds/yeah.atom.xml
index 5ae933f4..e9bb26d0 100644
--- a/tests/output/basic/feeds/yeah.atom.xml
+++ b/tests/output/basic/feeds/yeah.atom.xml
@@ -1,5 +1,5 @@
-A Pelican Blog .././ 2010-12-02T10:14:00Z This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
+A Pelican Blog .././ 2010-12-02T10:14:00Z This is a super article ! 2010-12-02T10:14:00Z Alexis Métaireau tag:../.,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
diff --git a/tests/output/basic/oh-yeah-fr.html b/tests/output/basic/oh-yeah-fr.html
index 186791b5..666a961f 100644
--- a/tests/output/basic/oh-yeah-fr.html
+++ b/tests/output/basic/oh-yeah-fr.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Fri 02 March 2012
@@ -67,12 +72,12 @@ Translations:
-
Et voila du contenu en français
+
Et voila du contenu en français
-
-
+
+
-
+
diff --git a/tests/output/basic/oh-yeah.html b/tests/output/basic/oh-yeah.html
index dfa1d178..c8f1af74 100644
--- a/tests/output/basic/oh-yeah.html
+++ b/tests/output/basic/oh-yeah.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 20 October 2010
@@ -67,17 +72,17 @@ Translations:
-
+
Why not ?
After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !
-
-
+
+
-
+
diff --git a/tests/output/basic/second-article-fr.html b/tests/output/basic/second-article-fr.html
index 9f9838dc..11960efc 100644
--- a/tests/output/basic/second-article-fr.html
+++ b/tests/output/basic/second-article-fr.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -67,12 +72,12 @@ Translations:
-
Ceci est un article, en français.
+
Ceci est un article, en français.
-
-
+
+
-
+
diff --git a/tests/output/basic/second-article.html b/tests/output/basic/second-article.html
index 13f56e4c..171717ba 100644
--- a/tests/output/basic/second-article.html
+++ b/tests/output/basic/second-article.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -67,12 +72,12 @@ Translations:
-
This is some article, in english
+
This is some article, in english
-
-
+
+
-
+
diff --git a/tests/output/basic/theme/css/wide.css b/tests/output/basic/theme/css/wide.css
index 3376f4c7..88fd59ce 100644
--- a/tests/output/basic/theme/css/wide.css
+++ b/tests/output/basic/theme/css/wide.css
@@ -4,13 +4,17 @@ body {
font:1.3em/1.3 "Hoefler Text","Georgia",Georgia,serif,sans-serif;
}
-.body, #banner nav, #banner nav ul, #about, #featured, #content{
- width: inherit;
+.post-info{
+ display: none;
}
#banner nav {
+ display: none;
-moz-border-radius: 0px;
- margin-bottom: 0px;
+ margin-bottom: 20px;
+ overflow: hidden;
+ font-size: 1em;
+ background: #F5F4EF;
}
#banner nav ul{
@@ -19,10 +23,11 @@ body {
#banner nav li{
float: right;
+ color: #000;
}
-#banner nav li:first-child a {
- -moz-border-radius: 0px;
+#banner nav li a {
+ color: #000;
}
#banner h1 {
diff --git a/tests/output/basic/theme/images/icons/facebook.png b/tests/output/basic/theme/images/icons/facebook.png
new file mode 100644
index 0000000000000000000000000000000000000000..a7914b497369c55feba7defc9a3ea5bec424ecfc
GIT binary patch
literal 300
zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa2=EDU{r~^Jb>s{nN~l=<`rQ{G
z*EMNgZp)TeGt$L@YM4rb{DK+IJaKeh4CFB;dAqwXbg;^L06Clm9+AaB8pQTsa66f8
z2V~fKx;Tb#Tu)ADV02S85J*U9G7veylX_i&!&z12Q~+;~Q|gK~r==k=&T|S@G#cDE
zb^5gT;nTtbJUf;eFfcqx6@I
vWMyh@WooHyU}$AvU~RtQ2a1N={FKbJO57T}vIJa!8W=oX{an^LB{Ts5Vp3XV
literal 0
HcmV?d00001
diff --git a/tests/output/basic/this-is-a-super-article.html b/tests/output/basic/this-is-a-super-article.html
index b2cf0392..1e8c160f 100644
--- a/tests/output/basic/this-is-a-super-article.html
+++ b/tests/output/basic/this-is-a-super-article.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 02 December 2010
@@ -62,7 +67,7 @@
-
Some content here !
+
Some content here !
This is a simple title
And here comes the cool stuff .
@@ -75,10 +80,10 @@
→ And now try with some utf8 hell: ééé
-
-
+
+
-
+
diff --git a/tests/output/basic/unbelievable.html b/tests/output/basic/unbelievable.html
index 581e8318..db018d81 100644
--- a/tests/output/basic/unbelievable.html
+++ b/tests/output/basic/unbelievable.html
@@ -41,13 +41,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Fri 15 October 2010
@@ -62,12 +67,12 @@
-
Or completely awesome. Depends the needs.
+
Or completely awesome. Depends the needs.
-
-
+
+
-
+
diff --git a/tests/output/custom/a-markdown-powered-article.html b/tests/output/custom/a-markdown-powered-article.html
index 74e53913..28486691 100644
--- a/tests/output/custom/a-markdown-powered-article.html
+++ b/tests/output/custom/a-markdown-powered-article.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 20 April 2011
@@ -70,24 +75,24 @@
-
You're mutually oblivious.
-
-
-
-
+ You're mutually oblivious.
+
+
+
+
-
+
diff --git a/tests/output/custom/archives.html b/tests/output/custom/archives.html
index 706c7464..083e6ada 100644
--- a/tests/output/custom/archives.html
+++ b/tests/output/custom/archives.html
@@ -56,28 +56,28 @@
Fri 15 October 2010
- Unbelievable !
+ Unbelievable !
Wed 20 October 2010
- Oh yeah !
+ Oh yeah !
Thu 02 December 2010
- This is a super article !
+ This is a super article !
Thu 17 February 2011
- Article 1
+ Article 1
Thu 17 February 2011
- Article 2
+ Article 2
Thu 17 February 2011
- Article 3
+ Article 3
Wed 20 April 2011
- A markdown powered article
+ A markdown powered article
Wed 29 February 2012
- Second article
+ Second article
diff --git a/tests/output/custom/article-1.html b/tests/output/custom/article-1.html
index 8c73b4ac..b7c0f46f 100644
--- a/tests/output/custom/article-1.html
+++ b/tests/output/custom/article-1.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 17 February 2011
@@ -70,25 +75,25 @@
-
Article 1
+
Article 1
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/article-2.html b/tests/output/custom/article-2.html
index e8758391..e60d8077 100644
--- a/tests/output/custom/article-2.html
+++ b/tests/output/custom/article-2.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 17 February 2011
@@ -70,25 +75,25 @@
-
Article 2
+
Article 2
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/article-3.html b/tests/output/custom/article-3.html
index ace9dfbf..b79c25f0 100644
--- a/tests/output/custom/article-3.html
+++ b/tests/output/custom/article-3.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 17 February 2011
@@ -70,25 +75,25 @@
-
Article 3
+
Article 3
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/categories.html b/tests/output/custom/categories.html
index 92830754..95e8c1f3 100644
--- a/tests/output/custom/categories.html
+++ b/tests/output/custom/categories.html
@@ -52,13 +52,13 @@
diff --git a/tests/output/custom/drafts/a-draft-article.html b/tests/output/custom/drafts/a-draft-article.html
index e12e5bd7..659a61b9 100644
--- a/tests/output/custom/drafts/a-draft-article.html
+++ b/tests/output/custom/drafts/a-draft-article.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Fri 02 March 2012
@@ -70,26 +75,26 @@
-
This is a draft article, it should live under the /drafts/ folder and not be
+
This is a draft article, it should live under the /drafts/ folder and not be
listed anywhere else.
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/feeds/all-en.atom.xml b/tests/output/custom/feeds/all-en.atom.xml
index 1b18c1bd..db5fc2de 100644
--- a/tests/output/custom/feeds/all-en.atom.xml
+++ b/tests/output/custom/feeds/all-en.atom.xml
@@ -1,9 +1,9 @@
-Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/all-fr.atom.xml b/tests/output/custom/feeds/all-fr.atom.xml
index 1d42bb6e..5d58742c 100644
--- a/tests/output/custom/feeds/all-fr.atom.xml
+++ b/tests/output/custom/feeds/all-fr.atom.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.org/ 2012-03-02T14:01:01+01:00 Trop bien ! 2012-03-02T14:01:01+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
- Deuxième article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
+Alexis' log http://blog.notmyidea.org/ 2012-03-02T14:01:01+01:00 Trop bien ! 2012-03-02T14:01:01+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
+ Deuxième article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/all.atom.xml b/tests/output/custom/feeds/all.atom.xml
index 9090f431..8df5bbdb 100644
--- a/tests/output/custom/feeds/all.atom.xml
+++ b/tests/output/custom/feeds/all.atom.xml
@@ -1,9 +1,9 @@
-Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
- A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
- This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+ A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
+ This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
+ Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+ Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/all.rss.xml b/tests/output/custom/feeds/all.rss.xml
index b726e2d1..a8be2152 100644
--- a/tests/output/custom/feeds/all.rss.xml
+++ b/tests/output/custom/feeds/all.rss.xml
@@ -1,9 +1,9 @@
-Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.orgsecond-article.html<p>This is some article, in english</p>
- Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz A markdown powered article http://blog.notmyidea.orga-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html Article 1 http://blog.notmyidea.orgarticle-1.html<p>Article 1</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-1.html Article 2 http://blog.notmyidea.orgarticle-2.html<p>Article 2</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-2.html Article 3 http://blog.notmyidea.orgarticle-3.html<p>Article 3</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-3.html This is a super article ! http://blog.notmyidea.orgthis-is-a-super-article.html<p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.org/second-article.html<p>This is some article, in english</p>
+ Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz A markdown powered article http://blog.notmyidea.org/a-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html Article 1 http://blog.notmyidea.org/article-1.html<p>Article 1</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-1.html Article 2 http://blog.notmyidea.org/article-2.html<p>Article 2</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-2.html Article 3 http://blog.notmyidea.org/article-3.html<p>Article 3</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-3.html This is a super article ! http://blog.notmyidea.org/this-is-a-super-article.html<p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
@@ -15,11 +15,11 @@
</pre>
<p>→ And now try with some utf8 hell: ééé</p>
</div>
- Alexis Métaireau Thu, 02 Dec 2010 10:14:00 +0100 tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html foo bar foobar Oh yeah ! http://blog.notmyidea.orgoh-yeah.html<div class="section" id="why-not">
+ Alexis Métaireau Thu, 02 Dec 2010 10:14:00 +0100 tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html foo bar foobar Oh yeah ! http://blog.notmyidea.org/oh-yeah.html<div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
<img alt="alternate text" src="pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
</div>
- Alexis Métaireau Wed, 20 Oct 2010 10:14:00 +0200 tag:blog.notmyidea.org,2010-10-20:oh-yeah.html oh bar yeah Unbelievable ! http://blog.notmyidea.orgunbelievable.html<p>Or completely awesome. Depends the needs.</p>
+ Alexis Métaireau Wed, 20 Oct 2010 10:14:00 +0200 tag:blog.notmyidea.org,2010-10-20:oh-yeah.html oh bar yeah Unbelievable ! http://blog.notmyidea.org/unbelievable.html<p>Or completely awesome. Depends the needs.</p>
Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 tag:blog.notmyidea.org,2010-10-15:unbelievable.html
\ No newline at end of file
diff --git a/tests/output/custom/feeds/bar.atom.xml b/tests/output/custom/feeds/bar.atom.xml
index 93961545..9b29f6c9 100644
--- a/tests/output/custom/feeds/bar.atom.xml
+++ b/tests/output/custom/feeds/bar.atom.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org/ 2010-10-20T10:14:00+02:00 Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
+Alexis' log http://blog.notmyidea.org/ 2010-10-20T10:14:00+02:00 Oh yeah ! 2010-10-20T10:14:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-20:oh-yeah.html <div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
diff --git a/tests/output/custom/feeds/bar.rss.xml b/tests/output/custom/feeds/bar.rss.xml
index 0a9d0f9d..c958edbf 100644
--- a/tests/output/custom/feeds/bar.rss.xml
+++ b/tests/output/custom/feeds/bar.rss.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org/Wed, 20 Oct 2010 10:14:00 +0200 Oh yeah ! http://blog.notmyidea.orgoh-yeah.html<div class="section" id="why-not">
+Alexis' log http://blog.notmyidea.org/Wed, 20 Oct 2010 10:14:00 +0200 Oh yeah ! http://blog.notmyidea.org/oh-yeah.html<div class="section" id="why-not">
<h2>Why not ?</h2>
<p>After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !</p>
diff --git a/tests/output/custom/feeds/cat1.atom.xml b/tests/output/custom/feeds/cat1.atom.xml
index 4fce560d..72703065 100644
--- a/tests/output/custom/feeds/cat1.atom.xml
+++ b/tests/output/custom/feeds/cat1.atom.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org/ 2011-04-20T00:00:00+02:00 A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
- Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
- Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
+Alexis' log http://blog.notmyidea.org/ 2011-04-20T00:00:00+02:00 A markdown powered article 2011-04-20T00:00:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p> Article 1 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-1.html <p>Article 1</p>
+ Article 2 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-2.html <p>Article 2</p>
+ Article 3 2011-02-17T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2011-02-17:article-3.html <p>Article 3</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/cat1.rss.xml b/tests/output/custom/feeds/cat1.rss.xml
index d322572b..f5871487 100644
--- a/tests/output/custom/feeds/cat1.rss.xml
+++ b/tests/output/custom/feeds/cat1.rss.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org/Wed, 20 Apr 2011 00:00:00 +0200 A markdown powered article http://blog.notmyidea.orga-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html Article 1 http://blog.notmyidea.orgarticle-1.html<p>Article 1</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-1.html Article 2 http://blog.notmyidea.orgarticle-2.html<p>Article 2</p>
- Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-2.html Article 3 http://blog.notmyidea.orgarticle-3.html<p>Article 3</p>
+Alexis' log http://blog.notmyidea.org/Wed, 20 Apr 2011 00:00:00 +0200 A markdown powered article http://blog.notmyidea.org/a-markdown-powered-article.html<p>You're mutually oblivious.</p> Alexis Métaireau Wed, 20 Apr 2011 00:00:00 +0200 tag:blog.notmyidea.org,2011-04-20:a-markdown-powered-article.html Article 1 http://blog.notmyidea.org/article-1.html<p>Article 1</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-1.html Article 2 http://blog.notmyidea.org/article-2.html<p>Article 2</p>
+ Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-2.html Article 3 http://blog.notmyidea.org/article-3.html<p>Article 3</p>
Alexis Métaireau Thu, 17 Feb 2011 00:00:00 +0100 tag:blog.notmyidea.org,2011-02-17:article-3.html
\ No newline at end of file
diff --git a/tests/output/custom/feeds/content.atom.xml b/tests/output/custom/feeds/content.atom.xml
index 6f93c8f4..52bbf194 100644
--- a/tests/output/custom/feeds/content.atom.xml
+++ b/tests/output/custom/feeds/content.atom.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
- Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+ Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/content.rss.xml b/tests/output/custom/feeds/content.rss.xml
index 74a322e7..dcacd17f 100644
--- a/tests/output/custom/feeds/content.rss.xml
+++ b/tests/output/custom/feeds/content.rss.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.orgsecond-article.html<p>This is some article, in english</p>
- Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz Unbelievable ! http://blog.notmyidea.orgunbelievable.html<p>Or completely awesome. Depends the needs.</p>
+Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.org/second-article.html<p>This is some article, in english</p>
+ Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz Unbelievable ! http://blog.notmyidea.org/unbelievable.html<p>Or completely awesome. Depends the needs.</p>
Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 tag:blog.notmyidea.org,2010-10-15:unbelievable.html
\ No newline at end of file
diff --git a/tests/output/custom/feeds/yeah.atom.xml b/tests/output/custom/feeds/yeah.atom.xml
index 9a95fa03..802f6329 100644
--- a/tests/output/custom/feeds/yeah.atom.xml
+++ b/tests/output/custom/feeds/yeah.atom.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org/ 2010-12-02T10:14:00+01:00 This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/ 2010-12-02T10:14:00+01:00 This is a super article ! 2010-12-02T10:14:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2010-12-02:this-is-a-super-article.html <p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
diff --git a/tests/output/custom/feeds/yeah.rss.xml b/tests/output/custom/feeds/yeah.rss.xml
index 1c5884a2..68e96cf9 100644
--- a/tests/output/custom/feeds/yeah.rss.xml
+++ b/tests/output/custom/feeds/yeah.rss.xml
@@ -1,5 +1,5 @@
-Alexis' log http://blog.notmyidea.org/Thu, 02 Dec 2010 10:14:00 +0100 This is a super article ! http://blog.notmyidea.orgthis-is-a-super-article.html<p>Some content here !</p>
+Alexis' log http://blog.notmyidea.org/Thu, 02 Dec 2010 10:14:00 +0100 This is a super article ! http://blog.notmyidea.org/this-is-a-super-article.html<p>Some content here !</p>
<div class="section" id="this-is-a-simple-title">
<h2>This is a simple title</h2>
<p>And here comes the cool <a class="reference external" href="http://books.couchdb.org/relax/design-documents/views">stuff</a>.</p>
diff --git a/tests/output/custom/oh-yeah-fr.html b/tests/output/custom/oh-yeah-fr.html
index b699b41c..be931a60 100644
--- a/tests/output/custom/oh-yeah-fr.html
+++ b/tests/output/custom/oh-yeah-fr.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Fri 02 March 2012
@@ -75,25 +80,25 @@ Translations:
-
Et voila du contenu en français
+
Et voila du contenu en français
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/oh-yeah.html b/tests/output/custom/oh-yeah.html
index b8263c1b..4f3f1020 100644
--- a/tests/output/custom/oh-yeah.html
+++ b/tests/output/custom/oh-yeah.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 20 October 2010
@@ -75,30 +80,30 @@ Translations:
-
+
Why not ?
After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
YEAH !
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/second-article-fr.html b/tests/output/custom/second-article-fr.html
index 9e5b81ad..e386af38 100644
--- a/tests/output/custom/second-article-fr.html
+++ b/tests/output/custom/second-article-fr.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -75,25 +80,25 @@ Translations:
-
Ceci est un article, en français.
+
Ceci est un article, en français.
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/second-article.html b/tests/output/custom/second-article.html
index a769cee4..003ebae0 100644
--- a/tests/output/custom/second-article.html
+++ b/tests/output/custom/second-article.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -75,25 +80,25 @@ Translations:
-
This is some article, in english
+
This is some article, in english
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/theme/css/wide.css b/tests/output/custom/theme/css/wide.css
index 3376f4c7..88fd59ce 100644
--- a/tests/output/custom/theme/css/wide.css
+++ b/tests/output/custom/theme/css/wide.css
@@ -4,13 +4,17 @@ body {
font:1.3em/1.3 "Hoefler Text","Georgia",Georgia,serif,sans-serif;
}
-.body, #banner nav, #banner nav ul, #about, #featured, #content{
- width: inherit;
+.post-info{
+ display: none;
}
#banner nav {
+ display: none;
-moz-border-radius: 0px;
- margin-bottom: 0px;
+ margin-bottom: 20px;
+ overflow: hidden;
+ font-size: 1em;
+ background: #F5F4EF;
}
#banner nav ul{
@@ -19,10 +23,11 @@ body {
#banner nav li{
float: right;
+ color: #000;
}
-#banner nav li:first-child a {
- -moz-border-radius: 0px;
+#banner nav li a {
+ color: #000;
}
#banner h1 {
diff --git a/tests/output/custom/theme/images/icons/facebook.png b/tests/output/custom/theme/images/icons/facebook.png
new file mode 100644
index 0000000000000000000000000000000000000000..a7914b497369c55feba7defc9a3ea5bec424ecfc
GIT binary patch
literal 300
zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPGa2=EDU{r~^Jb>s{nN~l=<`rQ{G
z*EMNgZp)TeGt$L@YM4rb{DK+IJaKeh4CFB;dAqwXbg;^L06Clm9+AaB8pQTsa66f8
z2V~fKx;Tb#Tu)ADV02S85J*U9G7veylX_i&!&z12Q~+;~Q|gK~r==k=&T|S@G#cDE
zb^5gT;nTtbJUf;eFfcqx6@I
vWMyh@WooHyU}$AvU~RtQ2a1N={FKbJO57T}vIJa!8W=oX{an^LB{Ts5Vp3XV
literal 0
HcmV?d00001
diff --git a/tests/output/custom/this-is-a-super-article.html b/tests/output/custom/this-is-a-super-article.html
index 9ba6bb9b..2b41cdf3 100644
--- a/tests/output/custom/this-is-a-super-article.html
+++ b/tests/output/custom/this-is-a-super-article.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Thu 02 December 2010
@@ -70,7 +75,7 @@
-
Some content here !
+
Some content here !
This is a simple title
And here comes the cool stuff .
@@ -83,23 +88,23 @@
→ And now try with some utf8 hell: ééé
-
-
-
-
+
+
+
+
-
+
diff --git a/tests/output/custom/unbelievable.html b/tests/output/custom/unbelievable.html
index 1b611efe..4d18012a 100644
--- a/tests/output/custom/unbelievable.html
+++ b/tests/output/custom/unbelievable.html
@@ -49,13 +49,18 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
Fri 15 October 2010
@@ -70,25 +75,25 @@
-
Or completely awesome. Depends the needs.
+
Or completely awesome. Depends the needs.
-
-
-
-
+
+
+
+
-
+
From a8983b420f97379e306c1c5bd93b548b19b042cb Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Sat, 12 May 2012 01:30:09 +0200
Subject: [PATCH 12/22] be more verbose when functional tests fail
---
tests/test_pelican.py | 48 +++++++++++++++++++++++++++++++++++++------
1 file changed, 42 insertions(+), 6 deletions(-)
diff --git a/tests/test_pelican.py b/tests/test_pelican.py
index 1192dfe1..933c82fa 100644
--- a/tests/test_pelican.py
+++ b/tests/test_pelican.py
@@ -36,9 +36,27 @@ class TestPelican(unittest.TestCase):
pelican = Pelican(path=INPUT_PATH, output_path=temp_path)
pelican.run()
diff = dircmp(temp_path, os.sep.join((OUTPUT_PATH, "basic")))
- self.assertEqual(diff.left_only, [])
- self.assertEqual(diff.right_only, [])
- self.assertEqual(diff.diff_files, [])
+ self.assertEqual(diff.left_only, [], msg="some generated " \
+ "files are absent from the expected functional " \
+ "tests output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
+ self.assertEqual(diff.right_only, [], msg="some files from " \
+ "the expected functional tests output are absent " \
+ "from the current output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
+ self.assertEqual(diff.diff_files, [], msg="some generated " \
+ "files differ from the expected functional tests " \
+ "output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
def test_custom_generation_works(self):
# the same thing with a specified set of settings should work
@@ -47,6 +65,24 @@ class TestPelican(unittest.TestCase):
settings=read_settings(SAMPLE_CONFIG))
pelican.run()
diff = dircmp(temp_path, os.sep.join((OUTPUT_PATH, "custom")))
- self.assertEqual(diff.left_only, [])
- self.assertEqual(diff.right_only, [])
- self.assertEqual(diff.diff_files, [])
+ self.assertEqual(diff.left_only, [], msg="some generated " \
+ "files are absent from the expected functional " \
+ "tests output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
+ self.assertEqual(diff.right_only, [], msg="some files from " \
+ "the expected functional tests output are absent " \
+ "from the current output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
+ self.assertEqual(diff.diff_files, [], msg="some generated " \
+ "files differ from the expected functional tests " \
+ "output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
From e82c6512b4703b19f5c142d0cd85b67a88e0040d Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Sat, 12 May 2012 02:03:18 +0200
Subject: [PATCH 13/22] clean up temporary dirs in tearDown to force cleanup
even if tests fail
---
tests/support.py | 18 ---------
tests/test_generators.py | 47 ++++++++++++++----------
tests/test_pelican.py | 79 +++++++++++++++++++++-------------------
3 files changed, 69 insertions(+), 75 deletions(-)
diff --git a/tests/support.py b/tests/support.py
index f2b4a075..8b8cbab8 100644
--- a/tests/support.py
+++ b/tests/support.py
@@ -1,14 +1,10 @@
__all__ = [
- 'temporary_folder',
'get_article',
'unittest',
]
import os
import subprocess
-from contextlib import contextmanager
-from tempfile import mkdtemp
-from shutil import rmtree
from pelican.contents import Article
@@ -18,20 +14,6 @@ except ImportError:
import unittest
-@contextmanager
-def temporary_folder():
- """creates a temporary folder, return it and delete it afterwards.
-
- This allows to do something like this in tests:
-
- >>> with temporary_folder() as d:
- # do whatever you want
- """
- tempdir = mkdtemp()
- yield tempdir
- rmtree(tempdir)
-
-
def get_article(title, slug, content, lang, extra_metadata=None):
metadata = {'slug': slug, 'title': title, 'lang': lang}
if extra_metadata is not None:
diff --git a/tests/test_generators.py b/tests/test_generators.py
index e62551fa..4e6b0acf 100644
--- a/tests/test_generators.py
+++ b/tests/test_generators.py
@@ -3,10 +3,12 @@
from mock import MagicMock
import os
import re
+from tempfile import mkdtemp
+from shutil import rmtree
from pelican.generators import ArticlesGenerator, LessCSSGenerator
from pelican.settings import _DEFAULT_CONFIG
-from .support import unittest, temporary_folder, skipIfNoExecutable
+from .support import unittest, skipIfNoExecutable
CUR_DIR = os.path.dirname(__file__)
@@ -107,6 +109,14 @@ class TestLessCSSGenerator(unittest.TestCase):
}
"""
+ def setUp(self):
+ self.temp_content = mkdtemp()
+ self.temp_output = mkdtemp()
+
+ def tearDown(self):
+ rmtree(self.temp_content)
+ rmtree(self.temp_output)
+
@skipIfNoExecutable('lessc')
def test_less_compiler(self):
@@ -114,28 +124,25 @@ class TestLessCSSGenerator(unittest.TestCase):
settings['STATIC_PATHS'] = ['static']
settings['LESS_GENERATOR'] = True
- # we'll nest here for py < 2.7 compat
- with temporary_folder() as temp_content:
- with temporary_folder() as temp_output:
- generator = LessCSSGenerator(None, settings, temp_content,
- _DEFAULT_CONFIG['THEME'], temp_output, None)
+ generator = LessCSSGenerator(None, settings, self.temp_content,
+ _DEFAULT_CONFIG['THEME'], self.temp_output, None)
- # create a dummy less file
- less_dir = os.path.join(temp_content, 'static', 'css')
- less_filename = os.path.join(less_dir, 'test.less')
+ # create a dummy less file
+ less_dir = os.path.join(self.temp_content, 'static', 'css')
+ less_filename = os.path.join(less_dir, 'test.less')
- less_output = os.path.join(temp_output, 'static', 'css',
- 'test.css')
+ less_output = os.path.join(self.temp_output, 'static', 'css',
+ 'test.css')
- os.makedirs(less_dir)
- with open(less_filename, 'w') as less_file:
- less_file.write(self.LESS_CONTENT)
+ os.makedirs(less_dir)
+ with open(less_filename, 'w') as less_file:
+ less_file.write(self.LESS_CONTENT)
- generator.generate_output()
+ generator.generate_output()
- # we have the file ?
- self.assertTrue(os.path.exists(less_output))
+ # we have the file ?
+ self.assertTrue(os.path.exists(less_output))
- # was it compiled ?
- self.assertIsNotNone(re.search(r'^\s+color:\s*#4D926F;$',
- open(less_output).read(), re.MULTILINE | re.IGNORECASE))
+ # was it compiled ?
+ self.assertIsNotNone(re.search(r'^\s+color:\s*#4D926F;$',
+ open(less_output).read(), re.MULTILINE | re.IGNORECASE))
diff --git a/tests/test_pelican.py b/tests/test_pelican.py
index 933c82fa..a331690b 100644
--- a/tests/test_pelican.py
+++ b/tests/test_pelican.py
@@ -5,11 +5,11 @@ except ImportError:
import os
from filecmp import dircmp
+from tempfile import mkdtemp
+from shutil import rmtree
from mock import patch
-from .support import temporary_folder
-
from pelican import Pelican
from pelican.settings import read_settings
@@ -25,46 +25,23 @@ class TestPelican(unittest.TestCase):
# general functional testing for pelican. Basically, this test case tries
# to run pelican in different situations and see how it behaves
+ def setUp(self):
+ self.temp_path = mkdtemp()
+
+ def tearDown(self):
+ rmtree(self.temp_path)
+
def test_basic_generation_works(self):
# when running pelican without settings, it should pick up the default
# ones and generate the output without raising any exception / issuing
# any warning.
- with temporary_folder() as temp_path:
- with patch("pelican.contents.getenv") as mock_getenv:
- # force getenv('USER') to always return the same value
- mock_getenv.return_value = "Dummy Author"
- pelican = Pelican(path=INPUT_PATH, output_path=temp_path)
- pelican.run()
- diff = dircmp(temp_path, os.sep.join((OUTPUT_PATH, "basic")))
- self.assertEqual(diff.left_only, [], msg="some generated " \
- "files are absent from the expected functional " \
- "tests output.\n" \
- "This is probably because the HTML generated files " \
- "changed. If these changes are normal, please refer " \
- "to docs/contribute.rst to update the expected " \
- "output of the functional tests.")
- self.assertEqual(diff.right_only, [], msg="some files from " \
- "the expected functional tests output are absent " \
- "from the current output.\n" \
- "This is probably because the HTML generated files " \
- "changed. If these changes are normal, please refer " \
- "to docs/contribute.rst to update the expected " \
- "output of the functional tests.")
- self.assertEqual(diff.diff_files, [], msg="some generated " \
- "files differ from the expected functional tests " \
- "output.\n" \
- "This is probably because the HTML generated files " \
- "changed. If these changes are normal, please refer " \
- "to docs/contribute.rst to update the expected " \
- "output of the functional tests.")
-
- def test_custom_generation_works(self):
- # the same thing with a specified set of settings should work
- with temporary_folder() as temp_path:
- pelican = Pelican(path=INPUT_PATH, output_path=temp_path,
- settings=read_settings(SAMPLE_CONFIG))
+ with patch("pelican.contents.getenv") as mock_getenv:
+ # force getenv('USER') to always return the same value
+ mock_getenv.return_value = "Dummy Author"
+ pelican = Pelican(path=INPUT_PATH, output_path=self.temp_path)
pelican.run()
- diff = dircmp(temp_path, os.sep.join((OUTPUT_PATH, "custom")))
+ diff = dircmp(
+ self.temp_path, os.sep.join((OUTPUT_PATH, "basic")))
self.assertEqual(diff.left_only, [], msg="some generated " \
"files are absent from the expected functional " \
"tests output.\n" \
@@ -86,3 +63,31 @@ class TestPelican(unittest.TestCase):
"changed. If these changes are normal, please refer " \
"to docs/contribute.rst to update the expected " \
"output of the functional tests.")
+
+ def test_custom_generation_works(self):
+ # the same thing with a specified set of settings should work
+ pelican = Pelican(path=INPUT_PATH, output_path=self.temp_path,
+ settings=read_settings(SAMPLE_CONFIG))
+ pelican.run()
+ diff = dircmp(self.temp_path, os.sep.join((OUTPUT_PATH, "custom")))
+ self.assertEqual(diff.left_only, [], msg="some generated " \
+ "files are absent from the expected functional " \
+ "tests output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
+ self.assertEqual(diff.right_only, [], msg="some files from " \
+ "the expected functional tests output are absent " \
+ "from the current output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
+ self.assertEqual(diff.diff_files, [], msg="some generated " \
+ "files differ from the expected functional tests " \
+ "output.\n" \
+ "This is probably because the HTML generated files " \
+ "changed. If these changes are normal, please refer " \
+ "to docs/contribute.rst to update the expected " \
+ "output of the functional tests.")
From ef77847762111d165cba14c65dfe5dfb11425530 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Sat, 19 May 2012 23:44:37 +0200
Subject: [PATCH 14/22] force locale to ascii in functional tests
---
samples/pelican.conf.py | 2 +-
tests/test_pelican.py | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py
index bffe57f6..fffbf1a8 100755
--- a/samples/pelican.conf.py
+++ b/samples/pelican.conf.py
@@ -8,7 +8,7 @@ GITHUB_URL = 'http://github.com/ametaireau/'
DISQUS_SITENAME = "blog-notmyidea"
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
-LOCALE = ""
+LOCALE = "C"
DEFAULT_PAGINATION = 4
FEED_RSS = 'feeds/all.rss.xml'
diff --git a/tests/test_pelican.py b/tests/test_pelican.py
index a331690b..0458d58c 100644
--- a/tests/test_pelican.py
+++ b/tests/test_pelican.py
@@ -7,6 +7,7 @@ import os
from filecmp import dircmp
from tempfile import mkdtemp
from shutil import rmtree
+import locale
from mock import patch
@@ -27,9 +28,12 @@ class TestPelican(unittest.TestCase):
def setUp(self):
self.temp_path = mkdtemp()
+ self.old_locale = locale.setlocale(locale.LC_ALL)
+ locale.setlocale(locale.LC_ALL, 'C')
def tearDown(self):
rmtree(self.temp_path)
+ locale.setlocale(locale.LC_ALL, self.old_locale)
def test_basic_generation_works(self):
# when running pelican without settings, it should pick up the default
From b44ea53741f7baab89371718c9a7eba07010bb91 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Jul 2012 00:04:32 +0200
Subject: [PATCH 15/22] update command to generate functional tests output
we need to force LC_ALL="C" to avoid generating articles/pages in other
languages
---
docs/contribute.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/contribute.rst b/docs/contribute.rst
index 3960b3f9..0090dd07 100644
--- a/docs/contribute.rst
+++ b/docs/contribute.rst
@@ -43,9 +43,9 @@ If you have made changes that affect the output of a pelican generated weblog,
then you should update the output used by functional tests.
To do so, you can use the 2 following commands::
- $ pelican -o tests/output/custom/ -s samples/pelican.conf.py \
+ $ LC_ALL="C" pelican -o tests/output/custom/ -s samples/pelican.conf.py \
samples/content/
- $ USER="Dummy Author" pelican -o tests/output/basic/ samples/content/
+ $ LC_ALL="C" USER="Dummy Author" pelican -o tests/output/basic/ samples/content/
Coding standards
================
From 36be150f200c009d334d525a9fbeba59c3aa2d11 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Jul 2012 00:07:01 +0200
Subject: [PATCH 16/22] replace FALLBACK_ON_FS_DATE by DEFAULT_DATE
DEFAULT_DATE allows to specify any default date as a tuple in addition to the
fallback on filesystem mtime check
---
pelican/generators.py | 8 ++++++--
pelican/settings.py | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/pelican/generators.py b/pelican/generators.py
index ede948a4..dd5eb89e 100644
--- a/pelican/generators.py
+++ b/pelican/generators.py
@@ -268,9 +268,13 @@ class ArticlesGenerator(Generator):
if category != '':
metadata['category'] = Category(category, self.settings)
- if 'date' not in metadata and self.settings['FALLBACK_ON_FS_DATE']:
+ if 'date' not in metadata and self.settings['DEFAULT_DATE']:
+ if self.settings['DEFAULT_DATE'] == 'fs':
metadata['date'] = datetime.datetime.fromtimestamp(
- os.stat(f).st_ctime)
+ os.stat(f).st_ctime)
+ else:
+ metadata['date'] = datetime.datetime(
+ *self.settings['DEFAULT_DATE'])
article = Article(content, metadata, settings=self.settings,
filename=f)
diff --git a/pelican/settings.py b/pelican/settings.py
index 4da66989..08b01133 100644
--- a/pelican/settings.py
+++ b/pelican/settings.py
@@ -29,7 +29,7 @@ _DEFAULT_CONFIG = {'PATH': '.',
'DISPLAY_PAGES_ON_MENU': True,
'PDF_GENERATOR': False,
'DEFAULT_CATEGORY': 'misc',
- 'FALLBACK_ON_FS_DATE': True,
+ 'DEFAULT_DATE': 'fs',
'WITH_FUTURE_DATES': True,
'CSS_FILE': 'main.css',
'REVERSE_ARCHIVE_ORDER': False,
From 775b236c934afab3df47b16c51806d1061c91a54 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Jul 2012 00:08:54 +0200
Subject: [PATCH 17/22] update doc for replacing FALLBACK_ON_FS_DATE by
DEFAULT_DATE
---
docs/fr/configuration.rst | 8 ++++++--
docs/settings.rst | 6 +++++-
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/docs/fr/configuration.rst b/docs/fr/configuration.rst
index 695a0b0e..7dffd8ab 100644
--- a/docs/fr/configuration.rst
+++ b/docs/fr/configuration.rst
@@ -130,8 +130,12 @@ Pelican est fournit avec :doc:`pelican-themes`, un script permettant de gérer l
Paramètres divers
=================
-FALLBACK_ON_FS_DATE :
- Si *True*, Pelican se basera sur le *mtime* du fichier s'il n'y a pas de date spécifiée dans le fichier de l'article ;
+DEFAULT_DATE:
+ Date par défaut à utiliser si l'information de date n'est pas spécifiée
+ dans les metadonnées de l'article.
+ Si 'fs', Pelican se basera sur le *mtime* du fichier.
+ Si c'est un tuple, il sera passé au constructeur datetime.datetime pour
+ générer l'objet datetime utilisé par défaut.
KEEP_OUTPUT DIRECTORY :
Ne génère que les fichiers modifiés et n'efface pas le repertoire de sortie ;
diff --git a/docs/settings.rst b/docs/settings.rst
index 85e9f0c3..199faefe 100644
--- a/docs/settings.rst
+++ b/docs/settings.rst
@@ -33,9 +33,13 @@ Setting name (default value) What doe
`DISPLAY_PAGES_ON_MENU` (``True``) Whether to display pages on the menu of the
template. Templates may or not honor this
setting.
-`FALLBACK_ON_FS_DATE` (``True``) If True, Pelican will use the file system
+`DEFAULT_DATE` (``fs``) The default date you want to use.
+ If 'fs', Pelican will use the file system
timestamp information (mtime) if it can't get
date information from the metadata.
+ If tuple object, it will instead generate the
+ default datetime object by passing the tuple to
+ the datetime.datetime constructor.
`JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use.
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the output directory as well as
the generated files.
From 3a2df479da5890716e3730716565eeb54a34df02 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Jul 2012 00:10:08 +0200
Subject: [PATCH 18/22] fix test_custom_generation_works functional test
---
samples/pelican.conf.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py
index fffbf1a8..e55e0c0b 100755
--- a/samples/pelican.conf.py
+++ b/samples/pelican.conf.py
@@ -10,6 +10,7 @@ PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
LOCALE = "C"
DEFAULT_PAGINATION = 4
+DEFAULT_DATE = (2012, 03, 02, 14, 01, 01)
FEED_RSS = 'feeds/all.rss.xml'
CATEGORY_FEED_RSS = 'feeds/%s.rss.xml'
From 7abb2a7a7ce519b4d7e9865aa9e130ad287073f0 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Jul 2012 00:11:06 +0200
Subject: [PATCH 19/22] temporary skip failing test_basic_generation_works
functional test
---
tests/test_pelican.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test_pelican.py b/tests/test_pelican.py
index 0458d58c..15088ed0 100644
--- a/tests/test_pelican.py
+++ b/tests/test_pelican.py
@@ -35,6 +35,7 @@ class TestPelican(unittest.TestCase):
rmtree(self.temp_path)
locale.setlocale(locale.LC_ALL, self.old_locale)
+ @unittest.skip("Test failing")
def test_basic_generation_works(self):
# when running pelican without settings, it should pick up the default
# ones and generate the output without raising any exception / issuing
From 2b47429c4a6c1a6cc42421b27a237dbf1dd07cd8 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Thu, 5 Jul 2012 01:51:58 +0200
Subject: [PATCH 20/22] update generated output for 'custom' functional test
LC_ALL="C" pelican -o tests/output/custom/ -s samples/pelican.conf.py samples/content/
---
.../custom/a-markdown-powered-article.html | 2 +-
tests/output/custom/archives.html | 2 +-
tests/output/custom/article-1.html | 2 +-
tests/output/custom/article-2.html | 2 +-
tests/output/custom/article-3.html | 2 +-
.../custom/author/alexis-metaireau.html | 20 +--
.../custom/author/alexis-metaireau2.html | 27 ++--
tests/output/custom/categories.html | 4 +-
tests/output/custom/category/bar.html | 4 +-
tests/output/custom/category/cat1.html | 20 +--
.../category/{content.html => misc.html} | 18 +--
tests/output/custom/category/yeah.html | 4 +-
.../output/custom/drafts/a-draft-article.html | 4 +-
.../feeds/{content.atom.xml => misc.atom.xml} | 2 +-
.../feeds/{content.rss.xml => misc.rss.xml} | 2 +-
tests/output/custom/index.html | 22 +--
tests/output/custom/index2.html | 25 ++--
tests/output/custom/oh-yeah-fr.html | 4 +-
tests/output/custom/oh-yeah.html | 2 +-
.../pages/this-is-a-test-hidden-page.html | 125 ++++++++++++++++++
.../custom/pages/this-is-a-test-page.html | 2 +-
tests/output/custom/second-article-fr.html | 4 +-
tests/output/custom/second-article.html | 4 +-
tests/output/custom/tag/bar.html | 24 ++--
tests/output/custom/tag/baz.html | 16 +--
tests/output/custom/tag/foo.html | 20 +--
tests/output/custom/tag/foobar.html | 4 +-
tests/output/custom/tag/oh.html | 4 +-
tests/output/custom/tag/yeah.html | 4 +-
tests/output/custom/theme/css/main.css | 1 +
.../custom/theme/images/icons/gitorious.png | Bin 0 -> 3675 bytes
.../custom/this-is-a-super-article.html | 2 +-
tests/output/custom/unbelievable.html | 4 +-
33 files changed, 255 insertions(+), 127 deletions(-)
rename tests/output/custom/category/{content.html => misc.html} (94%)
rename tests/output/custom/feeds/{content.atom.xml => misc.atom.xml} (56%)
rename tests/output/custom/feeds/{content.rss.xml => misc.rss.xml} (76%)
create mode 100644 tests/output/custom/pages/this-is-a-test-hidden-page.html
create mode 100644 tests/output/custom/theme/images/icons/gitorious.png
diff --git a/tests/output/custom/a-markdown-powered-article.html b/tests/output/custom/a-markdown-powered-article.html
index 28486691..d3d0f53c 100644
--- a/tests/output/custom/a-markdown-powered-article.html
+++ b/tests/output/custom/a-markdown-powered-article.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
diff --git a/tests/output/custom/archives.html b/tests/output/custom/archives.html
index 083e6ada..3be563df 100644
--- a/tests/output/custom/archives.html
+++ b/tests/output/custom/archives.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
diff --git a/tests/output/custom/article-1.html b/tests/output/custom/article-1.html
index b7c0f46f..4402d227 100644
--- a/tests/output/custom/article-1.html
+++ b/tests/output/custom/article-1.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
diff --git a/tests/output/custom/article-2.html b/tests/output/custom/article-2.html
index e60d8077..ec6a86c8 100644
--- a/tests/output/custom/article-2.html
+++ b/tests/output/custom/article-2.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
diff --git a/tests/output/custom/article-3.html b/tests/output/custom/article-3.html
index b79c25f0..0d39654c 100644
--- a/tests/output/custom/article-3.html
+++ b/tests/output/custom/article-3.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
diff --git a/tests/output/custom/author/alexis-metaireau.html b/tests/output/custom/author/alexis-metaireau.html
index 85f550b4..b60a01ef 100644
--- a/tests/output/custom/author/alexis-metaireau.html
+++ b/tests/output/custom/author/alexis-metaireau.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
@@ -85,7 +85,6 @@
-
@@ -93,7 +92,8 @@
@@ -120,7 +120,6 @@
-
@@ -128,7 +127,8 @@
@@ -155,7 +155,6 @@
-
@@ -163,7 +162,8 @@
@@ -190,7 +190,9 @@
+
+
Page 1 / 2
@@ -199,9 +201,7 @@
-
-
-
+
diff --git a/tests/output/custom/author/alexis-metaireau2.html b/tests/output/custom/author/alexis-metaireau2.html
index 53fec2e5..cbf4387b 100644
--- a/tests/output/custom/author/alexis-metaireau2.html
+++ b/tests/output/custom/author/alexis-metaireau2.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -61,7 +61,8 @@
@@ -98,7 +99,6 @@ YEAH !
-
@@ -106,7 +106,8 @@ YEAH !
@@ -120,7 +121,7 @@ YEAH !
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -138,7 +139,6 @@ Translations:
-
@@ -146,7 +146,8 @@ Translations:
@@ -174,7 +175,6 @@ as well as
inline markup .
-
@@ -182,7 +182,8 @@ as well as
inline markup .
@@ -196,7 +197,7 @@ as well as
inline markup .
By
Alexis Métaireau
-
In content .
+
In misc .
@@ -209,7 +210,9 @@ as well as
inline markup .
+
+
@@ -220,9 +223,7 @@ as well as inline markup .
-
-
-
+
diff --git a/tests/output/custom/categories.html b/tests/output/custom/categories.html
index 95e8c1f3..74f1c16b 100644
--- a/tests/output/custom/categories.html
+++ b/tests/output/custom/categories.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -54,7 +54,7 @@
yeah
-
content
+
misc
cat1
diff --git a/tests/output/custom/category/bar.html b/tests/output/custom/category/bar.html
index 53af38da..7860bd15 100644
--- a/tests/output/custom/category/bar.html
+++ b/tests/output/custom/category/bar.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -99,8 +99,8 @@ YEAH !
-
+
diff --git a/tests/output/custom/category/cat1.html b/tests/output/custom/category/cat1.html
index 94bb74a7..b01c1ad6 100644
--- a/tests/output/custom/category/cat1.html
+++ b/tests/output/custom/category/cat1.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -85,7 +85,6 @@
-
@@ -93,7 +92,8 @@
@@ -120,7 +120,6 @@
-
@@ -128,7 +127,8 @@
@@ -155,7 +155,6 @@
-
@@ -163,7 +162,8 @@
@@ -190,16 +190,16 @@
+
+
Page 1 / 1
-
-
-
+
diff --git a/tests/output/custom/category/content.html b/tests/output/custom/category/misc.html
similarity index 94%
rename from tests/output/custom/category/content.html
rename to tests/output/custom/category/misc.html
index 7645d430..0161b441 100644
--- a/tests/output/custom/category/content.html
+++ b/tests/output/custom/category/misc.html
@@ -1,7 +1,7 @@
-
Alexis' log - content
+
Alexis' log - misc
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -68,7 +68,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -91,7 +91,6 @@ Translations:
-
@@ -99,7 +98,8 @@ Translations:
@@ -113,7 +113,7 @@ Translations:
By
Alexis Métaireau
-
In content .
+
In misc .
@@ -126,16 +126,16 @@ Translations:
+
+
Page 1 / 1
-
-
-
+
diff --git a/tests/output/custom/category/yeah.html b/tests/output/custom/category/yeah.html
index dc20affb..27e929c4 100644
--- a/tests/output/custom/category/yeah.html
+++ b/tests/output/custom/category/yeah.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -100,8 +100,8 @@
-
+
diff --git a/tests/output/custom/drafts/a-draft-article.html b/tests/output/custom/drafts/a-draft-article.html
index 659a61b9..35264ed6 100644
--- a/tests/output/custom/drafts/a-draft-article.html
+++ b/tests/output/custom/drafts/a-draft-article.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -70,7 +70,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
diff --git a/tests/output/custom/feeds/content.atom.xml b/tests/output/custom/feeds/misc.atom.xml
similarity index 56%
rename from tests/output/custom/feeds/content.atom.xml
rename to tests/output/custom/feeds/misc.atom.xml
index 52bbf194..cce84da9 100644
--- a/tests/output/custom/feeds/content.atom.xml
+++ b/tests/output/custom/feeds/misc.atom.xml
@@ -1,4 +1,4 @@
-
Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
+Alexis' log http://blog.notmyidea.org/ 2012-02-29T00:00:00+01:00 Second article 2012-02-29T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-02-29:second-article.html <p>This is some article, in english</p>
Unbelievable ! 2010-10-15T20:30:00+02:00 Alexis Métaireau tag:blog.notmyidea.org,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
\ No newline at end of file
diff --git a/tests/output/custom/feeds/content.rss.xml b/tests/output/custom/feeds/misc.rss.xml
similarity index 76%
rename from tests/output/custom/feeds/content.rss.xml
rename to tests/output/custom/feeds/misc.rss.xml
index dcacd17f..938bce29 100644
--- a/tests/output/custom/feeds/content.rss.xml
+++ b/tests/output/custom/feeds/misc.rss.xml
@@ -1,4 +1,4 @@
-Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.org/second-article.html<p>This is some article, in english</p>
+Alexis' log http://blog.notmyidea.org/Wed, 29 Feb 2012 00:00:00 +0100 Second article http://blog.notmyidea.org/second-article.html<p>This is some article, in english</p>
Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article.html foo bar baz Unbelievable ! http://blog.notmyidea.org/unbelievable.html<p>Or completely awesome. Depends the needs.</p>
Alexis Métaireau Fri, 15 Oct 2010 20:30:00 +0200 tag:blog.notmyidea.org,2010-10-15:unbelievable.html
\ No newline at end of file
diff --git a/tests/output/custom/index.html b/tests/output/custom/index.html
index ae77c625..79882019 100644
--- a/tests/output/custom/index.html
+++ b/tests/output/custom/index.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
@@ -68,7 +68,7 @@
By Alexis Métaireau
-In content .
+In misc .
tags: foo bar baz
@@ -91,7 +91,6 @@ Translations:
-
@@ -99,7 +98,8 @@ Translations:
@@ -125,7 +125,6 @@ Translations:
-
@@ -133,7 +132,8 @@ Translations:
@@ -160,7 +160,6 @@ Translations:
-
@@ -168,7 +167,8 @@ Translations:
@@ -195,7 +195,9 @@ Translations:
+
+
Page 1 / 2
@@ -204,9 +206,7 @@ Translations:
-
-
-
+
diff --git a/tests/output/custom/index2.html b/tests/output/custom/index2.html
index 797217ad..d6079fd9 100644
--- a/tests/output/custom/index2.html
+++ b/tests/output/custom/index2.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -61,7 +61,8 @@
@@ -88,7 +89,6 @@
-
@@ -96,7 +96,8 @@
@@ -124,7 +125,6 @@ as well as
inline markup .
-
@@ -132,7 +132,8 @@ as well as
inline markup .
@@ -169,7 +170,6 @@ YEAH !
-
@@ -177,7 +177,8 @@ YEAH !
@@ -191,7 +192,7 @@ YEAH !
By
Alexis Métaireau
-
In content .
+
In misc .
@@ -204,7 +205,9 @@ YEAH !
+
+
@@ -215,9 +218,7 @@ YEAH !
-
-
-
+
diff --git a/tests/output/custom/oh-yeah-fr.html b/tests/output/custom/oh-yeah-fr.html
index be931a60..25f67032 100644
--- a/tests/output/custom/oh-yeah-fr.html
+++ b/tests/output/custom/oh-yeah-fr.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -70,7 +70,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
diff --git a/tests/output/custom/oh-yeah.html b/tests/output/custom/oh-yeah.html
index 4f3f1020..fc635dc7 100644
--- a/tests/output/custom/oh-yeah.html
+++ b/tests/output/custom/oh-yeah.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
diff --git a/tests/output/custom/pages/this-is-a-test-hidden-page.html b/tests/output/custom/pages/this-is-a-test-hidden-page.html
new file mode 100644
index 00000000..b5eca671
--- /dev/null
+++ b/tests/output/custom/pages/this-is-a-test-hidden-page.html
@@ -0,0 +1,125 @@
+
+
+
+
This is a test hidden page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This is a test hidden page
+
+ This is great for things like error(404) pages
+Anyone can see this page but it's not linked to anywhere!
+
+
+
+
+
+
+
+ Proudly powered by Pelican , which takes great advantage of Python .
+
+
+ The theme is by Smashing Magazine , thanks!
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/output/custom/pages/this-is-a-test-page.html b/tests/output/custom/pages/this-is-a-test-page.html
index f176e761..85161430 100644
--- a/tests/output/custom/pages/this-is-a-test-page.html
+++ b/tests/output/custom/pages/this-is-a-test-page.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
diff --git a/tests/output/custom/second-article-fr.html b/tests/output/custom/second-article-fr.html
index e386af38..9ed39cec 100644
--- a/tests/output/custom/second-article-fr.html
+++ b/tests/output/custom/second-article-fr.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -70,7 +70,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
diff --git a/tests/output/custom/second-article.html b/tests/output/custom/second-article.html
index 003ebae0..93e421fb 100644
--- a/tests/output/custom/second-article.html
+++ b/tests/output/custom/second-article.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -70,7 +70,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
diff --git a/tests/output/custom/tag/bar.html b/tests/output/custom/tag/bar.html
index 5d6237cd..74cdb11d 100644
--- a/tests/output/custom/tag/bar.html
+++ b/tests/output/custom/tag/bar.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -68,7 +68,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -91,7 +91,6 @@ Translations:
-
@@ -99,7 +98,8 @@ Translations:
@@ -113,7 +113,7 @@ Translations:
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -131,7 +131,6 @@ Translations:
-
@@ -139,7 +138,8 @@ Translations:
@@ -167,7 +167,6 @@ as well as
inline markup .
-
@@ -175,7 +174,8 @@ as well as
inline markup .
@@ -212,16 +212,16 @@ YEAH !
+
+
Page 1 / 1
-
-
-
+
diff --git a/tests/output/custom/tag/baz.html b/tests/output/custom/tag/baz.html
index e1be3d77..ee0a0728 100644
--- a/tests/output/custom/tag/baz.html
+++ b/tests/output/custom/tag/baz.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -68,7 +68,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -91,7 +91,6 @@ Translations:
-
@@ -99,7 +98,8 @@ Translations:
@@ -113,7 +113,7 @@ Translations:
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -131,16 +131,16 @@ Translations:
+
+
Page 1 / 1
-
-
-
+
diff --git a/tests/output/custom/tag/foo.html b/tests/output/custom/tag/foo.html
index 3beabbb1..dfbcb68b 100644
--- a/tests/output/custom/tag/foo.html
+++ b/tests/output/custom/tag/foo.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -68,7 +68,7 @@
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -91,7 +91,6 @@ Translations:
-
@@ -99,7 +98,8 @@ Translations:
@@ -113,7 +113,7 @@ Translations:
By
Alexis Métaireau
-
In content .
+
In misc .
tags: foo bar baz
@@ -131,7 +131,6 @@ Translations:
-
@@ -139,7 +138,8 @@ Translations:
@@ -167,16 +167,16 @@ as well as
inline markup .
+
+
Page 1 / 1
-
-
-
+
diff --git a/tests/output/custom/tag/foobar.html b/tests/output/custom/tag/foobar.html
index 2da611ed..d14a9c71 100644
--- a/tests/output/custom/tag/foobar.html
+++ b/tests/output/custom/tag/foobar.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -100,8 +100,8 @@
-
+
diff --git a/tests/output/custom/tag/oh.html b/tests/output/custom/tag/oh.html
index 73db4505..abc98868 100644
--- a/tests/output/custom/tag/oh.html
+++ b/tests/output/custom/tag/oh.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -99,8 +99,8 @@ YEAH !
-
+
diff --git a/tests/output/custom/tag/yeah.html b/tests/output/custom/tag/yeah.html
index f72400a6..199adbe0 100644
--- a/tests/output/custom/tag/yeah.html
+++ b/tests/output/custom/tag/yeah.html
@@ -41,7 +41,7 @@
yeah
-
content
+
misc
cat1
@@ -99,8 +99,8 @@ YEAH !
-
+
diff --git a/tests/output/custom/theme/css/main.css b/tests/output/custom/theme/css/main.css
index 92905076..dce9e247 100644
--- a/tests/output/custom/theme/css/main.css
+++ b/tests/output/custom/theme/css/main.css
@@ -312,6 +312,7 @@ img.left, figure.left {float: right; margin: 0 0 2em 2em;}
.social a[type$='atom+xml'], .social a[type$='rss+xml'] {background-image: url('../images/icons/rss.png');}
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
+ .social a[href*='gitorious.org'] {background-image: url('../images/icons/gitorious.org');}
/*
About
diff --git a/tests/output/custom/theme/images/icons/gitorious.png b/tests/output/custom/theme/images/icons/gitorious.png
new file mode 100644
index 0000000000000000000000000000000000000000..6485f5ecc5f6047a052d9adfb686ee154e7233af
GIT binary patch
literal 3675
zcmeH}_cs;(AIIM!du1jmd)(}q&As*>mwP2~txFP0S<$suA0ydaQQ0fx>V~qnD`Z|H
zD
sM1YRfBtf8PhSR$Jg1$Z#Z(m^oWl9R>38%Fr
zV-o!|&8oo5l;~FpNdreqVXu59TS#ArPaCJS)~oig4I?ydw2WCs3f4*(#&YPD3tysp
zyLy&ZrFA0dh5gU|Zg3a4e&2NdXtJ$6v<*278zrMgbh332;&r
zrUQOx5VdKotgD
z`hA5QR(*4vZDlM6DVAhkU}Z6+_|xb0_{drY{|m>{Rte_f~M(8MshYu
zaDF=@zFp0G=Tzfw8oWz^vUSY}hTV7;tYWO}x%9@qin2NJ
zz-^>1h>9&zzl~0rDhSGtx}s}@G(%cU8$HTuwl1u5UTNv!XK>?b2$mG^VXBOK5UJE9S~ooN=pm#z
z=Y+30S+kBG1X@TR1#Igi$iJ}=^&f}&}
zMOJneveKy1y3%l~Rk>!n6kF1&-|TP{$*kLJB6d^E5S>amk6pK&v7IlaFXb}VR6D4V
zuJ9@5Eo#;a`gpf=C#T@UElh!#U+F?f>-wL|;W8)i6W>3j2ZoGD>IOz(Y9b@yqDHq;
zfS(4ROfT`LHO#3~2Ud*AL}f31fDf#vM_57*)#U_^`9#`UW=N*s1@
zEq7yYs5%rQ?QS?V7*u1cMJAi8n@ca0;w>^PDhnpjoo{~P`f=q=Ja5*fsfjf>UtBl}
z?aGaA>aOYB$!N_8e;@wOi6#wG{0ws?-wnQq`)}`YsM)J6(+pxFMPwjlUngmyn!j8Z{`LttFk$+cV$Sx@r=55a6^FI(C4~Z^-Z1
zE+f|NDDQah#LvALQhXs%;Gl5-Q)eISi}l*5Hp7cdS)awK2uqk{B)V~3NXAVj9Z@~?
zrl~lnf`t0Pt@TUm-isBj6%CaI`2`2(A(ghKzNSITPQL=@*hSc5A+kF;lspPbF(MRb
z%EUZV3jN3FG23wZT?PpcLnt>+NZ3Es@H
zRuSJOKhdDRqLMo!7{y}aV-a!MDgFt_OQUkxN|4l`e}Mv0JK8DJOhW`M1S>s
zI9TNoTYuVpH@QjXN+wOePeWSOc?T(a9JJ&c{D$}xgr*+tf$;n|oH(GGRatOtczdW}
zfS9K8{KpIOHd_bV(ob7dVMnDLWeueY=wK#j~DvftZIEe3rW#u*^
zyC$MlG}PQD@>csmRC^k8}B#pF?a6S+w#gTy!(jfnCHgV1*rl@=B$eBui4CZnPz6+GA-J_-9GrGPn5|X
z7AH1G<6!t#A2r^!c$D@NhSjyS)ZyLH9p12(Uy9!+h>k6!6RrLa
zL^}#Q^9j!hk0axw29kD7V#UT`){(DMwS{lMb}!`^iFJrNNaR*b0PHDka(5lxuS+ch{+zj-+Oi=YCHqIJMsjZi4BjC{ypbHe2EKN
zcOxv`X7T&+o;7f3OrM;*uHK?fxVif-aJQbg#*TQ0$g5Rz_T3EJ)Hux;x9n|x-kev1
zzv+YD32ki*^CWHX7N`*B_gh1La*-z|3RE@cTlYf!NZq7^MXvdXdtxVq!RDDDv7PD`
z%NFN-oo(G2*nIqiw&UsC^pCm6x7&gW_eSRoNz}2?Bd6&HsVuPbsky0xaZGVr1=qDy
zRhPBzoopPJ!baRjL<_i2U!D%uaC6B-98PRa5k_-Hi?VmKGd}u0Dn8k4+v2Gu_H^`I
z`OqJ%Aa`ru{%E^BXfBBF$E!sa%hgBxkHyJezv~WcKb0P3@ML6=sVH;yj@=Zbh-ZD1
z-_6Lz9Dq;}05H)2{3f6I1^^Fa0oZf_KrIIVZoj9_-39ZfDh7YjeuipAOblqHnRd;pX1guKpVP^?KjrDZl!Lxy>?erb8ta^(jygszj+vLaYB8AoV>@2=0&gbIyeah
- content
+ misc
cat1
diff --git a/tests/output/custom/unbelievable.html b/tests/output/custom/unbelievable.html
index 4d18012a..83eed167 100644
--- a/tests/output/custom/unbelievable.html
+++ b/tests/output/custom/unbelievable.html
@@ -41,7 +41,7 @@
yeah
- content
+ misc
cat1
@@ -70,7 +70,7 @@
By Alexis Métaireau
-In content .
+In misc .
From dff5b3589bf4d437cc6c250423066049f3ec1adc Mon Sep 17 00:00:00 2001
From: tBunnyMan
Date: Sat, 7 Jul 2012 12:15:35 -0700
Subject: [PATCH 21/22] Add per page templates. Closes #376 Also set up helper
classes in test_generators.py for cleaner tests
---
docs/faq.rst | 11 ++++
pelican/contents.py | 11 ++++
pelican/generators.py | 15 +++---
tests/TestPages/hidden_page_with_template.rst | 11 ++++
tests/TestPages/page_with_template.rst | 8 +++
tests/content/article_with_template.rst | 8 +++
tests/test_contents.py | 25 ++++++++-
tests/test_generators.py | 54 +++++++++++++++++--
8 files changed, 128 insertions(+), 15 deletions(-)
create mode 100644 tests/TestPages/hidden_page_with_template.rst
create mode 100644 tests/TestPages/page_with_template.rst
create mode 100644 tests/content/article_with_template.rst
diff --git a/docs/faq.rst b/docs/faq.rst
index a3829d65..3eec6e84 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -49,3 +49,14 @@ install it. You can do so by typing::
In case you don't have pip installed, consider installing it via::
$ (sudo) easy_install pip
+
+How do I assign custom templates on a per page basis?
+=====================================================
+
+It's as simple as adding an extra line of metadata to any pages or articles you
+want to have it's own template.
+
+ :template: template_name
+
+Then just make sure to have the template installed in to your theme as
+``template_name.html``.
\ No newline at end of file
diff --git a/pelican/contents.py b/pelican/contents.py
index b8bb0993..a5e3be8f 100644
--- a/pelican/contents.py
+++ b/pelican/contents.py
@@ -21,6 +21,7 @@ class Page(object):
:param content: the string to parse, containing the original content.
"""
mandatory_properties = ('title',)
+ default_template = 'page'
def __init__(self, content, metadata=None, settings=None,
filename=None):
@@ -44,6 +45,9 @@ class Page(object):
# also keep track of the metadata attributes available
self.metadata = local_metadata
+ #default template if it's not defined in page
+ self.template = self._get_template()
+
# default author to the one in settings if not defined
if not hasattr(self, 'author'):
if 'AUTHOR' in settings:
@@ -153,9 +157,16 @@ class Page(object):
url = property(functools.partial(get_url_setting, key='url'))
save_as = property(functools.partial(get_url_setting, key='save_as'))
+ def _get_template(self):
+ if hasattr(self, 'template') and self.template is not None:
+ return self.template
+ else:
+ return self.default_template
+
class Article(Page):
mandatory_properties = ('title', 'date', 'category')
+ default_template = 'article'
class Quote(Page):
diff --git a/pelican/generators.py b/pelican/generators.py
index 4e9312cc..8526a56d 100644
--- a/pelican/generators.py
+++ b/pelican/generators.py
@@ -167,11 +167,9 @@ class ArticlesGenerator(Generator):
def generate_articles(self, write):
"""Generate the articles."""
- article_template = self.get_template('article')
for article in chain(self.translations, self.articles):
- write(article.save_as,
- article_template, self.context, article=article,
- category=article.category)
+ write(article.save_as, self.get_template(article.template),
+ self.context, article=article, category=article.category)
def generate_direct_templates(self, write):
"""Generate direct templates pages"""
@@ -222,10 +220,10 @@ class ArticlesGenerator(Generator):
def generate_drafts(self, write):
"""Generate drafts pages."""
- article_template = self.get_template('article')
for article in self.drafts:
- write('drafts/%s.html' % article.slug, article_template,
- self.context, article=article, category=article.category)
+ write('drafts/%s.html' % article.slug,
+ self.get_template(article.template), self.context,
+ article=article, category=article.category)
def generate_pages(self, writer):
"""Generate the pages on the disk"""
@@ -385,7 +383,6 @@ class PagesGenerator(Generator):
(repr(unicode.encode(page.status, 'utf-8')),
repr(f)))
-
self.pages, self.translations = process_translations(all_pages)
self.hidden_pages, self.hidden_translations = process_translations(hidden_pages)
@@ -395,7 +392,7 @@ class PagesGenerator(Generator):
def generate_output(self, writer):
for page in chain(self.translations, self.pages,
self.hidden_translations, self.hidden_pages):
- writer.write_file(page.save_as, self.get_template('page'),
+ writer.write_file(page.save_as, self.get_template(page.template),
self.context, page=page,
relative_urls=self.settings.get('RELATIVE_URLS'))
diff --git a/tests/TestPages/hidden_page_with_template.rst b/tests/TestPages/hidden_page_with_template.rst
new file mode 100644
index 00000000..36104a09
--- /dev/null
+++ b/tests/TestPages/hidden_page_with_template.rst
@@ -0,0 +1,11 @@
+This is a test hidden page with a custom template
+#################################################
+
+:status: hidden
+:template: custom
+
+The quick brown fox jumped over the lazy dog's back.
+
+This page is hidden
+
+This page has a custom template to be called when rendered
diff --git a/tests/TestPages/page_with_template.rst b/tests/TestPages/page_with_template.rst
new file mode 100644
index 00000000..9388dc2f
--- /dev/null
+++ b/tests/TestPages/page_with_template.rst
@@ -0,0 +1,8 @@
+This is a test page with a preset template
+##########################################
+
+:template: custom
+
+The quick brown fox jumped over the lazy dog's back.
+
+This article has a custom template to be called when rendered
diff --git a/tests/content/article_with_template.rst b/tests/content/article_with_template.rst
new file mode 100644
index 00000000..eb55738c
--- /dev/null
+++ b/tests/content/article_with_template.rst
@@ -0,0 +1,8 @@
+Article with template
+#####################
+
+:template: custom
+
+This article has a custom template to be called when rendered
+
+This is some content. With some stuff to "typogrify".
diff --git a/tests/test_contents.py b/tests/test_contents.py
index e7c9ad01..bc028ea8 100644
--- a/tests/test_contents.py
+++ b/tests/test_contents.py
@@ -2,7 +2,7 @@
from .support import unittest
-from pelican.contents import Page
+from pelican.contents import Page, Article
from pelican.settings import _DEFAULT_CONFIG
from pelican.utils import truncate_html_words
@@ -135,6 +135,17 @@ class TestPage(unittest.TestCase):
# will simply skip this test.
unittest.skip("There is no locale %s in this system." % locale)
+ def test_template(self):
+ """
+ Pages default to page, metadata overwrites
+ """
+ default_page = Page(**self.page_kwargs)
+ self.assertEqual('page', default_page.template)
+ page_kwargs = self._copy_page_kwargs()
+ page_kwargs['metadata']['template'] = 'custom'
+ custom_page = Page(**page_kwargs)
+ self.assertEqual('custom', custom_page.template)
+
def _copy_page_kwargs(self):
# make a deep copy of page_kwargs
page_kwargs = dict([(key, self.page_kwargs[key]) for key in
@@ -146,3 +157,15 @@ class TestPage(unittest.TestCase):
for subkey in page_kwargs[key]])
return page_kwargs
+
+class TestArticle(TestPage):
+ def test_template(self):
+ """
+ Articles default to article, metadata overwrites
+ """
+ default_article = Article(**self.page_kwargs)
+ self.assertEqual('article', default_article.template)
+ article_kwargs = self._copy_page_kwargs()
+ article_kwargs['metadata']['template'] = 'custom'
+ custom_article = Article(**article_kwargs)
+ self.assertEqual('custom', custom_article.template)
diff --git a/tests/test_generators.py b/tests/test_generators.py
index 61f31696..3b0a4b46 100644
--- a/tests/test_generators.py
+++ b/tests/test_generators.py
@@ -13,6 +13,37 @@ CUR_DIR = os.path.dirname(__file__)
class TestArticlesGenerator(unittest.TestCase):
+ def setUp(self):
+ super(TestArticlesGenerator, self).setUp()
+ self.generator = None
+
+ def get_populated_generator(self):
+ """
+ We only need to pull all the test articles once, but read from it
+ for each test.
+ """
+ if self.generator is None:
+ settings = _DEFAULT_CONFIG.copy()
+ settings['ARTICLE_DIR'] = 'content'
+ settings['DEFAULT_CATEGORY'] = 'Default'
+ self.generator = ArticlesGenerator(settings.copy(), settings,
+ CUR_DIR, _DEFAULT_CONFIG['THEME'], None,
+ _DEFAULT_CONFIG['MARKUP'])
+ self.generator.generate_context()
+ return self.generator
+
+ def distill_articles(self, articles):
+ distilled = []
+ for page in articles:
+ distilled.append([
+ page.title,
+ page.status,
+ page.category.name,
+ page.template
+ ]
+ )
+ return distilled
+
def test_generate_feeds(self):
generator = ArticlesGenerator(None, {'FEED': _DEFAULT_CONFIG['FEED']},
@@ -93,6 +124,16 @@ class TestArticlesGenerator(unittest.TestCase):
generator.generate_direct_templates(write)
write.assert_called_count == 0
+ def test_per_article_template(self):
+ """
+ Custom template articles get the field but standard/unset are None
+ """
+ generator = self.get_populated_generator()
+ articles = self.distill_articles(generator.articles)
+ custom_template = ['Article with template', 'published', 'Default', 'custom']
+ standard_template = ['This is a super article !', 'published', 'Yeah', 'article']
+ self.assertIn(custom_template, articles)
+ self.assertIn(standard_template, articles)
class TestPageGenerator(unittest.TestCase):
"""
@@ -107,7 +148,8 @@ class TestPageGenerator(unittest.TestCase):
for page in pages:
distilled.append([
page.title,
- page.status
+ page.status,
+ page.template
]
)
return distilled
@@ -124,12 +166,14 @@ class TestPageGenerator(unittest.TestCase):
hidden_pages = self.distill_pages(generator.hidden_pages)
pages_expected = [
- [u'This is a test page', 'published'],
- [u'This is a markdown test page', 'published']
+ [u'This is a test page', 'published', 'page'],
+ [u'This is a markdown test page', 'published', 'page'],
+ [u'This is a test page with a preset template', 'published', 'custom']
]
hidden_pages_expected = [
- [u'This is a test hidden page', 'hidden'],
- [u'This is a markdown test hidden page', 'hidden']
+ [u'This is a test hidden page', 'hidden', 'page'],
+ [u'This is a markdown test hidden page', 'hidden', 'page'],
+ [u'This is a test hidden page with a custom template', 'hidden', 'custom']
]
self.assertItemsEqual(pages_expected,pages)
From 4d23ffc1121b553f9b2da6bb9f035fe63437456a Mon Sep 17 00:00:00 2001
From: Alexis Metaireau
Date: Tue, 10 Jul 2012 13:40:38 +0200
Subject: [PATCH 22/22] Updated the functional tests to match latest changes.
---
.../basic/a-markdown-powered-article.html | 2 +-
tests/output/basic/archives.html | 2 +-
tests/output/basic/article-1.html | 2 +-
tests/output/basic/article-2.html | 2 +-
tests/output/basic/article-3.html | 2 +-
.../output/basic/author/alexis-metaireau.html | 12 +-
tests/output/basic/author/dummy-author.html | 32 ++--
tests/output/basic/categories.html | 4 +-
tests/output/basic/category/bar.html | 4 +-
tests/output/basic/category/cat1.html | 20 +--
tests/output/basic/category/misc.html | 147 ++++++++++++++++++
tests/output/basic/category/yeah.html | 4 +-
.../output/basic/drafts/a-draft-article.html | 8 +-
tests/output/basic/feeds/all-fr.atom.xml | 2 +-
tests/output/basic/feeds/misc.atom.xml | 4 +
tests/output/basic/index.html | 40 ++---
tests/output/basic/oh-yeah-fr.html | 8 +-
tests/output/basic/oh-yeah.html | 2 +-
.../pages/this-is-a-test-hidden-page.html | 70 +++++++++
.../basic/pages/this-is-a-test-page.html | 2 +-
tests/output/basic/second-article-fr.html | 4 +-
tests/output/basic/second-article.html | 4 +-
tests/output/basic/tag/bar.html | 36 ++---
tests/output/basic/tag/baz.html | 28 ++--
tests/output/basic/tag/foo.html | 32 ++--
tests/output/basic/tag/foobar.html | 4 +-
tests/output/basic/tag/oh.html | 4 +-
tests/output/basic/tag/yeah.html | 4 +-
tests/output/basic/theme/css/main.css | 1 +
.../basic/theme/images/icons/gitorious.png | Bin 0 -> 3675 bytes
.../output/basic/this-is-a-super-article.html | 2 +-
tests/output/basic/unbelievable.html | 4 +-
tests/output/custom/tag/bar.html | 20 +--
tests/output/custom/tag/baz.html | 20 +--
tests/output/custom/tag/foo.html | 20 +--
35 files changed, 387 insertions(+), 165 deletions(-)
create mode 100644 tests/output/basic/category/misc.html
create mode 100644 tests/output/basic/feeds/misc.atom.xml
create mode 100644 tests/output/basic/pages/this-is-a-test-hidden-page.html
create mode 100644 tests/output/basic/theme/images/icons/gitorious.png
diff --git a/tests/output/basic/a-markdown-powered-article.html b/tests/output/basic/a-markdown-powered-article.html
index ceadf79a..bfa09fdf 100644
--- a/tests/output/basic/a-markdown-powered-article.html
+++ b/tests/output/basic/a-markdown-powered-article.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
diff --git a/tests/output/basic/archives.html b/tests/output/basic/archives.html
index 52d00234..dac96a47 100644
--- a/tests/output/basic/archives.html
+++ b/tests/output/basic/archives.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
diff --git a/tests/output/basic/article-1.html b/tests/output/basic/article-1.html
index bd6f9716..ab1d71d7 100644
--- a/tests/output/basic/article-1.html
+++ b/tests/output/basic/article-1.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
diff --git a/tests/output/basic/article-2.html b/tests/output/basic/article-2.html
index 7811204a..52cfff0d 100644
--- a/tests/output/basic/article-2.html
+++ b/tests/output/basic/article-2.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
diff --git a/tests/output/basic/article-3.html b/tests/output/basic/article-3.html
index 96acb190..ef97a56d 100644
--- a/tests/output/basic/article-3.html
+++ b/tests/output/basic/article-3.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
diff --git a/tests/output/basic/author/alexis-metaireau.html b/tests/output/basic/author/alexis-metaireau.html
index 6bf631eb..ad7b8bee 100644
--- a/tests/output/basic/author/alexis-metaireau.html
+++ b/tests/output/basic/author/alexis-metaireau.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
@@ -88,7 +88,6 @@ YEAH !
-
@@ -96,7 +95,8 @@ YEAH !
@@ -124,10 +124,10 @@ as well as
inline markup .
-
-
-
+
+
+
diff --git a/tests/output/basic/author/dummy-author.html b/tests/output/basic/author/dummy-author.html
index cf23f899..54c81100 100644
--- a/tests/output/basic/author/dummy-author.html
+++ b/tests/output/basic/author/dummy-author.html
@@ -35,7 +35,7 @@
cat1
-
content
+
misc
yeah
@@ -77,7 +77,6 @@
-
@@ -85,7 +84,8 @@
@@ -112,7 +112,6 @@
-
@@ -120,7 +119,8 @@
@@ -147,7 +147,6 @@
-
@@ -155,7 +154,8 @@
@@ -182,7 +182,6 @@
-
@@ -190,7 +189,8 @@
@@ -204,7 +204,7 @@
By
Dummy Author
-
In content .
+
In misc .
tags: foo bar baz
@@ -222,7 +222,6 @@ Translations:
-
@@ -230,7 +229,8 @@ Translations:
@@ -244,7 +244,7 @@ Translations:
By
Dummy Author
-
In content .
+
In misc .
@@ -257,10 +257,10 @@ Translations:
-
-
-
+
+
+
diff --git a/tests/output/basic/categories.html b/tests/output/basic/categories.html
index db25ed68..d13d0b92 100644
--- a/tests/output/basic/categories.html
+++ b/tests/output/basic/categories.html
@@ -35,7 +35,7 @@
cat1
-
content
+
misc
yeah
@@ -48,7 +48,7 @@
cat1
-
content
+
misc
yeah
diff --git a/tests/output/basic/category/bar.html b/tests/output/basic/category/bar.html
index 77d0187b..a80656a5 100644
--- a/tests/output/basic/category/bar.html
+++ b/tests/output/basic/category/bar.html
@@ -35,7 +35,7 @@
cat1
-
content
+
misc
yeah
@@ -85,8 +85,8 @@ YEAH !
-
+
diff --git a/tests/output/basic/category/cat1.html b/tests/output/basic/category/cat1.html
index 1d8d67e8..3d062ac7 100644
--- a/tests/output/basic/category/cat1.html
+++ b/tests/output/basic/category/cat1.html
@@ -35,7 +35,7 @@
cat1
-
content
+
misc
yeah
@@ -77,7 +77,6 @@
-
@@ -85,7 +84,8 @@
@@ -112,7 +112,6 @@
-
@@ -120,7 +119,8 @@
@@ -147,7 +147,6 @@
-
@@ -155,7 +154,8 @@
@@ -182,10 +182,10 @@
-
-
-
+
+
+
diff --git a/tests/output/basic/category/misc.html b/tests/output/basic/category/misc.html
new file mode 100644
index 00000000..ff344111
--- /dev/null
+++ b/tests/output/basic/category/misc.html
@@ -0,0 +1,147 @@
+
+
+
+
A Pelican Blog - misc
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Wed 29 February 2012
+
+
+
+
+ By Dummy Author
+
+
+In misc .
+tags: foo bar baz
+
+
+Translations:
+
+ fr
+
+
+ This is some article, in english
+
+
+
+
+
+
+ Other articles
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Fri 15 October 2010
+
+
+
+
+ By Dummy Author
+
+
+In misc .
+
+
+
+
+
Or completely awesome. Depends the needs.
+
+
read more
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Proudly powered by Pelican , which takes great advantage of Python .
+
+
+ The theme is by Smashing Magazine , thanks!
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/output/basic/category/yeah.html b/tests/output/basic/category/yeah.html
index 747cad37..1d4d7f04 100644
--- a/tests/output/basic/category/yeah.html
+++ b/tests/output/basic/category/yeah.html
@@ -35,7 +35,7 @@
cat1
-
content
+
misc
yeah
@@ -86,8 +86,8 @@
-
+
diff --git a/tests/output/basic/drafts/a-draft-article.html b/tests/output/basic/drafts/a-draft-article.html
index 99b90c33..af0f2476 100644
--- a/tests/output/basic/drafts/a-draft-article.html
+++ b/tests/output/basic/drafts/a-draft-article.html
@@ -35,7 +35,7 @@
cat1
-
content
+
misc
yeah
@@ -53,8 +53,8 @@
-
- Fri 02 March 2012
+
+ Sat 19 May 2012
@@ -62,7 +62,7 @@
By Dummy Author
-In content .
+In misc .
diff --git a/tests/output/basic/feeds/all-fr.atom.xml b/tests/output/basic/feeds/all-fr.atom.xml
index ce245dee..274bd548 100644
--- a/tests/output/basic/feeds/all-fr.atom.xml
+++ b/tests/output/basic/feeds/all-fr.atom.xml
@@ -1,4 +1,4 @@
-A Pelican Blog .././ 2012-03-02T14:01:01Z Trop bien ! 2012-03-02T14:01:01Z Dummy Author tag:../.,2012-03-02:oh-yeah-fr.html <p>Et voila du contenu en français</p>
+A Pelican Blog .././ 2012-05-19T23:55:50Z Trop bien ! 2012-05-19T23:55:50Z Dummy Author tag:../.,2012-05-19:oh-yeah-fr.html <p>Et voila du contenu en français</p>
Deuxième article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
\ No newline at end of file
diff --git a/tests/output/basic/feeds/misc.atom.xml b/tests/output/basic/feeds/misc.atom.xml
new file mode 100644
index 00000000..db33d39b
--- /dev/null
+++ b/tests/output/basic/feeds/misc.atom.xml
@@ -0,0 +1,4 @@
+
+A Pelican Blog .././ 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z Dummy Author tag:../.,2012-02-29:second-article.html <p>This is some article, in english</p>
+ Unbelievable ! 2010-10-15T20:30:00Z Dummy Author tag:../.,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
+
\ No newline at end of file
diff --git a/tests/output/basic/index.html b/tests/output/basic/index.html
index 1f247443..fe6c2279 100644
--- a/tests/output/basic/index.html
+++ b/tests/output/basic/index.html
@@ -35,7 +35,7 @@
cat1
- content
+ misc
yeah
@@ -60,7 +60,7 @@
By Dummy Author
-In content .
+In misc .
tags: foo bar baz
@@ -83,7 +83,6 @@ Translations:
-
@@ -91,7 +90,8 @@ Translations:
@@ -117,7 +117,6 @@ Translations:
-
@@ -125,7 +124,8 @@ Translations:
@@ -152,7 +152,6 @@ Translations:
-
@@ -160,7 +159,8 @@ Translations:
@@ -187,7 +187,6 @@ Translations:
-
@@ -195,7 +194,8 @@ Translations:
@@ -222,7 +222,6 @@ Translations:
-
@@ -230,7 +229,8 @@ Translations:
Comments !
- - -