<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://cecilapp.github.io/theme-leon/xsl/atom.xsl" media="all"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cecilapp.github.io/theme-leon/docs/guides/advanced/</id>
  <title>Léon - Advanced</title>
  <subtitle><![CDATA[Léon is a documentation theme for Cecil, with a warm and editorial look.]]></subtitle>
  <link href="https://cecilapp.github.io/theme-leon/docs/guides/advanced/atom.xml" rel="self" type="application/atom+xml" />
  <link href="https://cecilapp.github.io/theme-leon/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="en">
    <id>https://cecilapp.github.io/theme-leon/docs/guides/advanced/customization/</id>
    <title>Customization</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/docs/guides/advanced/customization/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<h2 id="design-tokens">Design tokens</h2>
<p>Every color is a CSS custom property, defined for the light and the dark color schemes:</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>Copy any template of <code translate="no">themes/leon/layouts/</code> in the <code translate="no">layouts/</code> directory of your site to override it.</p>]]>
    </content>
  </entry>
  <entry xml:lang="en">
    <id>https://cecilapp.github.io/theme-leon/docs/guides/advanced/translations/</id>
    <title>Translations</title>
    <published>2026-10-22T22:11:04+00:00</published>
    <link href="https://cecilapp.github.io/theme-leon/docs/guides/advanced/translations/" rel="alternate" type="text/html" />
    <content type="html">
      <![CDATA[<p>Add your own translations in <code translate="no">translations/messages.&lt;locale&gt;.yml</code>.</p>
<h2 id="multilingual-configuration">Multilingual configuration</h2>
<p>Translate the options in the <code translate="no">config</code> key of each language. The <code translate="no">leon</code> block is merged with the one of the default language: only set the translated keys.</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"># the `url` is inherited</span>
        <span class="hljs-attr">footer:</span> <span class="hljs-string">'Publié sous licence MIT.'</span></code></pre>
<aside class="note note-warning"><p>Menus are not inherited: repeat the <code translate="no">menus</code> of the site in full in the <code translate="no">config</code> key of each language.</p></aside>
<h2 id="browser-language">Browser language</h2>
<p>With <code translate="no">leon.language.suggest: true</code>, a banner suggests the translation of the page matching the browser language, written in that language. It stays displayed until the visitor follows it, closes it or chooses a language with the selector.</p>]]>
    </content>
  </entry>
</feed>
