<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://cecilapp.github.io/theme-leon/fr/xsl/atom.xsl" media="all"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
  <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/</id>
  <title>Léon - Avancé</title>
  <subtitle><![CDATA[Léon est un thème de documentation pour Cecil, à l'allure chaleureuse et éditoriale.]]></subtitle>
  <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/atom.xml" rel="self" type="application/atom+xml" />
  <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/" rel="alternate" type="text/html" />
  <updated>2026-10-22T22:11:10+00:00</updated>
  <author>
    <name>Cecil</name>
    <uri>https://cecil.app</uri>
  </author>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/customization/</id>
    <title>Personnalisation</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/customization/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h2 id="design-tokens">Design tokens</h2>
<p>Chaque couleur est une propriété personnalisée CSS, définie pour les modes clair et sombre :</p>
<pre><code class="language-css hljs css" translate="no"><span class="hljs-selector-pseudo">:root</span> {
  <span class="hljs-attribute">--leon-accent</span>: <span class="hljs-number">#2563eb</span>;
}
<span class="hljs-selector-class">.dark</span> {
  <span class="hljs-attribute">--leon-page</span>: <span class="hljs-number">#000</span>;
}</code></pre>
<h2 id="templates">Templates</h2>
<p>Copiez n'importe quel template de <code translate="no">themes/leon/layouts/</code> dans le répertoire <code translate="no">layouts/</code> de votre site pour le surcharger.</p>]]>
    </content>
  </entry>
  <entry xml:lang="fr">
    <id>https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/translations/</id>
    <title>Traductions</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/fr/docs/guides/advanced/translations/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Ajoutez vos propres traductions dans <code translate="no">translations/messages.&lt;locale&gt;.yml</code>.</p>
<h2 id="configuration-multilingue">Configuration multilingue</h2>
<p>Traduisez les options dans la clé <code translate="no">config</code> de chaque langue. Le bloc <code translate="no">leon</code> est fusionné avec celui de la langue par défaut : ne définissez que les clés traduites.</p>
<pre><code class="language-yaml hljs yaml" translate="no"><span class="hljs-attr">leon:</span>
  <span class="hljs-attr">header:</span>
    <span class="hljs-attr">cta:</span>
      <span class="hljs-attr">name:</span> <span class="hljs-string">Get</span> <span class="hljs-string">started</span>
      <span class="hljs-attr">url:</span> <span class="hljs-string">/docs/getting-started/quickstart/</span>
  <span class="hljs-attr">footer:</span> <span class="hljs-string">'Released under the MIT license.'</span>
<span class="hljs-attr">languages:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">code:</span> <span class="hljs-string">en</span>
    <span class="hljs-attr">name:</span> <span class="hljs-string">English</span>
    <span class="hljs-attr">locale:</span> <span class="hljs-string">en_US</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">code:</span> <span class="hljs-string">fr</span>
    <span class="hljs-attr">name:</span> <span class="hljs-string">Français</span>
    <span class="hljs-attr">locale:</span> <span class="hljs-string">fr_FR</span>
    <span class="hljs-attr">config:</span>
      <span class="hljs-attr">leon:</span>
        <span class="hljs-attr">header:</span>
          <span class="hljs-attr">cta:</span>
            <span class="hljs-attr">name:</span> <span class="hljs-string">Commencer</span> <span class="hljs-comment"># l'`url` est héritée</span>
        <span class="hljs-attr">footer:</span> <span class="hljs-string">'Publié sous licence MIT.'</span></code></pre>
<aside class="note note-warning"><p>Les menus ne sont pas hérités : répétez intégralement les <code translate="no">menus</code> du site dans la clé <code translate="no">config</code> de chaque langue.</p></aside>
<h2 id="langue-du-navigateur">Langue du navigateur</h2>
<p>Avec <code translate="no">leon.language.suggest: true</code>, un bandeau suggère la traduction de la page correspondant à la langue du navigateur, rédigé dans cette langue. Il reste affiché jusqu'à ce que le visiteur le suive, le ferme ou choisisse une langue avec le sélecteur.</p>]]>
    </content>
  </entry>
</feed>
