mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #943 from Rogdham/override_save_as_url
Deliberate overriding and overwrite detection. Fixes #938
This commit is contained in:
commit
1b904ae767
73 changed files with 295 additions and 99 deletions
|
|
@ -168,7 +168,8 @@ class TemplatePagesGenerator(Generator):
|
|||
try:
|
||||
template = self.env.get_template(source)
|
||||
rurls = self.settings['RELATIVE_URLS']
|
||||
writer.write_file(dest, template, self.context, rurls)
|
||||
writer.write_file(dest, template, self.context, rurls,
|
||||
override_output=True)
|
||||
finally:
|
||||
del self.env.loader.loaders[0]
|
||||
|
||||
|
|
@ -262,7 +263,8 @@ class ArticlesGenerator(Generator):
|
|||
"""Generate the articles."""
|
||||
for article in chain(self.translations, self.articles):
|
||||
write(article.save_as, self.get_template(article.template),
|
||||
self.context, article=article, category=article.category)
|
||||
self.context, article=article, category=article.category,
|
||||
override_output=hasattr(article, 'override_save_as'))
|
||||
|
||||
def generate_period_archives(self, write):
|
||||
"""Generate per-year, per-month, and per-day archives."""
|
||||
|
|
@ -533,7 +535,8 @@ class PagesGenerator(Generator):
|
|||
self.hidden_translations, self.hidden_pages):
|
||||
writer.write_file(page.save_as, self.get_template(page.template),
|
||||
self.context, page=page,
|
||||
relative_urls=self.settings['RELATIVE_URLS'])
|
||||
relative_urls=self.settings['RELATIVE_URLS'],
|
||||
override_output=hasattr(page, 'override_save_as'))
|
||||
|
||||
|
||||
class StaticGenerator(Generator):
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
@ -45,6 +46,8 @@
|
|||
<dd><a href="/oh-yeah.html">Oh yeah !</a></dd>
|
||||
<dt>Fri 15 October 2010</dt>
|
||||
<dd><a href="/unbelievable.html">Unbelievable !</a></dd>
|
||||
<dt>Sun 14 March 2010</dt>
|
||||
<dd><a href="/tag/baz.html">The baz tag</a></dd>
|
||||
</dl>
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li class="active"><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
@ -85,6 +86,26 @@
|
|||
<a class="readmore" href="/unbelievable.html">read more</a>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="/tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<p>In <a href="/category/misc.html">misc</a>. </p>
|
||||
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
<a class="readmore" href="/tag/baz.html">read more</a>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -27,4 +27,5 @@ YEAH !</p>
|
|||
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href="/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name></name></author><id>tag:,2010-10-15:unbelievable.html</id><summary type="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>
|
||||
</summary></entry><entry><title>The baz tag</title><link href="/tag/baz.html" rel="alternate"></link><updated>2010-03-14T00:00:00Z</updated><author><name></name></author><id>tag:,2010-03-14:tag/baz.html</id><summary type="html"><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</summary></entry></feed>
|
||||
|
|
@ -28,4 +28,5 @@ YEAH !</p>
|
|||
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href="/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name></name></author><id>tag:,2010-10-15:unbelievable.html</id><summary type="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>
|
||||
</summary></entry><entry><title>The baz tag</title><link href="/tag/baz.html" rel="alternate"></link><updated>2010-03-14T00:00:00Z</updated><author><name></name></author><id>tag:,2010-03-14:tag/baz.html</id><summary type="html"><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</summary></entry></feed>
|
||||
|
|
@ -4,4 +4,5 @@
|
|||
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>Unbelievable !</title><link href="/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00Z</updated><author><name></name></author><id>tag:,2010-10-15:unbelievable.html</id><summary type="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>
|
||||
</summary></entry><entry><title>The baz tag</title><link href="/tag/baz.html" rel="alternate"></link><updated>2010-03-14T00:00:00Z</updated><author><name></name></author><id>tag:,2010-03-14:tag/baz.html</id><summary type="html"><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</summary></entry></feed>
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
@ -218,6 +219,26 @@ YEAH !</p>
|
|||
<a class="readmore" href="/unbelievable.html">read more</a>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="/tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<p>In <a href="/category/misc.html">misc</a>. </p>
|
||||
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
<a class="readmore" href="/tag/baz.html">read more</a>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
<section id="extras" class="body">
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li class="active"><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li class="active"><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li class="active"><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>A Pelican Blog - baz</title>
|
||||
<title>The baz tag</title>
|
||||
<link rel="stylesheet" href="/theme/css/main.css">
|
||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||
|
||||
|
|
@ -15,32 +15,37 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
<li><a href="/category/cat1.html">cat1</a></li>
|
||||
<li><a href="/category/misc.html">misc</a></li>
|
||||
<li class="active"><a href="/category/misc.html">misc</a></li>
|
||||
<li><a href="/category/yeah.html">yeah</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="entry-title">
|
||||
<a href="/tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href="/second-article.html">Second article</a></h1>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-02-29T00:00:00">
|
||||
Wed 29 February 2012
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<p>In <a href="/category/misc.html">misc</a>. </p>
|
||||
<p>tags: <a href="/tag/foo.html">foo</a><a href="/tag/bar.html">bar</a><a href="/tag/baz.html">baz</a></p>Translations:
|
||||
<a href="/second-article-fr.html">fr</a>
|
||||
|
||||
</footer><!-- /.post-info --><p>This is some article, in english</p>
|
||||
</article>
|
||||
</aside><!-- /#featured -->
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
</article>
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>A Pelican Blog - oh</title>
|
||||
<title>Oh Oh Oh</title>
|
||||
<link rel="stylesheet" href="/theme/css/main.css">
|
||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li class="active"><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
@ -23,30 +24,12 @@
|
|||
<li><a href="/category/yeah.html">yeah</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<section id="content" class="body">
|
||||
<h1 class="entry-title">Oh Oh Oh</h1>
|
||||
|
||||
<p>This page overrides the listening of the articles under the <em>oh</em> tag.</p>
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href="/oh-yeah.html">Oh yeah !</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-20T10:14:00">
|
||||
Wed 20 October 2010
|
||||
</abbr>
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="/author/alexis-metaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
<p>In <a href="/category/bar.html">bar</a>. </p>
|
||||
<p>tags: <a href="/tag/oh.html">oh</a><a href="/tag/bar.html">bar</a><a href="/tag/yeah.html">yeah</a></p>
|
||||
</footer><!-- /.post-info --><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="|filename|/pictures/Sushi.jpg" style="width: 600px; height: 450px;" />
|
||||
</div>
|
||||
</article>
|
||||
</aside><!-- /#featured -->
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="/">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="/tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="/override/">Override url/save_as</a></li>
|
||||
<li><a href="/pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="/category/bar.html">bar</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
@ -49,6 +50,8 @@
|
|||
<dd><a href="./oh-yeah.html">Oh yeah !</a></dd>
|
||||
<dt>Fri 15 October 2010</dt>
|
||||
<dd><a href="./unbelievable.html">Unbelievable !</a></dd>
|
||||
<dt>Sun 14 March 2010</dt>
|
||||
<dd><a href="./tag/baz.html">The baz tag</a></dd>
|
||||
</dl>
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
@ -54,6 +55,29 @@
|
|||
<a class="readmore" href="../unbelievable.html">read more</a>
|
||||
<p>There are <a href="../unbelievable.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="../tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="../author/alexis-metaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
<p>In <a href="../category/misc.html">misc</a>. </p>
|
||||
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
<a class="readmore" href="../tag/baz.html">read more</a>
|
||||
<p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="../author/alexis-metaireau2.html">«</a>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
@ -98,6 +99,29 @@
|
|||
<a class="readmore" href="../unbelievable.html">read more</a>
|
||||
<p>There are <a href="../unbelievable.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="../tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="../author/alexis-metaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
<p>In <a href="../category/misc.html">misc</a>. </p>
|
||||
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
<a class="readmore" href="../tag/baz.html">read more</a>
|
||||
<p>There are <a href="../tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
Page 1 / 1
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li class="active"><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -27,4 +27,5 @@ YEAH !</p>
|
|||
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href="http://blog.notmyidea.org/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00+02:00</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</id><summary type="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>
|
||||
</summary></entry><entry><title>The baz tag</title><link href="http://blog.notmyidea.org/tag/baz.html" rel="alternate"></link><updated>2010-03-14T00:00:00+01:00</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-03-14:tag/baz.html</id><summary type="html"><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</summary></entry></feed>
|
||||
|
|
@ -29,4 +29,5 @@ YEAH !</p>
|
|||
</summary><category term="oh"></category><category term="bar"></category><category term="yeah"></category></entry><entry><title>Unbelievable !</title><link href="http://blog.notmyidea.org/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00+02:00</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</id><summary type="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>
|
||||
</summary></entry><entry><title>The baz tag</title><link href="http://blog.notmyidea.org/tag/baz.html" rel="alternate"></link><updated>2010-03-14T00:00:00+01:00</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-03-14:tag/baz.html</id><summary type="html"><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</summary></entry></feed>
|
||||
|
|
@ -29,4 +29,5 @@ YEAH !</p>
|
|||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Wed, 20 Oct 2010 10:14:00 +0200</pubDate><guid>tag:blog.notmyidea.org,2010-10-20:oh-yeah.html</guid><category>oh</category><category>bar</category><category>yeah</category></item><item><title>Unbelievable !</title><link>http://blog.notmyidea.org/unbelievable.html</link><description><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>
|
||||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Fri, 15 Oct 2010 20:30:00 +0200</pubDate><guid>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</guid></item></channel></rss>
|
||||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Fri, 15 Oct 2010 20:30:00 +0200</pubDate><guid>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</guid></item><item><title>The baz tag</title><link>http://blog.notmyidea.org/tag/baz.html</link><description><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Sun, 14 Mar 2010 00:00:00 +0100</pubDate><guid>tag:blog.notmyidea.org,2010-03-14:tag/baz.html</guid></item></channel></rss>
|
||||
|
|
@ -4,4 +4,5 @@
|
|||
</summary><category term="foo"></category><category term="bar"></category><category term="baz"></category></entry><entry><title>Unbelievable !</title><link href="http://blog.notmyidea.org/unbelievable.html" rel="alternate"></link><updated>2010-10-15T20:30:00+02:00</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</id><summary type="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>
|
||||
</summary></entry><entry><title>The baz tag</title><link href="http://blog.notmyidea.org/tag/baz.html" rel="alternate"></link><updated>2010-03-14T00:00:00+01:00</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-03-14:tag/baz.html</id><summary type="html"><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</summary></entry></feed>
|
||||
|
|
@ -4,4 +4,5 @@
|
|||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Wed, 29 Feb 2012 00:00:00 +0100</pubDate><guid>tag:blog.notmyidea.org,2012-02-29:second-article.html</guid><category>foo</category><category>bar</category><category>baz</category></item><item><title>Unbelievable !</title><link>http://blog.notmyidea.org/unbelievable.html</link><description><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>
|
||||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Fri, 15 Oct 2010 20:30:00 +0200</pubDate><guid>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</guid></item></channel></rss>
|
||||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Fri, 15 Oct 2010 20:30:00 +0200</pubDate><guid>tag:blog.notmyidea.org,2010-10-15:unbelievable.html</guid></item><item><title>The baz tag</title><link>http://blog.notmyidea.org/tag/baz.html</link><description><p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis Métaireau</dc:creator><pubDate>Sun, 14 Mar 2010 00:00:00 +0100</pubDate><guid>tag:blog.notmyidea.org,2010-03-14:tag/baz.html</guid></item></channel></rss>
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
@ -54,6 +55,29 @@
|
|||
<a class="readmore" href="./unbelievable.html">read more</a>
|
||||
<p>There are <a href="./unbelievable.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href="./tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/alexis-metaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
<p>In <a href="./category/misc.html">misc</a>. </p>
|
||||
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
<a class="readmore" href="./tag/baz.html">read more</a>
|
||||
<p>There are <a href="./tag/baz.html#disqus_thread">comments</a>.</p> </div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
</ol><!-- /#posts-list -->
|
||||
<p class="paginator">
|
||||
<a href="./index2.html">«</a>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li class="active"><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li class="active"><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Alexis' log - baz</title>
|
||||
<title>The baz tag</title>
|
||||
<link rel="stylesheet" href="../theme/css/main.css">
|
||||
<link href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log Atom Feed" />
|
||||
<link href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Alexis' log RSS Feed" />
|
||||
|
|
@ -19,38 +19,53 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
<li><a href="../category/misc.html">misc</a></li>
|
||||
<li class="active"><a href="../category/misc.html">misc</a></li>
|
||||
<li><a href="../category/cat1.html">cat1</a></li>
|
||||
<li><a href="../category/bar.html">bar</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="entry-title">
|
||||
<a href="../tag/baz.html" rel="bookmark"
|
||||
title="Permalink to The baz tag">The baz tag</a></h1>
|
||||
</header>
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href="../second-article.html">Second article</a></h1>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-02-29T00:00:00">
|
||||
Wed 29 February 2012
|
||||
<abbr class="published" title="2010-03-14T00:00:00">
|
||||
Sun 14 March 2010
|
||||
</abbr>
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="../author/alexis-metaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
<p>In <a href="../category/misc.html">misc</a>. </p>
|
||||
<p>tags: <a href="../tag/foo.html">foo</a><a href="../tag/bar.html">bar</a><a href="../tag/baz.html">baz</a></p>Translations:
|
||||
<a href="../second-article-fr.html">fr</a>
|
||||
|
||||
</footer><!-- /.post-info --><p>This is some article, in english</p>
|
||||
<p>There are <a href="../second-article.html#disqus_thread">comments</a>.</p> </article>
|
||||
<p class="paginator">
|
||||
Page 1 / 1
|
||||
</p>
|
||||
</aside><!-- /#featured -->
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
</footer><!-- /.post-info --> <p>This article overrides the listening of the articles under the <em>baz</em> tag.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "tag/baz.html";
|
||||
var disqus_url = "../tag/baz.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Alexis' log - oh</title>
|
||||
<title>Oh Oh Oh</title>
|
||||
<link rel="stylesheet" href="../theme/css/main.css">
|
||||
<link href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log Atom Feed" />
|
||||
<link href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Alexis' log RSS Feed" />
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li class="active"><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
@ -27,35 +28,12 @@
|
|||
<li><a href="../category/bar.html">bar</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
<section id="content" class="body">
|
||||
<h1 class="entry-title">Oh Oh Oh</h1>
|
||||
|
||||
<p>This page overrides the listening of the articles under the <em>oh</em> tag.</p>
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href="../oh-yeah.html">Oh yeah !</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-20T10:14:00">
|
||||
Wed 20 October 2010
|
||||
</abbr>
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="../author/alexis-metaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
<p>In <a href="../category/bar.html">bar</a>. </p>
|
||||
<p>tags: <a href="../tag/oh.html">oh</a><a href="../tag/bar.html">bar</a><a href="../tag/yeah.html">yeah</a></p>Translations:
|
||||
<a href="../oh-yeah-fr.html">fr</a>
|
||||
|
||||
</footer><!-- /.post-info --><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>
|
||||
<p>There are <a href="../oh-yeah.html#disqus_thread">comments</a>.</p> </article>
|
||||
<p class="paginator">
|
||||
Page 1 / 1
|
||||
</p>
|
||||
</aside><!-- /#featured -->
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="../tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="../override/">Override url/save_as</a></li>
|
||||
<li><a href="../pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="../category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li class="active"><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<li><a href="./tag/oh.html">Oh Oh Oh</a></li>
|
||||
<li><a href="./override/">Override url/save_as</a></li>
|
||||
<li><a href="./pages/this-is-a-test-page.html">This is a test page</a></li>
|
||||
<li><a href="./category/yeah.html">yeah</a></li>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ class Writer(object):
|
|||
self.reminder = dict()
|
||||
self.settings = settings or {}
|
||||
self._written_files = set()
|
||||
self._overridden_files = set()
|
||||
|
||||
def _create_new_feed(self, feed_type, context):
|
||||
feed_class = Rss201rev2Feed if feed_type == 'rss' else Atom1Feed
|
||||
|
|
@ -49,13 +50,26 @@ class Writer(object):
|
|||
pubdate=set_date_tzinfo(item.date,
|
||||
self.settings.get('TIMEZONE', None)))
|
||||
|
||||
def _open_w(self, filename, encoding):
|
||||
def _open_w(self, filename, encoding, override=False):
|
||||
"""Open a file to write some content to it.
|
||||
|
||||
Exit if we have already written to that file.
|
||||
Exit if we have already written to that file, unless one (and no more
|
||||
than one) of the writes has the override parameter set to True.
|
||||
"""
|
||||
if filename in self._written_files:
|
||||
raise IOError('File %s is to be overwritten' % filename)
|
||||
if filename in self._overridden_files:
|
||||
if override:
|
||||
raise StandardError('File %s is set to be overridden twice'
|
||||
% filename)
|
||||
else:
|
||||
logger.info('skipping %s' % filename)
|
||||
filename = os.devnull
|
||||
elif filename in self._written_files:
|
||||
if override:
|
||||
logger.info('overwriting %s' % filename)
|
||||
else:
|
||||
raise StandardError('File %s is to be overwritten' % filename)
|
||||
if override:
|
||||
self._overridden_files.add(filename)
|
||||
self._written_files.add(filename)
|
||||
return open(filename, 'w', encoding=encoding)
|
||||
|
||||
|
|
@ -103,7 +117,7 @@ class Writer(object):
|
|||
locale.setlocale(locale.LC_ALL, old_locale)
|
||||
|
||||
def write_file(self, name, template, context, relative_urls=False,
|
||||
paginated=None, **kwargs):
|
||||
paginated=None, override_output=False, **kwargs):
|
||||
"""Render the template and write the file.
|
||||
|
||||
:param name: name of the file to output
|
||||
|
|
@ -112,6 +126,9 @@ class Writer(object):
|
|||
:param relative_urls: use relative urls or absolutes ones
|
||||
:param paginated: dict of article list to paginate - must have the
|
||||
same length (same list in different orders)
|
||||
:param override_output: boolean telling if we can override previous
|
||||
output with the same name (and if next files written with the same
|
||||
name should be skipped to keep that one)
|
||||
:param **kwargs: additional variables to pass to the templates
|
||||
"""
|
||||
|
||||
|
|
@ -121,7 +138,7 @@ class Writer(object):
|
|||
# other stuff, just return for now
|
||||
return
|
||||
|
||||
def _write_file(template, localcontext, output_path, name):
|
||||
def _write_file(template, localcontext, output_path, name, override):
|
||||
"""Render the template write the file."""
|
||||
old_locale = locale.setlocale(locale.LC_ALL)
|
||||
locale.setlocale(locale.LC_ALL, str('C'))
|
||||
|
|
@ -134,7 +151,7 @@ class Writer(object):
|
|||
os.makedirs(os.path.dirname(path))
|
||||
except Exception:
|
||||
pass
|
||||
with self._open_w(path, 'utf-8') as f:
|
||||
with self._open_w(path, 'utf-8', override=override) as f:
|
||||
f.write(output)
|
||||
logger.info('writing {}'.format(path))
|
||||
|
||||
|
|
@ -180,7 +197,8 @@ class Writer(object):
|
|||
'%s_next_page' % key: next_page})
|
||||
|
||||
_write_file(template, paginated_localcontext, self.output_path,
|
||||
page.save_as)
|
||||
page.save_as, override_output)
|
||||
else:
|
||||
# no pagination
|
||||
_write_file(template, localcontext, self.output_path, name)
|
||||
_write_file(template, localcontext, self.output_path, name,
|
||||
override_output)
|
||||
|
|
|
|||
8
samples/content/article_tag_baz.rst
Normal file
8
samples/content/article_tag_baz.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
The baz tag
|
||||
###########
|
||||
|
||||
:date: 2010-03-14
|
||||
:url: tag/baz.html
|
||||
:save_as: tag/baz.html
|
||||
|
||||
This article overrides the listening of the articles under the *baz* tag.
|
||||
8
samples/content/pages/override_tag_oh.rst
Normal file
8
samples/content/pages/override_tag_oh.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Oh Oh Oh
|
||||
########
|
||||
|
||||
:date: 2010-03-14
|
||||
:url: tag/oh.html
|
||||
:save_as: tag/oh.html
|
||||
|
||||
This page overrides the listening of the articles under the *oh* tag.
|
||||
Loading…
Add table
Add a link
Reference in a new issue