Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • docker
  • hugo-prepare-migration
  • master
  • 2021.03.3
  • 2021.04.4
  • 2021.04.5
  • 2021.05.6
  • 2021.12.10
  • 2021.12.11
  • 2021.12.7
  • 2021.12.8
  • 2021.12.9
  • 2022.04.16
13 results

Target

Select target project
  • thomasbromehead/website_en
  • jytou/website_en
  • griffedge/website_en
  • BorisPAING/website_en
  • scanlegentil/website_en
  • guenoel/website_en
  • mmoya/website_en
  • librelois/website_en
  • LukeMarlin/website_en
  • pitchum/website_en
  • calbasi/website_en
11 results
Select Git revision
  • master
  • patch-1
2 results
Show changes
Showing
with 111 additions and 212 deletions
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<head> <head>
<title>Willkommen Sie zur unserer Testseite</title> <title>Willkommen Sie zur unserer Testseite</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" />
...@@ -10,9 +11,10 @@ ...@@ -10,9 +11,10 @@
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/de/">Testseite <strong></strong></a></h1> <h1><a href="http://example.com/test/de/">Testseite</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li><a href="http://example.com/test/de/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<section id="content"> <section id="content">
<h2>All articles</h2> <h2>All articles</h2>
...@@ -21,21 +23,21 @@ ...@@ -21,21 +23,21 @@
<li><article class="hentry"> <li><article class="hentry">
<header> <h2 class="entry-title"><a href="http://example.com/test/de/translated-article.html" rel="bookmark" title="Permalink to Ein übersetzter Artikel">Ein übersetzter Artikel</a></h2> </header> <header> <h2 class="entry-title"><a href="http://example.com/test/de/translated-article.html" rel="bookmark" title="Permalink to Ein übersetzter Artikel">Ein übersetzter Artikel</a></h2> </header>
<footer class="post-info"> <footer class="post-info">
<time class="published" datetime="2014-09-14T00:00:00+00:00"> Sun 14 September 2014 </time> <time class="published" datetime="2014-09-14T00:00:00+00:00"> So 14 September 2014 </time>
<address class="vcard author">By <address class="vcard author">By
<a class="url fn" href="http://example.com/test/de/author/der-tester.html">Der Tester</a> <a class="url fn" href="http://example.com/test/de/author/der-tester.html">Der Tester</a>
</address> </address>
</footer><!-- /.post-info --> </footer><!-- /.post-info -->
<div class="entry-content"> <p>Ein einfacher Artikel mit einer Übersetzung. <div class="entry-content"> <p>Ein einfacher Artikel mit einer Übersetzung.
Hier ist ein Link zur <a class="reference external" href="http://example.com/test/de/../images/img.png">einigem Bild</a>.</p> Hier ist ein Link zur <a class="reference external" href="http://example.com/test/images/img.png">einigem Bild</a>.</p>
</div><!-- /.entry-content --> </div><!-- /.entry-content -->
</article></li> </article></li>
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
</section><!-- /#content --> </section><!-- /#content -->
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<head> <head>
<title>Eine 404 Seite</title> <title>Testseite - Eine 404 Seite</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" />
<link rel="alternate" hreflang="cz" href="http://example.com/test/de/../cz/pages/404.html">
<link rel="alternate" hreflang="en" href="http://example.com/test/de/../pages/404.html">
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/de/">Testseite <strong></strong></a></h1> <h1><a href="http://example.com/test/de/">Testseite</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li><a href="http://example.com/test/de/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<h1>Eine 404 Seite</h1> <h1>Eine 404 Seite</h1>
Translations: Translations:
<a href="http://example.com/test/de/../cz/pages/404.html">cz</a> <a href="http://example.com/test/de/../cz/pages/404.html" hreflang="cz">cz</a>
<a href="http://example.com/test/de/../pages/404.html">en</a> <a href="http://example.com/test/de/../pages/404.html" hreflang="en">en</a>
<p>Eine einfache 404 Seite.</p> <p>Eine einfache 404 Seite.</p>
...@@ -25,8 +32,8 @@ ...@@ -25,8 +32,8 @@
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="en">
<head> <head>
<title>Untranslated page</title> <title>Testseite - Untranslated page</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" />
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/de/">Testseite <strong></strong></a></h1> <h1><a href="http://example.com/test/de/">Testseite</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li><a href="http://example.com/test/de/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<h1>Untranslated page</h1> <h1>Untranslated page</h1>
...@@ -22,8 +26,8 @@ ...@@ -22,8 +26,8 @@
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<head> <head>
<title>Willkommen Sie zur unserer Testseite</title> <title>Testseite - Ein übersetzter Artikel</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testseite Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/de/../theme/style.css" />
<link rel="alternate" hreflang="cz" href="http://example.com/test/de/../cz/translated-article.html">
<link rel="alternate" hreflang="en" href="http://example.com/test/de/../translated-article.html">
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/de/">Testseite <strong></strong></a></h1> <h1><a href="http://example.com/test/de/">Testseite</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li class="active"><a href="http://example.com/test/de/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<section id="content" class="body"> <section id="content" class="body">
<header> <header>
...@@ -23,28 +30,31 @@ ...@@ -23,28 +30,31 @@
<a href="http://example.com/test/de/translated-article.html" rel="bookmark" <a href="http://example.com/test/de/translated-article.html" rel="bookmark"
title="Permalink to Ein übersetzter Artikel">Ein übersetzter Artikel</a></h2> title="Permalink to Ein übersetzter Artikel">Ein übersetzter Artikel</a></h2>
Translations: Translations:
<a href="http://example.com/test/de/../cz/translated-article.html">cz</a> <a href="http://example.com/test/de/../cz/translated-article.html" hreflang="cz">cz</a>
<a href="http://example.com/test/de/../translated-article.html">en</a> <a href="http://example.com/test/de/../translated-article.html" hreflang="en">en</a>
</header> </header>
<footer class="post-info"> <footer class="post-info">
<time class="published" datetime="2014-09-14T00:00:00+00:00"> <time class="published" datetime="2014-09-14T00:00:00+00:00">
Sun 14 September 2014 So 14 September 2014
</time> </time>
<address class="vcard author"> <address class="vcard author">
By <a class="url fn" href="http://example.com/test/de/author/der-tester.html">Der Tester</a> By <a class="url fn" href="http://example.com/test/de/author/der-tester.html">Der Tester</a>
</address> </address>
<div class="category">
Category: <a href="http://example.com/test/de/category/misc.html">misc</a>
</div>
</footer><!-- /.post-info --> </footer><!-- /.post-info -->
<div class="entry-content"> <div class="entry-content">
<p>Ein einfacher Artikel mit einer Übersetzung. <p>Ein einfacher Artikel mit einer Übersetzung.
Hier ist ein Link zur <a class="reference external" href="http://example.com/test/de/../images/img.png">einigem Bild</a>.</p> Hier ist ein Link zur <a class="reference external" href="http://example.com/test/images/img.png">einigem Bild</a>.</p>
</div><!-- /.entry-content --> </div><!-- /.entry-content -->
</section> </section>
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Testing site</title><link href="http://example.com/test/" rel="alternate"></link><link href="http://example.com/test/feeds_all.atom.xml" rel="self"></link><id>http://example.com/test/</id><updated>2014-09-15T00:00:00+00:00</updated><entry><title>Přeložený článek</title><link href="http://example.com/test/cz/translated-article.html" rel="alternate"></link><published>2014-09-15T00:00:00+00:00</published><updated>2014-09-15T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-09-15:/test/cz/translated-article.html</id><summary type="html">&lt;p&gt;Jednoduchý článek s překlady. <feed xmlns="http://www.w3.org/2005/Atom"><title>Testing site</title><link href="http://example.com/test/" rel="alternate"></link><link href="http://example.com/test/feeds_all.atom.xml" rel="self"></link><id>http://example.com/test/</id><updated>2014-09-15T00:00:00+00:00</updated><entry><title>Přeložený článek</title><link href="http://example.com/test/cz/translated-article.html" rel="alternate"></link><published>2014-09-15T00:00:00+00:00</published><updated>2014-09-15T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-09-15:/test/cz/translated-article.html</id><content type="html">&lt;p&gt;Jednoduchý článek s překlady.
Zde je odkaz na &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;nějaký obrázek&lt;/a&gt;.&lt;/p&gt; Zde je odkaz na &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;nějaký obrázek&lt;/a&gt;.&lt;/p&gt;
</summary><content type="html">&lt;p&gt;Jednoduchý článek s překlady. </content><category term="misc"></category></entry><entry><title>Ein übersetzter Artikel</title><link href="http://example.com/test/de/translated-article.html" rel="alternate"></link><published>2014-09-14T00:00:00+00:00</published><updated>2014-09-14T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-09-14:/test/de/translated-article.html</id><content type="html">&lt;p&gt;Ein einfacher Artikel mit einer Übersetzung.
Zde je odkaz na &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;nějaký obrázek&lt;/a&gt;.&lt;/p&gt;
</content></entry><entry><title>Ein übersetzter Artikel</title><link href="http://example.com/test/de/translated-article.html" rel="alternate"></link><published>2014-09-14T00:00:00+00:00</published><updated>2014-09-14T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-09-14:/test/de/translated-article.html</id><summary type="html">&lt;p&gt;Ein einfacher Artikel mit einer Übersetzung.
Hier ist ein Link zur &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;einigem Bild&lt;/a&gt;.&lt;/p&gt;
</summary><content type="html">&lt;p&gt;Ein einfacher Artikel mit einer Übersetzung.
Hier ist ein Link zur &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;einigem Bild&lt;/a&gt;.&lt;/p&gt; Hier ist ein Link zur &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;einigem Bild&lt;/a&gt;.&lt;/p&gt;
</content></entry><entry><title>A translated article</title><link href="http://example.com/test/translated-article.html" rel="alternate"></link><published>2014-09-13T00:00:00+00:00</published><updated>2014-09-13T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-09-13:/test/translated-article.html</id><summary type="html">&lt;p&gt;A simple article with a translation. </content><category term="misc"></category></entry><entry><title>A translated article</title><link href="http://example.com/test/translated-article.html" rel="alternate"></link><published>2014-09-13T00:00:00+00:00</published><updated>2014-09-13T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-09-13:/test/translated-article.html</id><content type="html">&lt;p&gt;A simple article with a translation.
Here is a link to &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;some image&lt;/a&gt;.&lt;/p&gt; Here is a link to &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;some image&lt;/a&gt;.&lt;/p&gt;
</summary><content type="html">&lt;p&gt;A simple article with a translation. </content><category term="misc"></category></entry><entry><title>An untranslated article</title><link href="http://example.com/test/an-untranslated-article.html" rel="alternate"></link><published>2014-07-14T00:00:00+00:00</published><updated>2014-07-14T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-07-14:/test/an-untranslated-article.html</id><content type="html">&lt;p&gt;An article without a translation.
Here is a link to &lt;a class="reference external" href="http://example.com/test/images/img.png"&gt;some image&lt;/a&gt;.&lt;/p&gt;
</content></entry><entry><title>An untranslated article</title><link href="http://example.com/test/an-untranslated-article.html" rel="alternate"></link><published>2014-07-14T00:00:00+00:00</published><updated>2014-07-14T00:00:00+00:00</updated><author><name>The Tester</name></author><id>tag:example.com,2014-07-14:/test/an-untranslated-article.html</id><summary type="html">&lt;p&gt;An article without a translation.
Here is a link to an &lt;a class="reference external" href="http://example.com/test/pages/untranslated-page.html"&gt;untranslated page&lt;/a&gt;&lt;/p&gt;
</summary><content type="html">&lt;p&gt;An article without a translation.
Here is a link to an &lt;a class="reference external" href="http://example.com/test/pages/untranslated-page.html"&gt;untranslated page&lt;/a&gt;&lt;/p&gt; Here is a link to an &lt;a class="reference external" href="http://example.com/test/pages/untranslated-page.html"&gt;untranslated page&lt;/a&gt;&lt;/p&gt;
</content></entry></feed> </content><category term="misc"></category></entry></feed>
\ No newline at end of file \ No newline at end of file
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<head> <head>
<title>Welcome to our Testing site</title> <title>Welcome to our Testing site</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/theme/style.css" />
...@@ -10,10 +11,11 @@ ...@@ -10,10 +11,11 @@
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/">Testing site <strong></strong></a></h1> <h1><a href="http://example.com/test/">Testing site</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li> <li><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li>
<li><a href="http://example.com/test/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<section id="content"> <section id="content">
<h2>All articles</h2> <h2>All articles</h2>
...@@ -47,8 +49,8 @@ Here is a link to an <a class="reference external" href="http://example.com/test ...@@ -47,8 +49,8 @@ Here is a link to an <a class="reference external" href="http://example.com/test
</section><!-- /#content --> </section><!-- /#content -->
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>A 404 page</title> <title>Testing site - A 404 page</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/theme/style.css" />
<link rel="alternate" hreflang="cz" href="http://example.com/test/cz/pages/404.html">
<link rel="alternate" hreflang="de" href="http://example.com/test/de/pages/404.html">
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/">Testing site <strong></strong></a></h1> <h1><a href="http://example.com/test/">Testing site</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li> <li><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li>
<li><a href="http://example.com/test/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<h1>A 404 page</h1> <h1>A 404 page</h1>
Translations: Translations:
<a href="http://example.com/test/cz/pages/404.html">cz</a> <a href="http://example.com/test/cz/pages/404.html" hreflang="cz">cz</a>
<a href="http://example.com/test/de/pages/404.html">de</a> <a href="http://example.com/test/de/pages/404.html" hreflang="de">de</a>
<p>A simple 404 page.</p> <p>A simple 404 page.</p>
...@@ -26,8 +33,8 @@ ...@@ -26,8 +33,8 @@
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Untranslated page</title> <title>Testing site - Untranslated page</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/theme/style.css" />
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/">Testing site <strong></strong></a></h1> <h1><a href="http://example.com/test/">Testing site</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li class="active"><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li> <li class="active"><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li>
<li><a href="http://example.com/test/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<h1>Untranslated page</h1> <h1>Untranslated page</h1>
...@@ -23,8 +27,8 @@ ...@@ -23,8 +27,8 @@
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Welcome to our Testing site</title> <title>Testing site - A translated article</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="Pelican" />
<link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" /> <link href="http://example.com/test/feeds_all.atom.xml" type="application/atom+xml" rel="alternate" title="Testing site Full Atom Feed" />
<link rel="stylesheet" href="http://example.com/test/theme/style.css" /> <link rel="stylesheet" href="http://example.com/test/theme/style.css" />
<link rel="alternate" hreflang="cz" href="http://example.com/test/cz/translated-article.html">
<link rel="alternate" hreflang="de" href="http://example.com/test/de/translated-article.html">
</head> </head>
<body id="index" class="home"> <body id="index" class="home">
<header id="banner" class="body"> <header id="banner" class="body">
<h1><a href="http://example.com/test/">Testing site <strong></strong></a></h1> <h1><a href="http://example.com/test/">Testing site</a></h1>
</header><!-- /#banner --> </header><!-- /#banner -->
<nav id="menu"><ul> <nav id="menu"><ul>
<li><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li> <li><a href="http://example.com/test/pages/untranslated-page.html">Untranslated page</a></li>
<li class="active"><a href="http://example.com/test/category/misc.html">misc</a></li>
</ul></nav><!-- /#menu --> </ul></nav><!-- /#menu -->
<section id="content" class="body"> <section id="content" class="body">
<header> <header>
...@@ -24,8 +31,8 @@ ...@@ -24,8 +31,8 @@
<a href="http://example.com/test/translated-article.html" rel="bookmark" <a href="http://example.com/test/translated-article.html" rel="bookmark"
title="Permalink to A translated article">A translated article</a></h2> title="Permalink to A translated article">A translated article</a></h2>
Translations: Translations:
<a href="http://example.com/test/cz/translated-article.html">cz</a> <a href="http://example.com/test/cz/translated-article.html" hreflang="cz">cz</a>
<a href="http://example.com/test/de/translated-article.html">de</a> <a href="http://example.com/test/de/translated-article.html" hreflang="de">de</a>
</header> </header>
<footer class="post-info"> <footer class="post-info">
...@@ -35,6 +42,9 @@ ...@@ -35,6 +42,9 @@
<address class="vcard author"> <address class="vcard author">
By <a class="url fn" href="http://example.com/test/author/the-tester.html">The Tester</a> By <a class="url fn" href="http://example.com/test/author/the-tester.html">The Tester</a>
</address> </address>
<div class="category">
Category: <a href="http://example.com/test/category/misc.html">misc</a>
</div>
</footer><!-- /.post-info --> </footer><!-- /.post-info -->
<div class="entry-content"> <div class="entry-content">
<p>A simple article with a translation. <p>A simple article with a translation.
...@@ -44,8 +54,8 @@ Here is a link to <a class="reference external" href="http://example.com/test/im ...@@ -44,8 +54,8 @@ Here is a link to <a class="reference external" href="http://example.com/test/im
</section> </section>
<footer id="contentinfo" class="body"> <footer id="contentinfo" class="body">
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer><!-- /#contentinfo -->
</body> </body>
......
...@@ -136,4 +136,4 @@ class TestFullRun(unittest.TestCase): ...@@ -136,4 +136,4 @@ class TestFullRun(unittest.TestCase):
self.temp_path], env={'PAGER': ''}, self.temp_path], env={'PAGER': ''},
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
self.assertFalse(out, 'non-empty `diff` stdout:\n{}'.format(out)) self.assertFalse(out, 'non-empty `diff` stdout:\n{}'.format(out))
self.assertFalse(err, 'non-empty `diff` stderr:\n{}'.format(out)) self.assertFalse(err, 'non-empty `diff` stderr:\n{}'.format(err))
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
{% endif %} {% endif %}
{% if category and CATEGORY_FEED_ATOM %} {% if category and CATEGORY_FEED_ATOM %}
<link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM|format(slug=category.slug) }}" type="application/atom+xml" rel="alternate"
title="{{ SITENAME }} {{ category }} ATOM Feed"/> title="{{ SITENAME }} {{ category }} ATOM Feed"/>
{% endif %} {% endif %}
......
...@@ -40,7 +40,8 @@ PYGMENTS_STYLE = 'default' ...@@ -40,7 +40,8 @@ PYGMENTS_STYLE = 'default'
PATH_METADATA = 'pages/(?P<path>.*)\..*' PATH_METADATA = 'pages/(?P<path>.*)\..*'
JINJA_EXTENSIONS = ['jinja2.ext.i18n'] JINJA_ENVIRONMENT = {"extensions": ['jinja2.ext.i18n']}
I18N_SUBSITES = { I18N_SUBSITES = {
} }
...@@ -56,7 +57,7 @@ BOOTSTRAP_THEME = 'readable' ...@@ -56,7 +57,7 @@ BOOTSTRAP_THEME = 'readable'
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search') DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
ARTICLE_EXCLUDES = ['files'] ARTICLE_EXCLUDES = ['files']
STATIC_PATHS = ['images', 'content', 'files', 'files/licence_g1.rst', 'css'] STATIC_PATHS = ['images', 'content', 'files', 'files/license_g1.txt', 'css']
CUSTOM_CSS = 'css/custom.css' CUSTOM_CSS = 'css/custom.css'
...@@ -69,7 +70,6 @@ LINKS = (('duniter.org', 'https://duniter.org/'), ...@@ -69,7 +70,6 @@ LINKS = (('duniter.org', 'https://duniter.org/'),
ACCEPTED_MENUS = ['introduction', ACCEPTED_MENUS = ['introduction',
'get-g1', 'get-g1',
'contribute', 'contribute',
'contact',
'wiki', 'wiki',
'about',] 'about',]
...@@ -77,7 +77,7 @@ ACCEPTED_MENUS = ['introduction', ...@@ -77,7 +77,7 @@ ACCEPTED_MENUS = ['introduction',
SOCIAL = (('Forum', 'https://forum.duniter.org', 'comment'), SOCIAL = (('Forum', 'https://forum.duniter.org', 'comment'),
('Salon XMPP', 'https://chat.duniter.org', 'comments'), ('Salon XMPP', 'https://chat.duniter.org', 'comments'),
('Bugs', '/fr/wiki/rapporter-un-bug', 'bug'), ('Bugs', '/fr/wiki/rapporter-un-bug', 'bug'),
('Mastodon', 'ihttps://mastodon.xyz/@duniter', 'globe'), ('Mastodon', 'https://mastodon.xyz/@duniter', 'globe'),
('Gitlab', 'https://git.duniter.org/'), ('Gitlab', 'https://git.duniter.org/'),
('GitHub', 'https://github.com/duniter'), ('GitHub', 'https://github.com/duniter'),
('Diaspora', 'https://framasphere.org/people/1949ee70f6bc0134e6b32a0000053625', 'asterisk'), ('Diaspora', 'https://framasphere.org/people/1949ee70f6bc0134e6b32a0000053625', 'asterisk'),
......
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # # -*- coding: utf-8 -*- #
from __future__ import unicode_literals import sys
sys.path.append('.')
# AUTHOR = u'Duniter' from pelicanconf import *
SITENAME = u'Duniter'
SITEURL = u'https://duniter.org/en'
PATH = 'content'
THEME = "pelican-themes/pelican-bootstrap3"
PAGES_SORT_ATTRIBUTE = 'order'
TIMEZONE = 'Europe/Paris'
# ABOUT_ME = '<div id="stb-container-1313" class="stb-container-css stb-black-container stb-collapsible stb-visible stb-image-big stb-ltr stb-border" style="margin: 10px 0px 10px 0px;"><div id="stb-caption-box-1313" class="stb-black-caption_box stb_caption stb-caption-box"><aside class="stb-caption-icon"><img src="http://www.creationmonetaire.info/wp-content/plugins/wp-special-textboxes/themes/stb-metro/earth.png"></aside><div id="stb-tool-1313" class="stb-tool"><img id="stb-toolimg-1313" src="http://www.creationmonetaire.info/wp-content/plugins/wp-special-textboxes/themes/stb-metro/minus.png" title="Hide"></div>J’accepte les Ğ1 !</div><div id="stb-body-box-1313" class="stb-black-body_box stb_body stb-body-box"><div style="margin-bottom: 15px;padding: 2px 2px; background-color: #e7f3fe;border-left: 6px solid #2196F3; font-size: 80%; color: black;">ID : Galuel<br>Ds1z6Wd8hNTexBoo3LVG2oXLZN4dC9ZWxoWwnDbF1NEW</div><center><a href="http://g1.duniter.org/cesium/#/app/wot/Ds1z6Wd8hNTexBoo3LVG2oXLZN4dC9ZWxoWwnDbF1NEW/Galuel"><img src="http://www.creationmonetaire.info/wp-content/uploads/2017/03/duniter_button.png" width="100"></a></center></div></div>'
FAVICON = 'images/duniter-logo.png'
SITELOGO = 'images/duniter-logo.png'
THUMBNAIL_DEFAULT = '/images/duniter-logo-bw.png'
SEARCH_URL = '/en/search.html'
# BANNER = 'images/duniter-logo.png'
# BANNER_SUBTITLE = 'This is my subtitle'
SITELOGO_SIZE = 36
DEFAULT_LANG = u'fr'
PLUGIN_PATHS = ['pelican-plugins/']
PLUGINS = ['i18n_subsites', 'tipue_search', 'pelican-page-hierarchy', 'plantuml']
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': { 'css_class': 'highlight' },
'markdown.extensions.fenced_code': {},
'markdown.extensions.extra': {},
'markdown.extensions.toc': {},
#'plantuml.plantuml_md': {'siteurl': '/en'} DOES NOT WORK, NEED A PATCH ON THE PLUGIN PLANTUML, USE SITEURL BY DEFAULT
}
}
PYGMENTS_STYLE = 'default'
PATH_METADATA = 'pages/(?P<path>.*)\..*'
JINJA_EXTENSIONS = ['jinja2.ext.i18n']
I18N_SUBSITES = {
}
ARTICLE_URL = '{slug}'
ARTICLE_SAVE_AS = '{slug}.html'
PAGE_URL = 'pages/{slug}'
PAGE_SAVE_AS = 'pages/{slug}.html'
CATEGORY_URL = 'category/{slug}'
CATEGORY_SAVE_AS = 'category/{slug}.html'
BOOTSTRAP_THEME = 'readable'
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
ARTICLE_EXCLUDES = ['files']
STATIC_PATHS = ['images', 'content', 'files', 'files/licence_g1.rst', 'css']
CUSTOM_CSS = 'css/custom.css'
# Blogroll
LINKS = (('duniter.org', 'https://duniter.org/'),
('forum.duniter.org', 'https://forum.duniter.org/'),
('creationmonetaire.info', 'http://creationmonetaire.info/'),)
# Social widget
ACCEPTED_MENUS = ['introduction',
'get-g1',
'contribuer',
'contact',
'wiki',
'a-propos',]
SOCIAL = (('Forum', 'https://forum.duniter.org', 'comment'),
('Salon XMPP', 'https://chat.duniter.org', 'comments'),
('Bugs', '/fr/wiki/rapporter-un-bug', 'bug'),
('Mastodon', 'https://mastodon.xyz/@duniter', 'globe'),
('Gitlab', 'https://git.duniter.org/'),
('GitHub', 'https://github.com/duniter'),
('Diaspora', 'https://framasphere.org/people/1949ee70f6bc0134e6b32a0000053625', 'asterisk'),
('RSS', '/feeds/all.atom.xml'),
('ğchange', 'https://www.gchange.fr', 'balance-scale'),
('ğannonce', 'https://gannonce.duniter.org', 'bullhorn'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
CC_LICENSE = "CC-BY-SA"
DISPLAY_ARTICLE_INFO_ON_INDEX = False
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = True
BOOTSTRAP_FLUID = False
DISPLAY_CATEGORY_IN_BREADCRUMBS = True
DISPLAY_BREADCRUMBS = True
DISPLAY_CATEGORIES_ON_SIDEBAR = True
DISPLAY_RECENT_POSTS_ON_SIDEBAR = False
SHOW_ARTICLE_AUTHOR = True
SHOW_ARTICLE_AUTHOR = True
SHOW_ARTICLE_CATEGORY = False
SHOW_DATE_MODIFIED = True
SITEURL = u'https://duniter.org'
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import re
def replace(original_file, placeholder_start, placeholder_end,
replace_file, target_file=None):
"""
This function will replace in original_file what is between starting
placeholder and ending placeholder by the
content of replace_file. It will save it as target_file if provided, or
in original_file otherwise.
No backslash must be used in the placeholders except in order to escape
Result will be put in triple backquotes.
:param original_file Source that must be modified:
:param placeholder_start String starting the position to replace:
:param placeholder_start String ending the position to replace:
:param replace_file File to include at placeholder position:
:param target_file Destination where the complete file must be stored.
Facultative, will be replaced by original_file if not provided:
:return:
"""
if target_file is None:
target_file = original_file
with open(original_file, 'r') as my_original_file:
original_content = my_original_file.read()
with open(replace_file, 'r') as my_replace_file:
#we keep placeholders to be able to replay the process several times
replace_content = placeholder_start.replace('\\','') + "\n\n\n" + my_replace_file.read() + "\n\n\n" + placeholder_end.replace('\\','')
regex = placeholder_start + r'(.*)' + placeholder_end
new_content = re.sub(regex, replace_content, original_content, flags=re.DOTALL)
with open(target_file, 'w') as my_target_file:
my_target_file.write(new_content)
print("Will start replace")
replace('content/pages/wiki/g1-license.md', '\[//\]: # \(BeginLicense\)', '\[//\]: # \(EndLicense\)', 'content/files/license_g1.txt')
print("Replace completed")
pelican==4.7.2
Markdown==3.3.4
beautifulsoup4==4.9.3