From fc13ae8e7605db6cac1f3e7dfac5aa9777d088b0 Mon Sep 17 00:00:00 2001
From: Bruno Binet
Date: Fri, 30 Nov 2012 01:48:28 +0100
Subject: [PATCH] add new file to functional test content to showcase
FILENAME_METADATA
and update functional tests output
---
.../content/2012-11-30_filename-metadata.rst | 4 +
tests/output/basic/archives.html | 2 +
tests/output/basic/category/misc.html | 40 ++++--
tests/output/basic/feeds/all-en.atom.xml | 3 +-
tests/output/basic/feeds/all.atom.xml | 3 +-
tests/output/basic/feeds/misc.atom.xml | 3 +-
.../basic/filename_metadata-example.html | 66 ++++++++++
tests/output/basic/index.html | 40 ++++--
tests/output/custom/archives.html | 2 +
.../custom/author/alexis-metaireau.html | 2 +-
.../custom/author/alexis-metaireau2.html | 55 ++++-----
.../custom/author/alexis-metaireau3.html | 115 +++++++++++++++++
tests/output/custom/category/misc.html | 43 +++++--
tests/output/custom/feeds/all-en.atom.xml | 3 +-
tests/output/custom/feeds/all.atom.xml | 3 +-
tests/output/custom/feeds/all.rss.xml | 3 +-
tests/output/custom/feeds/misc.atom.xml | 3 +-
tests/output/custom/feeds/misc.rss.xml | 3 +-
.../custom/filename_metadata-example.html | 116 ++++++++++++++++++
tests/output/custom/index.html | 70 +++++------
tests/output/custom/index2.html | 55 ++++-----
tests/output/custom/index3.html | 115 +++++++++++++++++
22 files changed, 622 insertions(+), 127 deletions(-)
create mode 100644 samples/content/2012-11-30_filename-metadata.rst
create mode 100644 tests/output/basic/filename_metadata-example.html
create mode 100644 tests/output/custom/author/alexis-metaireau3.html
create mode 100644 tests/output/custom/filename_metadata-example.html
create mode 100644 tests/output/custom/index3.html
diff --git a/samples/content/2012-11-30_filename-metadata.rst b/samples/content/2012-11-30_filename-metadata.rst
new file mode 100644
index 00000000..b048103d
--- /dev/null
+++ b/samples/content/2012-11-30_filename-metadata.rst
@@ -0,0 +1,4 @@
+FILENAME_METADATA example
+#########################
+
+Some cool stuff!
diff --git a/tests/output/basic/archives.html b/tests/output/basic/archives.html
index 0bccff9b..cb06dfa1 100644
--- a/tests/output/basic/archives.html
+++ b/tests/output/basic/archives.html
@@ -33,6 +33,8 @@
Archives for A Pelican Blog
+ Fri 30 November 2012
+ FILENAME_METADATA example
Wed 29 February 2012
Second article
Wed 20 April 2011
diff --git a/tests/output/basic/category/misc.html b/tests/output/basic/category/misc.html
index 86cf5470..2d62b852 100644
--- a/tests/output/basic/category/misc.html
+++ b/tests/output/basic/category/misc.html
@@ -34,8 +34,32 @@
-
+
+
+ Fri 30 November 2012
+
+
+ In misc .
+
+ Some cool stuff!
+
+
+
+ Other articles
+
+
+
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -44,14 +68,12 @@
tags: foo bar baz
Translations:
fr
- This is some article, in english
-
-
-
- Other articles
-
-
-
+ This is some article, in english
+
+ read more
+
+
+
diff --git a/tests/output/basic/feeds/all-en.atom.xml b/tests/output/basic/feeds/all-en.atom.xml
index fc05c4b3..54c87905 100644
--- a/tests/output/basic/feeds/all-en.atom.xml
+++ b/tests/output/basic/feeds/all-en.atom.xml
@@ -1,5 +1,6 @@
-A Pelican Blog / 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article.html <p>This is some article, in english</p>
+A Pelican Blog / 2012-11-30T00:00:00Z FILENAME_METADATA example 2012-11-30T00:00:00Z tag:,2012-11-30:filename_metadata-example.html <p>Some cool stuff!</p>
+ Second article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article.html <p>This is some article, in english</p>
A markdown powered article 2011-04-20T00:00:00Z tag:,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p>
<p><a href="/unbelievable.html">a root-relative link to unbelievable</a>
<a href="/unbelievable.html">a file-relative link to unbelievable</a></p> Article 1 2011-02-17T00:00:00Z tag:,2011-02-17:article-1.html <p>Article 1</p>
diff --git a/tests/output/basic/feeds/all.atom.xml b/tests/output/basic/feeds/all.atom.xml
index f3a1a6f4..3081adc6 100644
--- a/tests/output/basic/feeds/all.atom.xml
+++ b/tests/output/basic/feeds/all.atom.xml
@@ -1,5 +1,6 @@
-A Pelican Blog / 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article.html <p>This is some article, in english</p>
+A Pelican Blog / 2012-11-30T00:00:00Z FILENAME_METADATA example 2012-11-30T00:00:00Z tag:,2012-11-30:filename_metadata-example.html <p>Some cool stuff!</p>
+ Second article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article.html <p>This is some article, in english</p>
Deuxième article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article-fr.html <p>Ceci est un article, en français.</p>
A markdown powered article 2011-04-20T00:00:00Z tag:,2011-04-20:a-markdown-powered-article.html <p>You're mutually oblivious.</p>
<p><a href="/unbelievable.html">a root-relative link to unbelievable</a>
diff --git a/tests/output/basic/feeds/misc.atom.xml b/tests/output/basic/feeds/misc.atom.xml
index 40ad44c5..e71bd151 100644
--- a/tests/output/basic/feeds/misc.atom.xml
+++ b/tests/output/basic/feeds/misc.atom.xml
@@ -1,5 +1,6 @@
-A Pelican Blog / 2012-02-29T00:00:00Z Second article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article.html <p>This is some article, in english</p>
+A Pelican Blog / 2012-11-30T00:00:00Z FILENAME_METADATA example 2012-11-30T00:00:00Z tag:,2012-11-30:filename_metadata-example.html <p>Some cool stuff!</p>
+ Second article 2012-02-29T00:00:00Z tag:,2012-02-29:second-article.html <p>This is some article, in english</p>
Unbelievable ! 2010-10-15T20:30:00Z tag:,2010-10-15:unbelievable.html <p>Or completely awesome. Depends the needs.</p>
<p><a class="reference external" href="/a-markdown-powered-article.html">a root-relative link to markdown-article</a>
<a class="reference external" href="/a-markdown-powered-article.html">a file-relative link to markdown-article</a></p>
diff --git a/tests/output/basic/filename_metadata-example.html b/tests/output/basic/filename_metadata-example.html
new file mode 100644
index 00000000..b7ae95a7
--- /dev/null
+++ b/tests/output/basic/filename_metadata-example.html
@@ -0,0 +1,66 @@
+
+
+
+ FILENAME_METADATA example
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Fri 30 November 2012
+
+
+ In misc .
+
+ Some cool stuff!
+
+
+
+
+
+
+
+
+
+ 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/index.html b/tests/output/basic/index.html
index 97bb5256..488d1b08 100644
--- a/tests/output/basic/index.html
+++ b/tests/output/basic/index.html
@@ -34,8 +34,32 @@
-
+
+
+ Fri 30 November 2012
+
+
+ In misc .
+
+ Some cool stuff!
+
+
+
+ Other articles
+
+
+
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -44,14 +68,12 @@
tags: foo bar baz
Translations:
fr
- This is some article, in english
-
-
-
- Other articles
-
-
-
+ This is some article, in english
+
+ read more
+
+
+
diff --git a/tests/output/custom/archives.html b/tests/output/custom/archives.html
index 44bc876e..632387a4 100644
--- a/tests/output/custom/archives.html
+++ b/tests/output/custom/archives.html
@@ -37,6 +37,8 @@
Archives for Alexis' log
+ Fri 30 November 2012
+ FILENAME_METADATA example
Wed 29 February 2012
Second article
Wed 20 April 2011
diff --git a/tests/output/custom/author/alexis-metaireau.html b/tests/output/custom/author/alexis-metaireau.html
index eb39ae57..8bb0dd1c 100644
--- a/tests/output/custom/author/alexis-metaireau.html
+++ b/tests/output/custom/author/alexis-metaireau.html
@@ -134,7 +134,7 @@
- Page 1 / 2
+ Page 1 / 3
»
diff --git a/tests/output/custom/author/alexis-metaireau2.html b/tests/output/custom/author/alexis-metaireau2.html
index a87c85af..59926d8c 100644
--- a/tests/output/custom/author/alexis-metaireau2.html
+++ b/tests/output/custom/author/alexis-metaireau2.html
@@ -39,6 +39,31 @@
+
+
+
+
+
+
+ Fri 30 November 2012
+
+
+
+ By Alexis Métaireau
+
+ In misc .
+
+ Some cool stuff!
+
+
read more
+
There are comments .
+
+
+
+
read more
There are comments .
-
-
-
-
-
-
-
-
«
- Page 2 / 2
+ Page 2 / 3
+ »
diff --git a/tests/output/custom/author/alexis-metaireau3.html b/tests/output/custom/author/alexis-metaireau3.html
new file mode 100644
index 00000000..5f2ecbb1
--- /dev/null
+++ b/tests/output/custom/author/alexis-metaireau3.html
@@ -0,0 +1,115 @@
+
+
+
+ Alexis' log - Alexis Métaireau
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ «
+ Page 3 / 3
+
+
+
+
+
+
+ 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/category/misc.html b/tests/output/custom/category/misc.html
index 24a53791..33acbd70 100644
--- a/tests/output/custom/category/misc.html
+++ b/tests/output/custom/category/misc.html
@@ -38,8 +38,35 @@
-
+
+
+ Fri 30 November 2012
+
+
+
+ By Alexis Métaireau
+
+ In misc .
+
+ Some cool stuff!
+There are comments .
+
+
+ Other articles
+
+
+
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -51,14 +78,12 @@
tags: foo bar baz
Translations:
fr
- This is some article, in english
-
There are comments .
-
-
- Other articles
-
-
-
+ This is some article, in english
+
+ read more
+ There are comments .
+
+
diff --git a/tests/output/custom/feeds/all-en.atom.xml b/tests/output/custom/feeds/all-en.atom.xml
index f8eb3219..5c8f9241 100644
--- a/tests/output/custom/feeds/all-en.atom.xml
+++ b/tests/output/custom/feeds/all-en.atom.xml
@@ -1,5 +1,6 @@
-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-11-30T00:00:00+01:00 FILENAME_METADATA example 2012-11-30T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-11-30:filename_metadata-example.html <p>Some cool stuff!</p>
+ 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>
<p><a href="http://blog.notmyidea.org/unbelievable.html">a root-relative link to unbelievable</a>
<a href="http://blog.notmyidea.org/unbelievable.html">a file-relative link to unbelievable</a></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>
diff --git a/tests/output/custom/feeds/all.atom.xml b/tests/output/custom/feeds/all.atom.xml
index b009d135..ae5fe30c 100644
--- a/tests/output/custom/feeds/all.atom.xml
+++ b/tests/output/custom/feeds/all.atom.xml
@@ -1,5 +1,6 @@
-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>
+Alexis' log http://blog.notmyidea.org/ 2012-11-30T00:00:00+01:00 FILENAME_METADATA example 2012-11-30T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-11-30:filename_metadata-example.html <p>Some cool stuff!</p>
+ 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>
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>
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>
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>
diff --git a/tests/output/custom/feeds/all.rss.xml b/tests/output/custom/feeds/all.rss.xml
index 786cb097..0ce2c837 100644
--- a/tests/output/custom/feeds/all.rss.xml
+++ b/tests/output/custom/feeds/all.rss.xml
@@ -1,5 +1,6 @@
-Alexis' log http://blog.notmyidea.org/Fri, 02 Mar 2012 14:01:01 +0100 Trop bien ! http://blog.notmyidea.org/oh-yeah-fr.html<p>Et voila du contenu en français</p>
+Alexis' log http://blog.notmyidea.org/Fri, 30 Nov 2012 00:00:00 +0100 FILENAME_METADATA example http://blog.notmyidea.org/filename_metadata-example.html<p>Some cool stuff!</p>
+ Alexis Métaireau Fri, 30 Nov 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-11-30:filename_metadata-example.html Trop bien ! http://blog.notmyidea.org/oh-yeah-fr.html<p>Et voila du contenu en français</p>
Alexis Métaireau Fri, 02 Mar 2012 14:01:01 +0100 tag:blog.notmyidea.org,2012-03-02:oh-yeah-fr.html 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 Deuxième article http://blog.notmyidea.org/second-article-fr.html<p>Ceci est un article, en français.</p>
Alexis Métaireau Wed, 29 Feb 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-02-29:second-article-fr.html foo bar baz A markdown powered article http://blog.notmyidea.org/a-markdown-powered-article.html<p>You're mutually oblivious.</p>
diff --git a/tests/output/custom/feeds/misc.atom.xml b/tests/output/custom/feeds/misc.atom.xml
index dbf8bbfd..45c996f3 100644
--- a/tests/output/custom/feeds/misc.atom.xml
+++ b/tests/output/custom/feeds/misc.atom.xml
@@ -1,5 +1,6 @@
-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-11-30T00:00:00+01:00 FILENAME_METADATA example 2012-11-30T00:00:00+01:00 Alexis Métaireau tag:blog.notmyidea.org,2012-11-30:filename_metadata-example.html <p>Some cool stuff!</p>
+ 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>
<p><a class="reference external" href="http://blog.notmyidea.org/a-markdown-powered-article.html">a root-relative link to markdown-article</a>
<a class="reference external" href="http://blog.notmyidea.org/a-markdown-powered-article.html">a file-relative link to markdown-article</a></p>
diff --git a/tests/output/custom/feeds/misc.rss.xml b/tests/output/custom/feeds/misc.rss.xml
index bbc5a48e..a0fa290d 100644
--- a/tests/output/custom/feeds/misc.rss.xml
+++ b/tests/output/custom/feeds/misc.rss.xml
@@ -1,5 +1,6 @@
-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/Fri, 30 Nov 2012 00:00:00 +0100 FILENAME_METADATA example http://blog.notmyidea.org/filename_metadata-example.html<p>Some cool stuff!</p>
+ Alexis Métaireau Fri, 30 Nov 2012 00:00:00 +0100 tag:blog.notmyidea.org,2012-11-30:filename_metadata-example.html 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>
<p><a class="reference external" href="http://blog.notmyidea.org/a-markdown-powered-article.html">a root-relative link to markdown-article</a>
<a class="reference external" href="http://blog.notmyidea.org/a-markdown-powered-article.html">a file-relative link to markdown-article</a></p>
diff --git a/tests/output/custom/filename_metadata-example.html b/tests/output/custom/filename_metadata-example.html
new file mode 100644
index 00000000..8f6353cb
--- /dev/null
+++ b/tests/output/custom/filename_metadata-example.html
@@ -0,0 +1,116 @@
+
+
+
+ FILENAME_METADATA example
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Fri 30 November 2012
+
+
+
+ By Alexis Métaireau
+
+ In misc .
+
+ Some cool stuff!
+
+
+
+
+
+
+
+
+
+
+ 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/index.html b/tests/output/custom/index.html
index eab96fa1..cc905735 100644
--- a/tests/output/custom/index.html
+++ b/tests/output/custom/index.html
@@ -38,8 +38,35 @@
-
+
+
+ Fri 30 November 2012
+
+
+
+ By Alexis Métaireau
+
+ In misc .
+
+ Some cool stuff!
+There are comments .
+
+
+ Other articles
+
+
+
+
+
+
+
+
+
+
Wed 29 February 2012
@@ -51,14 +78,12 @@
tags: foo bar baz
Translations:
fr
- This is some article, in english
-
There are comments .
-
-
- Other articles
-
-
-
+ This is some article, in english
+
+ read more
+ There are comments .
+
+
@@ -109,34 +134,9 @@
read more
There are comments .
-
-
-
-
-
-
-
-
-
- Thu 17 February 2011
-
-
-
- By Alexis Métaireau
-
- In cat1 .
-
- Article 2
-
-
read more
-
There are comments .
-
- Page 1 / 2
+ Page 1 / 3
»
diff --git a/tests/output/custom/index2.html b/tests/output/custom/index2.html
index 5269ed70..f0d2f948 100644
--- a/tests/output/custom/index2.html
+++ b/tests/output/custom/index2.html
@@ -39,6 +39,31 @@
+
+
+
+
+
+
+ Thu 17 February 2011
+
+
+
+ By Alexis Métaireau
+
+ In cat1 .
+
+ Article 2
+
+
read more
+
There are comments .
+
+
+
+
-
-
-
-
-
-
-
-
«
- Page 2 / 2
+ Page 2 / 3
+ »
diff --git a/tests/output/custom/index3.html b/tests/output/custom/index3.html
new file mode 100644
index 00000000..60f8633d
--- /dev/null
+++ b/tests/output/custom/index3.html
@@ -0,0 +1,115 @@
+
+
+
+ Alexis' log
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ «
+ Page 3 / 3
+
+
+
+
+
+
+ Proudly powered by Pelican , which takes great advantage of Python .
+
+
+ The theme is by Smashing Magazine , thanks!
+
+
+
+
+
\ No newline at end of file
Comments !
+ + +