Skip to content

Commit

Permalink
October 29 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Oct 29, 2017
1 parent 4d81bff commit d375170
Show file tree
Hide file tree
Showing 37 changed files with 258 additions and 129 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<section>
<section id="404-msg">
<h2>error 404</h2>
<p>unknown around here, get on your way traveller.</p>
</section>
2 changes: 1 addition & 1 deletion ajax-request-blob-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
2 changes: 1 addition & 1 deletion archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
12 changes: 6 additions & 6 deletions author/thierry-ducrest.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand All @@ -65,8 +65,8 @@ <h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<h3><a href="http://thierry.ducrest.net/error-upgrading-database-with-alembic.html">Error upgrading database with Alembic</a></h3>
<span class="date-article">12 November 2016</span>
<div class="article-text">
<p>On my last project I started using <a href="https://bitbucket.org/zzzeek/alembic/overview">Alembic</a> as a migration tool for the database, which is a new thing for me.<br />
Before that I used to simply keep a file with the modifications applied to the developement database between each release version and patch the test and production datbase ...</p>
<p>On my last project I started using <a href="https://bitbucket.org/zzzeek/alembic/overview">Alembic</a> as a migration tool for the database, which is a new thing for me.<br>
Before that I used to simply keep a file with the modifications applied to the developement database between each release version and patch the test and production datbase </p>
</div>
<a href="http://thierry.ducrest.net/error-upgrading-database-with-alembic.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand All @@ -78,7 +78,7 @@ <h3><a href="http://thierry.ducrest.net/using-imagemagick-from-a-nodejs-applicat
<span class="date-article">30 October 2016</span>
<div class="article-text">
<p>Lately when I needed to convert files from PDF to an image file format I was not surprised to find ImageMagick the best option for the job. I had used it before from the command line and knew to be a great piece of software.</p>
<p>And naturally, when wanting to ...</p>
<p>And naturally, when wanting to </p>
</div>
<a href="http://thierry.ducrest.net/using-imagemagick-from-a-nodejs-application.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand All @@ -90,7 +90,7 @@ <h3><a href="http://thierry.ducrest.net/managing-locale-with-linux-and-python.ht
<span class="date-article">20 September 2016</span>
<div class="article-text">
<p>As far as I can remember I have always installed my operating systems to use the english language, maybe because I did not have the luxury of the choice before and it kind of feels more natural now.</p>
<p>Lately I have had to print names (month, days) of the calendar ...</p>
<p>Lately I have had to print names (month, days) of the calendar </p>
</div>
<a href="http://thierry.ducrest.net/managing-locale-with-linux-and-python.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand All @@ -101,7 +101,7 @@ <h3><a href="http://thierry.ducrest.net/managing-locale-with-linux-and-python.ht
<h3><a href="http://thierry.ducrest.net/ajax-request-blob-content.html">Ajax request and blob content</a></h3>
<span class="date-article">06 September 2016</span>
<div class="article-text">
<p>The web app I am building as a separate nodejs service than run for the sole purpose of generating pdf files for various content. That service does not have access to the database content but receive on each request the data that needs to be printed. And send back the ...</p>
<p>The web app I am building as a separate nodejs service than run for the sole purpose of generating pdf files for various content. That service does not have access to the database content but receive on each request the data that needs to be printed. And send back the </p>
</div>
<a href="http://thierry.ducrest.net/ajax-request-blob-content.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand Down
2 changes: 1 addition & 1 deletion authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
2 changes: 1 addition & 1 deletion categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
10 changes: 5 additions & 5 deletions category/it.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand All @@ -65,8 +65,8 @@ <h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<h3><a href="http://thierry.ducrest.net/error-upgrading-database-with-alembic.html">Error upgrading database with Alembic</a></h3>
<span class="date-article">12 November 2016</span>
<div class="article-text">
<p>On my last project I started using <a href="https://bitbucket.org/zzzeek/alembic/overview">Alembic</a> as a migration tool for the database, which is a new thing for me.<br />
Before that I used to simply keep a file with the modifications applied to the developement database between each release version and patch the test and production datbase ...</p>
<p>On my last project I started using <a href="https://bitbucket.org/zzzeek/alembic/overview">Alembic</a> as a migration tool for the database, which is a new thing for me.<br>
Before that I used to simply keep a file with the modifications applied to the developement database between each release version and patch the test and production datbase </p>
</div>
<a href="http://thierry.ducrest.net/error-upgrading-database-with-alembic.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand All @@ -78,7 +78,7 @@ <h3><a href="http://thierry.ducrest.net/using-imagemagick-from-a-nodejs-applicat
<span class="date-article">30 October 2016</span>
<div class="article-text">
<p>Lately when I needed to convert files from PDF to an image file format I was not surprised to find ImageMagick the best option for the job. I had used it before from the command line and knew to be a great piece of software.</p>
<p>And naturally, when wanting to ...</p>
<p>And naturally, when wanting to </p>
</div>
<a href="http://thierry.ducrest.net/using-imagemagick-from-a-nodejs-application.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand All @@ -90,7 +90,7 @@ <h3><a href="http://thierry.ducrest.net/managing-locale-with-linux-and-python.ht
<span class="date-article">20 September 2016</span>
<div class="article-text">
<p>As far as I can remember I have always installed my operating systems to use the english language, maybe because I did not have the luxury of the choice before and it kind of feels more natural now.</p>
<p>Lately I have had to print names (month, days) of the calendar ...</p>
<p>Lately I have had to print names (month, days) of the calendar </p>
</div>
<a href="http://thierry.ducrest.net/managing-locale-with-linux-and-python.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand Down
4 changes: 2 additions & 2 deletions category/misc.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand All @@ -65,7 +65,7 @@ <h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<h3><a href="http://thierry.ducrest.net/ajax-request-blob-content.html">Ajax request and blob content</a></h3>
<span class="date-article">06 September 2016</span>
<div class="article-text">
<p>The web app I am building as a separate nodejs service than run for the sole purpose of generating pdf files for various content. That service does not have access to the database content but receive on each request the data that needs to be printed. And send back the ...</p>
<p>The web app I am building as a separate nodejs service than run for the sole purpose of generating pdf files for various content. That service does not have access to the database content but receive on each request the data that needs to be printed. And send back the </p>
</div>
<a href="http://thierry.ducrest.net/ajax-request-blob-content.html" class="read-more">
<i class="fa fa-eye"></i>Keep reading
Expand Down
2 changes: 1 addition & 1 deletion drafts/generating-first-ssl-certificate.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
2 changes: 1 addition & 1 deletion drafts/model-article.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
19 changes: 12 additions & 7 deletions drafts/pelican-page-404.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand All @@ -65,12 +65,17 @@ <h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<h3><a href="http://thierry.ducrest.net/drafts/pelican-page-404.html">Pelican page 404</a></h3>
<span class="date-article">10 October 2017</span>
<div class="article_text">
<p>There is two type of content in Pelican : articles and pages.</p>
<p>In the content directory, pages are by convention stored in <code>./pages</code>. But a content file (I use Markdown) in other directory will be parsed as well.</p>
<p>The template used by default for pages is page.html, but a different one can be set in the metadata of the page thanks to this <a href="https://github.com/getpelican/pelican/issues/376">PR</a></p>
<div class="highlight"><pre><span></span><span class="n">Title</span><span class="o">:</span> <span class="mi">404</span>
<span class="n">Date</span><span class="o">:</span> <span class="mi">08</span><span class="o">-</span><span class="mi">10</span><span class="o">-</span><span class="mi">2017</span>
<span class="n">Template</span><span class="o">:</span> <span class="mi">404</span>
<p>To implement a 404 page for </p>
<div class="highlight"><pre><span></span>STATIC_PATHS = [
&#39;static&#39;
]
EXTRA_PATH_METADATA = {
&#39;static/404.html&#39;: {&#39;path&#39;: &#39;404.html&#39;},
}

ARTICLE_EXCLUDES = [
&#39;static&#39;
]
</pre></div>
</div>
<div class="article_meta">
Expand Down
2 changes: 1 addition & 1 deletion drafts/static-declaration-in-a-backbone-model.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
100 changes: 100 additions & 0 deletions drafts/type-of-content-in-pelican.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="en">

<head>
<!-- ## for client-side less
<link rel="stylesheet/less" type="text/css" href="http://thierry.ducrest.net/theme/css/style.less">
<script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/1.7.3/less.min.js" type="text/javascript"></script>
-->
<link rel="stylesheet" href="http://thierry.ducrest.net/theme/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="http://thierry.ducrest.net/theme/css/style.css">
<link rel="stylesheet" type="text/css" href="http://thierry.ducrest.net/theme/css/pygments.css">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=PT+Sans|PT+Serif|PT+Mono">

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Thierry Ducrest">
<meta name="description" content="Posts and writings by Thierry Ducrest">

<link href="http://feeds.thierry.ducrest.net/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title=" Atom" />

<meta name="keywords" content="Pelican, Python">

<title>

&ndash; Type of content in Pelican </title>

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-41998474-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>

<body>
<aside>
<div id="user_meta">
<a href="http://thierry.ducrest.net">
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
<li><a href="https://twitter.com/thducrest" target="_blank"><i class="fa fa-twitter fa-lg"></i></a></li>
</ul>
</div>
</aside>

<main>
<header>
<p>
<a href="http://thierry.ducrest.net">Index</a> &brvbar; <a href="http://thierry.ducrest.net/archives.html">Archives</a>
&brvbar; <a href="http://feeds.thierry.ducrest.net/feeds/all.atom.xml">Atom</a>
</p>
</header>

<article>
<h3><a href="http://thierry.ducrest.net/drafts/type-of-content-in-pelican.html">Type of content in Pelican</a></h3>
<span class="date-article">11 October 2017</span>
<div class="article_text">
<p>There is three types of content in Pelican : articles, pages and static content.</p>
<h3>Page</h3>
<p>In the content directory, pages are by convention stored in <code>./pages</code>. But a content file (I use Markdown) in other directory will be parsed as well.</p>
<p>The template used by default for pages is page.html, but a different one can be set in the metadata of the page like this for a Markdown document</p>
<div class="highlight"><pre><span></span><span class="n">Template</span><span class="o">:</span> <span class="n">template_name</span>
</pre></div>


<p>https://github.com/getpelican/pelican/blob/359ffcabb8534d6225ac579ed49fe20d5507507f/pelican/contents.py#L417</p>
<h3>Article</h3>
<p>https://github.com/getpelican/pelican/blob/359ffcabb8534d6225ac579ed49fe20d5507507f/pelican/contents.py#L424</p>
<h3>Static</h3>
<p>https://github.com/getpelican/pelican/blob/359ffcabb8534d6225ac579ed49fe20d5507507f/pelican/contents.py#L452</p>
</div>
<div class="article_meta">
<p>Posted on: Wed 11 October 2017</p>
<p>Category: <a href="http://thierry.ducrest.net/category/it.html">IT</a>
&ndash; Tags:
<a href="http://thierry.ducrest.net/tag/pelican.html">Pelican</a>, <a href="http://thierry.ducrest.net/tag/python.html">Python</a> </p>
</div>


</article>


<div id="ending_message">
<!--
<p>&copy; Thierry Ducrest. Built using <a href="http://getpelican.com" target="_blank">Pelican</a>.</p>
-->
</div>
</main>
</body>
</html>
2 changes: 1 addition & 1 deletion drafts/using-data-volumes-with-docker-containers.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<img src="http://thierry.ducrest.net/theme/images/empty.png" alt="logo">
</a>
<h2><a href="http://thierry.ducrest.net">Thierry Ducrest</a></h2>
<p>Fullstack web developer</p>
<p>Software Developer</p>
<ul>
<li><a href="https://github.com/TDu" target="_blank"><i class="fa fa-github fa-lg"></i></a></li>
<li><a href="https://cl.linkedin.com/in/thierry-ducrest-928a394" target="_blank"><i class="fa fa-linkedin-square fa-lg"></i></a></li>
Expand Down
Loading

0 comments on commit d375170

Please sign in to comment.