mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #623 from bbinet/url-save_as-override
Override page 'url' and 'save_as' directly from the page metadata. Fixes #400.
This commit is contained in:
commit
d0e9c52410
64 changed files with 288 additions and 59 deletions
16
docs/faq.rst
16
docs/faq.rst
|
|
@ -92,6 +92,22 @@ want to have its own template.
|
|||
Then just make sure your theme contains the relevant template file (e.g.
|
||||
``template_name.html``).
|
||||
|
||||
How can I override the generated url of a specific page or article?
|
||||
===================================================================
|
||||
|
||||
It's as simple as specifying the ``url`` and ``save_as`` special metadata to
|
||||
any pages or articles you want to override the generated url.
|
||||
Here is an example rst page::
|
||||
|
||||
Override url/save_as page
|
||||
#########################
|
||||
|
||||
:url: override/url/
|
||||
:save_as: override/url/index.html
|
||||
|
||||
You're done, the page will be written to ``override/url/index.html``
|
||||
and Pelican will use url ``override/url/`` to link to this page.
|
||||
|
||||
What if I want to disable feed generation?
|
||||
==========================================
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@ class Page(object):
|
|||
|
||||
# set metadata as attributes
|
||||
for key, value in local_metadata.items():
|
||||
if key in ('save_as', 'url'):
|
||||
key = 'override_' + key
|
||||
setattr(self, key.lower(), value)
|
||||
|
||||
# also keep track of the metadata attributes available
|
||||
|
|
@ -138,6 +140,8 @@ class Page(object):
|
|||
return self.settings[fq_key].format(**self.url_format)
|
||||
|
||||
def get_url_setting(self, key):
|
||||
if hasattr(self, 'override_' + key):
|
||||
return getattr(self, 'override_' + key)
|
||||
key = key if self.in_default_lang else 'lang_%s' % key
|
||||
return self._expand_settings(key)
|
||||
|
||||
|
|
|
|||
9
samples/content/pages/override_url_saveas.rst
Normal file
9
samples/content/pages/override_url_saveas.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Override url/save_as
|
||||
####################
|
||||
|
||||
:date: 2012-12-07
|
||||
:url: override/
|
||||
:save_as: override/index.html
|
||||
|
||||
Test page which overrides save_as and url so that this page will be generated
|
||||
at a custom location.
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
<li ><a href="../category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="../category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
<li ><a href="./category/cat1.html">cat1</a></li>
|
||||
|
|
|
|||
53
tests/output/basic/override/index.html
Normal file
53
tests/output/basic/override/index.html
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Override url/save_as</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="../theme/css/main.css" type="text/css" />
|
||||
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="A Pelican Blog Atom Feed" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="../css/ie.css"/>
|
||||
<script src="../js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="../css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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 ><a href="../category/yeah.html">yeah</a></li>
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1 class="entry-title">Override url/save_as</h1>
|
||||
|
||||
<p>Test page which overrides save_as and url so that this page will be generated
|
||||
at a custom location.</p>
|
||||
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">A Pelican Blog </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="../category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
<li ><a href="../category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="../category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
88
tests/output/custom/override/index.html
Normal file
88
tests/output/custom/override/index.html
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Override url/save_as</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="../theme/css/main.css" type="text/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" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="../css/ie.css"/>
|
||||
<script src="../js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="../css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
<a href="http://github.com/ametaireau/">
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
</a>
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 ><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">
|
||||
<h1 class="entry-title">Override url/save_as</h1>
|
||||
|
||||
<p>Test page which overrides save_as and url so that this page will be generated
|
||||
at a custom location.</p>
|
||||
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="http://blog.notmyidea.org/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
|
||||
<li><a href="http://blog.notmyidea.org/feeds/all.rss.xml" type="application/rss+xml" rel="alternate">rss feed</a></li>
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="../">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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>
|
||||
<li ><a href="./category/misc.html">misc</a></li>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<header id="banner" class="body">
|
||||
<h1><a href="./">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
<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 class="active"><a href="./category/misc.html">misc</a></li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue