<linkrel="alternate"lang="fr"xml:lang="fr"title="Récupérez mon système de blog"type="text/html"hreflang="fr"href="/Scratch/fr/blog/2010-06-15-Get-my-blog-engine/"/>
<linkrel="alternate"lang="en"xml:lang="en"title="Get my blog engine"type="text/html"hreflang="en"href="/Scratch/en/blog/2010-06-15-Get-my-blog-engine/"/>
<p>J’ai publié une version <em>light</em> de mon système de blog hier soir. Par <em>light</em> il faut comprendre avec un CSS plus épuré et plus portable (sans les bords ronds).
Vous pouvez le récupérer sur <ahref="http://github.com/yogsototh/nanoc3_blog">github.com</a>.</p>
<p>Que pouvez-vous attendre de ce système de blog ?</p>
<ul>
<li>Tous les avantages liés à <ahref="http://nanoc.stoneship.org">nanoc</a> ;</li>
<li>Facilité de la gestion de plusieurs langues ;</li>
<li>coloration syntaxique des codes sources pour la plupart des languages ;</li>
<li>commentaires gérés avec <ahref="http://intensedebate.org">intenseDebate</a> de façon asynchrone ;</li>
<li>très portable avec ou sans javascript, XHTML Strict 1.0 / CSS3 ;</li>
<li>écrivez vos entrées au format Markdown (pas de HTML) ;</li>
<li>des améliorations typographiques (pas de ‘:’ en début de ligne en Français par exemple),</li>
<li>entrez directement le code de graphes qui se génèreront automatiquement en image à l’aide de <ahref="http://graphviz.org">Graphviz</a>.</li>
</ul>
<p>Pour vous donner une idée plus précise, voici la documentation que j’ai faite (en anglais) pour accompagner le code.</p>
<h2id="useful-things-to-know">Useful things to know</h2>
<h3id="multi-language">Multi-language</h3>
<p>All files in <code>multi</code> are processed and copied in the <code>content</code> directory.
For each file in multi, each line starting by ‘<code>fr: </code>’ are copied (without the <code>fr: </code> into the <code>content/html/fr/</code> tree, but not into the <code>content/html/en</code> tree. File not starting by <code>fr: </code> or <code>en: </code> are copied in each destinations.</p>
<p>If you want to add another language, you’ll have to modify <code>tasks/config</code>, and <code>config.yaml</code>, create a <code>content/html/xx</code> where <code>xx</code> is the language code.</p>
<h3id="edition--rendering">Edition & Rendering</h3>
<p>You can separate multi content div using the: <code>n</code><code>ewcorps</code> directive (see examples).</p>
<p>You can create div using <code>b</code><code>egindiv(classname)</code>, <code>e</code><code>nddiv</code>. (See some existing blog entries for example). Use the class <code>intro</code> for the abstract part.</p>
<p>You can create nice description table using <code><</code><code>desc></code> (See source code for example).</p>
<h4id="typography">Typography</h4>
<p>In French all ‘:’, ‘;’, ‘!’ and ‘?’ are preceded automatically by <code>&nbsp</code>. This enable not to have a line starting by a single special character.</p>
<p>You can use small caps using <code><sc></code> tags. </p>