mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixed create draft article with translations #Ref 1107
This commit is contained in:
parent
5fd8c2fff0
commit
91ec0f93c7
8 changed files with 518 additions and 1 deletions
|
|
@ -354,7 +354,11 @@ class ArticlesGenerator(Generator):
|
|||
def generate_drafts(self, write):
|
||||
"""Generate drafts pages."""
|
||||
for article in chain(self.translations, self.drafts):
|
||||
write(os.path.join('drafts', article.save_as),
|
||||
filename = article.save_as
|
||||
if article.lang != self.settings["DEFAULT_LANG"]:
|
||||
filename + "."+article.lang
|
||||
|
||||
write(os.path.join('drafts', filename),
|
||||
self.get_template(article.template), self.context,
|
||||
article=article, category=article.category,
|
||||
all_articles=self.articles)
|
||||
|
|
|
|||
70
pelican/tests/output/basic/drafts/second-article-fr.html
Normal file
70
pelican/tests/output/basic/drafts/second-article-fr.html
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Deuxième article</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" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![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="/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 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="/second-article-fr.html" rel="bookmark"
|
||||
title="Permalink to Deuxième article">Deuxième article</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-02-29T00:00:00">
|
||||
Wed 29 February 2012
|
||||
</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.html">en</a>
|
||||
|
||||
</footer><!-- /.post-info --> <p>Ceci est un article, en français.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
</article>
|
||||
</section>
|
||||
<section id="extras" class="body">
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</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 -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>他言語の下書きテスト</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" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![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="../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 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="../draft-article-with-translation-ja.html" rel="bookmark"
|
||||
title="Permalink to 他言語の下書きテスト">他言語の下書きテスト</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-03-02T14:01:01">
|
||||
Fri 02 March 2012
|
||||
</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>これは下書きファイルです。/draftに生成されて、他のところには影響を与えません。</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
</article>
|
||||
</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>
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>A draft article with translation</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" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![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="../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 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="../draft-article-with-translation.html" rel="bookmark"
|
||||
title="Permalink to A draft article with translation">A draft article with translation</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-03-02T14:01:01">
|
||||
Fri 02 March 2012
|
||||
</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 is a draft article, it should live under the /drafts/ folder and not be
|
||||
listed anywhere else.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
</article>
|
||||
</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>
|
||||
114
pelican/tests/output/custom/drafts/oh-yeah-fr.html
Normal file
114
pelican/tests/output/custom/drafts/oh-yeah-fr.html
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Trop bien !</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" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![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="../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 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="../oh-yeah-fr.html" rel="bookmark"
|
||||
title="Permalink to Trop bien !">Trop bien !</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-03-02T14:01:01">
|
||||
Fri 02 March 2012
|
||||
</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>
|
||||
Translations:
|
||||
<a href="../oh-yeah.html">en</a>
|
||||
|
||||
</footer><!-- /.post-info --> <p>Et voila du contenu en français</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "oh-yeah-fr.html";
|
||||
var disqus_url = "../oh-yeah-fr.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>
|
||||
<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>
|
||||
114
pelican/tests/output/custom/drafts/second-article-fr.html
Normal file
114
pelican/tests/output/custom/drafts/second-article-fr.html
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Deuxième article</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" />
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![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="../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 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="../second-article-fr.html" rel="bookmark"
|
||||
title="Permalink to Deuxième article">Deuxième article</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2012-02-29T00:00:00">
|
||||
Wed 29 February 2012
|
||||
</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.html">en</a>
|
||||
|
||||
</footer><!-- /.post-info --> <p>Ceci est un article, en français.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "second-article-fr.html";
|
||||
var disqus_url = "../second-article-fr.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>
|
||||
<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>
|
||||
8
samples/content/draft_article_with_translation-ja.rst
Normal file
8
samples/content/draft_article_with_translation-ja.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
他言語の下書きテスト
|
||||
######################
|
||||
|
||||
:slug: draft-article-with-translation
|
||||
:status: draft
|
||||
:lang: ja
|
||||
|
||||
これは下書きファイルです。/draftに生成されて、他のところには影響を与えません。
|
||||
8
samples/content/draft_article_with_translation.rst
Normal file
8
samples/content/draft_article_with_translation.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
A draft article with translation
|
||||
################################
|
||||
|
||||
:slug: draft-article-with-translation
|
||||
:status: draft
|
||||
|
||||
This is a draft article, it should live under the /drafts/ folder and not be
|
||||
listed anywhere else.
|
||||
Loading…
Add table
Add a link
Reference in a new issue