{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Cecil - Configuration",
  "home_page_url": "https://cloudflare.cecil.app/documentation/configuration/",
  "feed_url": "https://cloudflare.cecil.app/documentation/configuration/feed.json",
  "description": "Configure your website with the cecil.yml file.",
  "icon": "https://cloudflare.cecil.app/favicon.7ff4b89eec6dad139a7d2d6561543285.png",
  "favicon": "https://cloudflare.cecil.app/thumbnails/64x/favicon.7ff4b89eec6dad139a7d2d6561543285.png",
  "language": "en",
  "items": [
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/site/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/site/",
      "title": "Site options",
      "summary": "title, baseurl, menus, taxonomies, theme, date, metatags, debug, etc.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-11-30T00:00:00+00:00","content_text": "Site options\nThese options define the main settings of the site: title, URL, description, menus, taxonomies, theme, metatags, etc.\ntitle\nMain title of the site.\ntitle: \"&lt;site title&gt;\"\nbaseline\nShort description (~ 20 characters).\nbaseline: \"&lt;baseline&gt;\"\nbaseurl\nThe base URL.\nbaseurl: &lt;url&gt;\nExample:\nbaseurl: http:\/\/localhost:8000\/\nbaseurl should end with a trailing slash (\/).\ncanonicalurl\nIf set to true the url() function will return the absolute URL (false by default).\ncanonicalurl: &lt;true|false&gt; # false by default\ndescription\nSite description (~ 250 characters).\ndescription: \"&lt;description&gt;\"\nmenus\nMenus are used to create navigation links in templates.\nA menu is a list of entries, each defined by a unique ID and properties (name, URL, weight).\nmenus:\n  &lt;name&gt;:\n    - id: &lt;unique-id&gt;   # unique identifier (required)\n      name: \"&lt;name&gt;\"    # name displayed in templates\n      url: &lt;url&gt;        # relative or absolute URL\n      weight: &lt;integer&gt; # integer value used to sort entries (lighter first)\nThe configuration is validated when it is loaded: an entry without id, or a property of an invalid type (e.g. a non integer weight), stops the build with the path of the invalid item.\nExample:\nmenus:\n  main:\n    - id: about\n      name: \"About\"\n      url: \/about\/\n      weight: 1\n  footer:\n    - id: author\n      name: The author\n      url: https:\/\/arnaudligny.fr\n      weight: 99\nA main menu is automatically created with the home page entry and the top-level sections entries, unless they define their own menu variable (see content management).\nA page can be added to a menu by setting the menu variable in its front matter.\nOverride an entry\nA page menu entry can be overridden: use the page ID as id.\nThe ID of a page menu entry doesn't include the language prefix (e.g.: docs for the fr\/docs page): the same id targets the entry in every language.\nExample:\nmenus:\n  main:\n    - id: index\n      name: \"My amazing homepage!\"\n      weight: 1\nDisable an entry\nA menu entry can be disabled with enabled: false.\nExample:\nmenus:\n  main:\n    - id: about\n      enabled: false\ntaxonomies\nList of vocabularies, paired by plural and singular value.\ntaxonomies:\n  &lt;plural&gt;: &lt;singular&gt;\nEach vocabulary must be a non-empty string (disabled to disable a vocabulary, e.g. one declared by a theme).\nExample:\ntaxonomies:\n  categories: category\n  tags: tag\nThen you can use those vocabularies in your content’s front matter.\nSince version 8.37.0, default vocabularies category and tag have been removed. You must define them in the configuration file if you want to use them.\nA vocabulary can be disabled with the special value disabled. Example: tags: disabled.\ntheme\nThe theme to use, or a list of themes.\ntheme: &lt;theme&gt; # theme name\n# or\ntheme:\n  - &lt;theme1&gt; # theme name\n  - &lt;theme2&gt;\nThe first theme overrides the others, and so on.\nA theme can require other themes: they are enabled with it, after the themes of the list.\nExamples:\ntheme: hyde\ntheme:\n  - pwa\n  - hyde\nSee themes on GitHub or the themes section of the website.\ndate\nDate format and timezone.\ndate:\n  format: &lt;format&gt;     # date format (optional, `F j, Y` by default)\n  timezone: &lt;timezone&gt; # date timezone (optional, local time zone by default)\n\nformat: PHP date format specifier\ntimezone: see timezones\n\nExample:\ndate:\n  format: 'j F, Y'\n  timezone: 'Europe\/Paris'\nmetatags\nmetatags are SEO and social helpers that can be automatically injected in the &lt;head&gt;, with the template partials\/metatags.html.twig.\nThis template adds the following meta tags:\n\nPage title + Site title, or Site title + Site baseline\nPage\/Site description\nPage\/Site keywords\nPage\/Site author\nSearch engine crawler directives (robots)\nFavicon links\nNavigation links (first, previous, next, last)\nCanonical URL\nAlternate links (e.g.: RSS feed, other languages)\nrel=me links\nOpen Graph\nFacebook profile ID\nTwitter\/X Card\nFediverse tag\nDublin Core\nStructured data (JSON-LD)\n\nmetatags options\nCecil uses page front matter to feed meta tags, and falls back to site options when needed.\ntitle: \"Page\/Site title\"              # used by title meta\ndescription: \"Page\/Site description\"  # used by description meta\ntags: [tag1, tag2]                    # used by keywords meta\nkeywords: [keyword1, keyword2]        # obsolete in page front matter (use `tags`)\nauthor:                               # used by author meta\n  name: &lt;name&gt;                          # author name\n  url: &lt;url&gt;                            # author URL\n  email: &lt;email&gt;                        # author email\nimage: image.jpg                      # used by Open Graph and social networks cards\ncanonical:                            # used to override the generated canonical URL\n  url: &lt;URL&gt;                            # absolute URL\n  title: \"&lt;URL title&gt;\"                  # optional canonical title\nsocial:                               # used by social networks meta\n  twitter:                              # used by Twitter\/X Card\n    url: &lt;URL&gt;                            # used for `rel=me` link\n    site: username                        # site username\n    creator: username                     # page author username\n  mastodon:                             # used by Mastodon meta\n    url: &lt;URL&gt;                            # used for `rel=me` link\n    creator: handle                       # page author account\n  facebook:                             # used by Facebook meta\n    url: &lt;URL&gt;                            # used for `rel=me` link\n    id: 123456789                         # Facebook profile ID\n    username: username                    # page author username\nIn the configuration, author (a name or a map), image (a path or a URL) and social (a map of networks, each one being a map) are validated when the configuration is loaded: a property of an invalid type stops the build with the path of the invalid item. Other properties are allowed.\nIf needed, title and image can be overridden:\n{{ include('partials\/metatags.html.twig', {title: 'Custom title', image: 'images\/og.png'}) }}\nimage accepts a path or an asset.\nmetatags configuration\nmetatags:\n  title:                   # title options\n    divider: \" &amp;middot; \"    # string between page title and site title\n    only: false              # displays page title only (`false` by default)\n    pagination:              # pagination options\n      shownumber: true         # displays page number in title (`true` by default)\n      label: \"Page %s\"         # how to display page number (`Page %s` by default)\n  robots: \"index,follow\"   # web crawlers directives (`index,follow` by default)\n  favicon:                 # favicon options (set `favicon: false` to disable)\n    image: favicon.png       # path to favicon image (`favicon.png` by default)\n    sizes:                   # sizes by device\n      \"icon\": [32, 57, 76, 96, 128, 192, 228]  # web browsers\n      \"shortcut icon\": [128, 196]              # Android\n      \"apple-touch-icon\": [120, 152, 180]      # iOS\n  navigation: true         # includes previous and next links (`true` by default)\n  image: true              # includes image (`true` by default)\n  og: true                 # includes Open Graph meta tags (`true` by default)\n  articles: \"blog\"         # articles' section(s): a section or a list of sections (`blog` by default)\n  twitter: true            # includes Twitter\/X Card meta tags (`true` by default)\n  mastodon: true           # includes Mastodon meta tags (`true` by default)\n  dc: false                # includes Dublin Core meta tags (`false` by default)\n  data: false              # includes JSON-LD structured data (`false` by default), see below for options\nThese options are validated when the configuration is loaded: an option of an invalid type (e.g. og: yes, or a favicon size that is not an integer) stops the build with the path of the invalid item. Other options (e.g. used by a theme) are allowed.\nPages whose robots directives (metatags.robots in front matter, or the metatags.robots site option as fallback) contain noindex are excluded from the XML sitemap.\nStructured data\nWhen enabled, structured data are added as a JSON-LD graph of linked entities (schema.org):\n\nWebSite and its publisher (Organization or Person)\nWebPage (CollectionPage for the homepage, sections and taxonomies pages), except for the 404 page\nBreadcrumbList: home, ancestor sections (or vocabulary) and current page\nBlogPosting for pages of the articles' section(s) (see metatags.articles)\nVideoObject for pages with a video and an image (used as thumbnail)\nItemList of the main menu entries\n\nmetatags.data accepts true or a map of options:\nmetatags:\n  data:\n    enabled: true            # enables JSON-LD structured data (`true` if `data` is a map)\n    article: BlogPosting     # schema.org type of articles (`BlogPosting` by default, e.g. `NewsArticle`)\n    publisher:               # entity that publishes the site\n      type: Organization       # `Organization` (default) or `Person` (personal site)\n      name: &lt;name&gt;             # site title by default (site author name for a `Person`)\n      logo: logo.png           # favicon image (`favicon.png`) by default\n      url: &lt;url&gt;               # site URL by default\n      sameAs: [&lt;url&gt;, &lt;url&gt;]   # `url` of `social` entries by default\nThe page front matter can override some options:\nmetatags:\n  data:\n    enabled: false           # disables structured data for this page\n    type: AboutPage          # page type (e.g. `AboutPage`, `ContactPage`, `ProfilePage`, `FAQPage`)\n    article: NewsArticle     # article type\nThe author of an article is built from the author front matter (name, url, image, title) and from social.*.url page entries. Without author, the publisher is used.\nIn debug mode, the JSON-LD is pretty-printed to be human readable (unless HTML files are optimized).\ndebug\nEnables the debug mode, used to display debug information like very verbose logs, Twig dump, Twig profiler, SCSS sourcemap, etc.\ndebug: true\nThere are two other ways to enable debug mode:\n\nRun a command with the -vvv option\nSet the CECIL_DEBUG environment variable to true\n\n",
      "content_html": "<h1>Site options</h1>\n<p>These options define the main settings of the site: title, URL, description, menus, taxonomies, theme, metatags, etc.</p>\n<h2 id=\"title\">title<a class=\"heading-anchor\" href=\"#title\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Main title of the site.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">\"&lt;site title&gt;\"</span></code></pre>\n<h2 id=\"baseline\">baseline<a class=\"heading-anchor\" href=\"#baseline\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Short description (~ 20 characters).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">baseline:</span> <span class=\"hljs-string\">\"&lt;baseline&gt;\"</span></code></pre>\n<h2 id=\"baseurl\">baseurl<a class=\"heading-anchor\" href=\"#baseurl\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The base URL.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">baseurl:</span> <span class=\"hljs-string\">&lt;url&gt;</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">baseurl:</span> <span class=\"hljs-string\">http://localhost:8000/</span></code></pre>\n<aside class=\"note note-important\"><p><code translate=\"no\">baseurl</code> should end with a trailing slash (<code translate=\"no\">/</code>).</p></aside>\n<h2 id=\"canonicalurl\">canonicalurl<a class=\"heading-anchor\" href=\"#canonicalurl\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>If set to <code translate=\"no\">true</code> the <a href=\"../templates/reference/1-functions.md#url\"><code translate=\"no\">url()</code></a> function will return the absolute URL (<code translate=\"no\">false</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">canonicalurl:</span> <span class=\"hljs-string\">&lt;true|false&gt;</span> <span class=\"hljs-comment\"># false by default</span></code></pre>\n<h2 id=\"description\">description<a class=\"heading-anchor\" href=\"#description\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Site description (~ 250 characters).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">description:</span> <span class=\"hljs-string\">\"&lt;description&gt;\"</span></code></pre>\n<h2 id=\"menus\">menus<a class=\"heading-anchor\" href=\"#menus\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Menus are used to create <a href=\"../templates/2-variables.md#site-menus\">navigation links in templates</a>.</p>\n<p>A menu is a list of entries, each defined by a unique ID and properties (name, URL, weight).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">menus:</span>\n  <span class=\"hljs-string\">&lt;name&gt;:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">id:</span> <span class=\"hljs-string\">&lt;unique-id&gt;</span>   <span class=\"hljs-comment\"># unique identifier (required)</span>\n      <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">\"&lt;name&gt;\"</span>    <span class=\"hljs-comment\"># name displayed in templates</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;url&gt;</span>        <span class=\"hljs-comment\"># relative or absolute URL</span>\n      <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-string\">&lt;integer&gt;</span> <span class=\"hljs-comment\"># integer value used to sort entries (lighter first)</span></code></pre>\n<p>The configuration is validated when it is loaded: an entry without <code translate=\"no\">id</code>, or a property of an invalid type (e.g. a non integer <code translate=\"no\">weight</code>), stops the build with the path of the invalid item.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">menus:</span>\n  <span class=\"hljs-attr\">main:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">id:</span> <span class=\"hljs-string\">about</span>\n      <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">\"About\"</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">/about/</span>\n      <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">1</span>\n  <span class=\"hljs-attr\">footer:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">id:</span> <span class=\"hljs-string\">author</span>\n      <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">The</span> <span class=\"hljs-string\">author</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">https://arnaudligny.fr</span>\n      <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">99</span></code></pre>\n<aside class=\"note note-info\"><p>A <code translate=\"no\">main</code> menu is automatically created with the home page entry and the top-level sections entries, unless they define their own <code translate=\"no\">menu</code> variable (see <a href=\"../content/index.md\">content management</a>).</p></aside>\n<aside class=\"note note-tip\"><p>A page can be added to a menu by setting the <a href=\"../content/2-front-matter.md#menu\"><code translate=\"no\">menu</code> variable</a> in its front matter.</p></aside>\n<h3 id=\"override-an-entry\">Override an entry<a class=\"heading-anchor\" href=\"#override-an-entry\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>A page menu entry can be overridden: use the page ID as <code translate=\"no\">id</code>.</p>\n<p>The ID of a page menu entry doesn't include the language prefix (e.g.: <code translate=\"no\">docs</code> for the <code translate=\"no\">fr/docs</code> page): the same <code translate=\"no\">id</code> targets the entry in every language.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">menus:</span>\n  <span class=\"hljs-attr\">main:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">id:</span> <span class=\"hljs-string\">index</span>\n      <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">\"My amazing homepage!\"</span>\n      <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">1</span></code></pre>\n<h3 id=\"disable-an-entry\">Disable an entry<a class=\"heading-anchor\" href=\"#disable-an-entry\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>A menu entry can be disabled with <code translate=\"no\">enabled: false</code>.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">menus:</span>\n  <span class=\"hljs-attr\">main:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">id:</span> <span class=\"hljs-string\">about</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span></code></pre>\n<h2 id=\"taxonomies\">taxonomies<a class=\"heading-anchor\" href=\"#taxonomies\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>List of vocabularies, paired by plural and singular value.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">taxonomies:</span>\n  <span class=\"hljs-string\">&lt;plural&gt;:</span> <span class=\"hljs-string\">&lt;singular&gt;</span></code></pre>\n<p>Each vocabulary must be a non-empty string (<code translate=\"no\">disabled</code> to disable a vocabulary, e.g. one declared by a theme).</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">taxonomies:</span>\n  <span class=\"hljs-attr\">categories:</span> <span class=\"hljs-string\">category</span>\n  <span class=\"hljs-attr\">tags:</span> <span class=\"hljs-string\">tag</span></code></pre>\n<p>Then you can use those vocabularies in your content’s <a href=\"../content/2-front-matter.md#taxonomy\">front matter</a>.</p>\n<aside class=\"note note-warning\"><p>Since <ins>version 8.37.0</ins>, default vocabularies <code translate=\"no\">category</code> and <code translate=\"no\">tag</code> have been removed. You must define them in the configuration file if you want to use them.</p></aside>\n<aside class=\"note note-tip\"><p>A vocabulary can be disabled with the special value <code translate=\"no\">disabled</code>. Example: <code translate=\"no\">tags: disabled</code>.</p></aside>\n<h2 id=\"theme\">theme<a class=\"heading-anchor\" href=\"#theme\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The theme to use, or a list of themes.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">theme:</span> <span class=\"hljs-string\">&lt;theme&gt;</span> <span class=\"hljs-comment\"># theme name</span>\n<span class=\"hljs-comment\"># or</span>\n<span class=\"hljs-attr\">theme:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-string\">&lt;theme1&gt;</span> <span class=\"hljs-comment\"># theme name</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-string\">&lt;theme2&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>The first theme overrides the others, and so on.</p></aside>\n<aside class=\"note note-info\"><p>A theme can <a href=\"../templates/7-extend.md#required-themes\">require other themes</a>: they are enabled with it, after the themes of the list.</p></aside>\n<p><em>Examples:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">theme:</span> <span class=\"hljs-string\">hyde</span></code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">theme:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-string\">pwa</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-string\">hyde</span></code></pre>\n<aside class=\"note note-info\"><p>See <a href=\"https://github.com/Cecilapp?q=theme#org-repositories\" target=\"_blank\" rel=\"noopener noreferrer\">themes on GitHub</a> or the <a href=\"https://cecil.app/themes/\" target=\"_blank\" rel=\"noopener noreferrer\">themes section</a> of the website.</p></aside>\n<h2 id=\"date\">date<a class=\"heading-anchor\" href=\"#date\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Date format and timezone.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">date:</span>\n  <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">&lt;format&gt;</span>     <span class=\"hljs-comment\"># date format (optional, `F j, Y` by default)</span>\n  <span class=\"hljs-attr\">timezone:</span> <span class=\"hljs-string\">&lt;timezone&gt;</span> <span class=\"hljs-comment\"># date timezone (optional, local time zone by default)</span></code></pre>\n<ul>\n<li><code translate=\"no\">format</code>: <a href=\"https://php.net/date\" target=\"_blank\" rel=\"noopener noreferrer\">PHP date</a> format specifier</li>\n<li><code translate=\"no\">timezone</code>: see <a href=\"https://php.net/timezones\" target=\"_blank\" rel=\"noopener noreferrer\">timezones</a></li>\n</ul>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">date:</span>\n  <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">'j F, Y'</span>\n  <span class=\"hljs-attr\">timezone:</span> <span class=\"hljs-string\">'Europe/Paris'</span></code></pre>\n<h2 id=\"metatags\">metatags<a class=\"heading-anchor\" href=\"#metatags\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><em>metatags</em> are <abbr title=\"Search Engine Optimization\">SEO</abbr> and social helpers that can be automatically injected in the <code translate=\"no\">&lt;head&gt;</code>, with the template <a href=\"https://github.com/Cecilapp/Cecil/blob/main/resources/layouts/partials/metatags.html.twig\" target=\"_blank\" rel=\"noopener noreferrer\"><code translate=\"no\">partials/metatags.html.twig</code></a>.</p>\n<p>This template adds the following meta tags:</p>\n<ul>\n<li>Page title + Site title, or Site title + Site baseline</li>\n<li>Page/Site description</li>\n<li>Page/Site keywords</li>\n<li>Page/Site author</li>\n<li>Search engine crawler directives (<em>robots</em>)</li>\n<li>Favicon links</li>\n<li>Navigation links (first, previous, next, last)</li>\n<li>Canonical URL</li>\n<li>Alternate links (e.g.: RSS feed, other languages)</li>\n<li><a href=\"https://developer.mozilla.org/docs/Web/HTML/Reference/Attributes/rel/me\" target=\"_blank\" rel=\"noopener noreferrer\"><code translate=\"no\">rel=me</code></a> links</li>\n<li><a href=\"https://ogp.me\" target=\"_blank\" rel=\"noopener noreferrer\">Open Graph</a></li>\n<li>Facebook profile ID</li>\n<li><a href=\"https://developer.x.com/docs/x-for-websites/cards/guides/getting-started\" target=\"_blank\" rel=\"noopener noreferrer\">Twitter/X Card</a></li>\n<li><a href=\"https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/\" target=\"_blank\" rel=\"noopener noreferrer\">Fediverse tag</a></li>\n<li><a href=\"https://www.dublincore.org/specifications/dublin-core/dcmi-terms/\" target=\"_blank\" rel=\"noopener noreferrer\">Dublin Core</a></li>\n<li><a href=\"https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data\" target=\"_blank\" rel=\"noopener noreferrer\">Structured data</a> (JSON-LD)</li>\n</ul>\n<h3 id=\"metatags-options\">metatags options<a class=\"heading-anchor\" href=\"#metatags-options\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Cecil uses page front matter to feed meta tags, and falls back to site options when needed.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">\"Page/Site title\"</span>              <span class=\"hljs-comment\"># used by title meta</span>\n<span class=\"hljs-attr\">description:</span> <span class=\"hljs-string\">\"Page/Site description\"</span>  <span class=\"hljs-comment\"># used by description meta</span>\n<span class=\"hljs-attr\">tags:</span> <span class=\"hljs-string\">[tag1,</span> <span class=\"hljs-string\">tag2]</span>                    <span class=\"hljs-comment\"># used by keywords meta</span>\n<span class=\"hljs-attr\">keywords:</span> <span class=\"hljs-string\">[keyword1,</span> <span class=\"hljs-string\">keyword2]</span>        <span class=\"hljs-comment\"># obsolete in page front matter (use `tags`)</span>\n<span class=\"hljs-attr\">author:</span>                               <span class=\"hljs-comment\"># used by author meta</span>\n  <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">&lt;name&gt;</span>                          <span class=\"hljs-comment\"># author name</span>\n  <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;url&gt;</span>                            <span class=\"hljs-comment\"># author URL</span>\n  <span class=\"hljs-attr\">email:</span> <span class=\"hljs-string\">&lt;email&gt;</span>                        <span class=\"hljs-comment\"># author email</span>\n<span class=\"hljs-attr\">image:</span> <span class=\"hljs-string\">image.jpg</span>                      <span class=\"hljs-comment\"># used by Open Graph and social networks cards</span>\n<span class=\"hljs-attr\">canonical:</span>                            <span class=\"hljs-comment\"># used to override the generated canonical URL</span>\n  <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;URL&gt;</span>                            <span class=\"hljs-comment\"># absolute URL</span>\n  <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">\"&lt;URL title&gt;\"</span>                  <span class=\"hljs-comment\"># optional canonical title</span>\n<span class=\"hljs-attr\">social:</span>                               <span class=\"hljs-comment\"># used by social networks meta</span>\n  <span class=\"hljs-attr\">twitter:</span>                              <span class=\"hljs-comment\"># used by Twitter/X Card</span>\n    <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;URL&gt;</span>                            <span class=\"hljs-comment\"># used for `rel=me` link</span>\n    <span class=\"hljs-attr\">site:</span> <span class=\"hljs-string\">username</span>                        <span class=\"hljs-comment\"># site username</span>\n    <span class=\"hljs-attr\">creator:</span> <span class=\"hljs-string\">username</span>                     <span class=\"hljs-comment\"># page author username</span>\n  <span class=\"hljs-attr\">mastodon:</span>                             <span class=\"hljs-comment\"># used by Mastodon meta</span>\n    <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;URL&gt;</span>                            <span class=\"hljs-comment\"># used for `rel=me` link</span>\n    <span class=\"hljs-attr\">creator:</span> <span class=\"hljs-string\">handle</span>                       <span class=\"hljs-comment\"># page author account</span>\n  <span class=\"hljs-attr\">facebook:</span>                             <span class=\"hljs-comment\"># used by Facebook meta</span>\n    <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;URL&gt;</span>                            <span class=\"hljs-comment\"># used for `rel=me` link</span>\n    <span class=\"hljs-attr\">id:</span> <span class=\"hljs-number\">123456789</span>                         <span class=\"hljs-comment\"># Facebook profile ID</span>\n    <span class=\"hljs-attr\">username:</span> <span class=\"hljs-string\">username</span>                    <span class=\"hljs-comment\"># page author username</span></code></pre>\n<p>In the configuration, <code translate=\"no\">author</code> (a name or a map), <code translate=\"no\">image</code> (a path or a URL) and <code translate=\"no\">social</code> (a map of networks, each one being a map) are validated when the configuration is loaded: a property of an invalid type stops the build with the path of the invalid item. Other properties are allowed.</p>\n<aside class=\"note note-tip\"><p>If needed, <code translate=\"no\">title</code> and <code translate=\"no\">image</code> can be overridden:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ <span class=\"hljs-name\">include</span><span class=\"hljs-params\">('partials/metatags.html.twig', {title: 'Custom title', image: 'images/og.png'})</span> }}</span></code></pre>\n<p><code translate=\"no\">image</code> accepts a path or an <a href=\"../assets/index.md\">asset</a>.</p></aside>\n<h3 id=\"metatags-configuration\">metatags configuration<a class=\"heading-anchor\" href=\"#metatags-configuration\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">metatags:</span>\n  <span class=\"hljs-attr\">title:</span>                   <span class=\"hljs-comment\"># title options</span>\n    <span class=\"hljs-attr\">divider:</span> <span class=\"hljs-string\">\" &amp;middot; \"</span>    <span class=\"hljs-comment\"># string between page title and site title</span>\n    <span class=\"hljs-attr\">only:</span> <span class=\"hljs-literal\">false</span>              <span class=\"hljs-comment\"># displays page title only (`false` by default)</span>\n    <span class=\"hljs-attr\">pagination:</span>              <span class=\"hljs-comment\"># pagination options</span>\n      <span class=\"hljs-attr\">shownumber:</span> <span class=\"hljs-literal\">true</span>         <span class=\"hljs-comment\"># displays page number in title (`true` by default)</span>\n      <span class=\"hljs-attr\">label:</span> <span class=\"hljs-string\">\"Page %s\"</span>         <span class=\"hljs-comment\"># how to display page number (`Page %s` by default)</span>\n  <span class=\"hljs-attr\">robots:</span> <span class=\"hljs-string\">\"index,follow\"</span>   <span class=\"hljs-comment\"># web crawlers directives (`index,follow` by default)</span>\n  <span class=\"hljs-attr\">favicon:</span>                 <span class=\"hljs-comment\"># favicon options (set `favicon: false` to disable)</span>\n    <span class=\"hljs-attr\">image:</span> <span class=\"hljs-string\">favicon.png</span>       <span class=\"hljs-comment\"># path to favicon image (`favicon.png` by default)</span>\n    <span class=\"hljs-attr\">sizes:</span>                   <span class=\"hljs-comment\"># sizes by device</span>\n      <span class=\"hljs-attr\">\"icon\":</span> <span class=\"hljs-string\">[32,</span> <span class=\"hljs-number\">57</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">76</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">96</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">128</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">192</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">228</span><span class=\"hljs-string\">]</span>  <span class=\"hljs-comment\"># web browsers</span>\n      <span class=\"hljs-attr\">\"shortcut icon\":</span> <span class=\"hljs-string\">[128,</span> <span class=\"hljs-number\">196</span><span class=\"hljs-string\">]</span>              <span class=\"hljs-comment\"># Android</span>\n      <span class=\"hljs-attr\">\"apple-touch-icon\":</span> <span class=\"hljs-string\">[120,</span> <span class=\"hljs-number\">152</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">180</span><span class=\"hljs-string\">]</span>      <span class=\"hljs-comment\"># iOS</span>\n  <span class=\"hljs-attr\">navigation:</span> <span class=\"hljs-literal\">true</span>         <span class=\"hljs-comment\"># includes previous and next links (`true` by default)</span>\n  <span class=\"hljs-attr\">image:</span> <span class=\"hljs-literal\">true</span>              <span class=\"hljs-comment\"># includes image (`true` by default)</span>\n  <span class=\"hljs-attr\">og:</span> <span class=\"hljs-literal\">true</span>                 <span class=\"hljs-comment\"># includes Open Graph meta tags (`true` by default)</span>\n  <span class=\"hljs-attr\">articles:</span> <span class=\"hljs-string\">\"blog\"</span>         <span class=\"hljs-comment\"># articles' section(s): a section or a list of sections (`blog` by default)</span>\n  <span class=\"hljs-attr\">twitter:</span> <span class=\"hljs-literal\">true</span>            <span class=\"hljs-comment\"># includes Twitter/X Card meta tags (`true` by default)</span>\n  <span class=\"hljs-attr\">mastodon:</span> <span class=\"hljs-literal\">true</span>           <span class=\"hljs-comment\"># includes Mastodon meta tags (`true` by default)</span>\n  <span class=\"hljs-attr\">dc:</span> <span class=\"hljs-literal\">false</span>                <span class=\"hljs-comment\"># includes Dublin Core meta tags (`false` by default)</span>\n  <span class=\"hljs-attr\">data:</span> <span class=\"hljs-literal\">false</span>              <span class=\"hljs-comment\"># includes JSON-LD structured data (`false` by default), see below for options</span></code></pre>\n<p>These options are validated when the configuration is loaded: an option of an invalid type (e.g. <code translate=\"no\">og: yes</code>, or a favicon size that is not an integer) stops the build with the path of the invalid item. Other options (e.g. used by a theme) are allowed.</p>\n<aside class=\"note note-info\"><p>Pages whose <code translate=\"no\">robots</code> directives (<code translate=\"no\">metatags.robots</code> in front matter, or the <code translate=\"no\">metatags.robots</code> site option as fallback) contain <code translate=\"no\">noindex</code> are excluded from the XML sitemap.</p></aside>\n<h3 id=\"structured-data\">Structured data<a class=\"heading-anchor\" href=\"#structured-data\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>When enabled, structured data are added as a <a href=\"https://json-ld.org\" target=\"_blank\" rel=\"noopener noreferrer\">JSON-LD</a> graph of linked entities (<a href=\"https://schema.org\" target=\"_blank\" rel=\"noopener noreferrer\">schema.org</a>):</p>\n<ul>\n<li><code translate=\"no\">WebSite</code> and its publisher (<code translate=\"no\">Organization</code> or <code translate=\"no\">Person</code>)</li>\n<li><code translate=\"no\">WebPage</code> (<code translate=\"no\">CollectionPage</code> for the homepage, sections and taxonomies pages), except for the 404 page</li>\n<li><code translate=\"no\">BreadcrumbList</code>: home, ancestor sections (or vocabulary) and current page</li>\n<li><code translate=\"no\">BlogPosting</code> for pages of the articles' section(s) (see <code translate=\"no\">metatags.articles</code>)</li>\n<li><code translate=\"no\">VideoObject</code> for pages with a video and an image (used as thumbnail)</li>\n<li><code translate=\"no\">ItemList</code> of the main menu entries</li>\n</ul>\n<p><code translate=\"no\">metatags.data</code> accepts <code translate=\"no\">true</code> or a map of options:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">metatags:</span>\n  <span class=\"hljs-attr\">data:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>            <span class=\"hljs-comment\"># enables JSON-LD structured data (`true` if `data` is a map)</span>\n    <span class=\"hljs-attr\">article:</span> <span class=\"hljs-string\">BlogPosting</span>     <span class=\"hljs-comment\"># schema.org type of articles (`BlogPosting` by default, e.g. `NewsArticle`)</span>\n    <span class=\"hljs-attr\">publisher:</span>               <span class=\"hljs-comment\"># entity that publishes the site</span>\n      <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">Organization</span>       <span class=\"hljs-comment\"># `Organization` (default) or `Person` (personal site)</span>\n      <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">&lt;name&gt;</span>             <span class=\"hljs-comment\"># site title by default (site author name for a `Person`)</span>\n      <span class=\"hljs-attr\">logo:</span> <span class=\"hljs-string\">logo.png</span>           <span class=\"hljs-comment\"># favicon image (`favicon.png`) by default</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">&lt;url&gt;</span>               <span class=\"hljs-comment\"># site URL by default</span>\n      <span class=\"hljs-attr\">sameAs:</span> <span class=\"hljs-string\">[&lt;url&gt;,</span> <span class=\"hljs-string\">&lt;url&gt;]</span>   <span class=\"hljs-comment\"># `url` of `social` entries by default</span></code></pre>\n<p>The page front matter can override some options:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">metatags:</span>\n  <span class=\"hljs-attr\">data:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span>           <span class=\"hljs-comment\"># disables structured data for this page</span>\n    <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">AboutPage</span>          <span class=\"hljs-comment\"># page type (e.g. `AboutPage`, `ContactPage`, `ProfilePage`, `FAQPage`)</span>\n    <span class=\"hljs-attr\">article:</span> <span class=\"hljs-string\">NewsArticle</span>     <span class=\"hljs-comment\"># article type</span></code></pre>\n<aside class=\"note note-info\"><p>The author of an article is built from the <code translate=\"no\">author</code> front matter (<code translate=\"no\">name</code>, <code translate=\"no\">url</code>, <code translate=\"no\">image</code>, <code translate=\"no\">title</code>) and from <code translate=\"no\">social.*.url</code> page entries. Without author, the publisher is used.</p></aside>\n<aside class=\"note note-tip\"><p>In <a href=\"#debug\">debug mode</a>, the JSON-LD is pretty-printed to be human readable (unless HTML files are <a href=\"10-server.md#optimize\">optimized</a>).</p></aside>\n<h2 id=\"debug\">debug<a class=\"heading-anchor\" href=\"#debug\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Enables the <em>debug mode</em>, used to display debug information like very verbose logs, Twig dump, Twig profiler, SCSS sourcemap, etc.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">debug:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<p>There are two other ways to enable <em>debug mode</em>:</p>\n<ol>\n<li>Run a command with the <code translate=\"no\">-vvv</code> option</li>\n<li>Set the <code translate=\"no\">CECIL_DEBUG</code> environment variable to <code translate=\"no\">true</code></li>\n</ol>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/languages/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/languages/",
      "title": "Languages",
      "summary": "Main language and additional languages of a multilingual website.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-11-04T00:00:00+00:00","content_text": "Languages\nThese options define the main language of the site and, for a multilingual website, its additional languages.\nlanguage\nThe main language, defined by its code.\nlanguage: &lt;code&gt; # unique code (`en` by default)\nBy default, only the paths of the other languages pages are prefixed with their language code, but you can also prefix the paths of the main language pages with the following option:\n#language: &lt;code&gt;\nlanguage:\n  code: &lt;code&gt;\n  prefix: true\nWhen prefix is set to true, an alias is automatically created for the home page that redirects from \/ to \/&lt;code&gt;\/.\nlanguages\nOptions of available languages, used for pages and templates localization.\nlanguages:\n  - code: &lt;code&gt;          # unique code, `xx` or `xx-XX` (required, e.g.: `en`, `fr`, `en-US`, `fr-CA`)\n    name: &lt;name&gt;          # human readable name (e.g.: `Français`)\n    locale: &lt;locale&gt;      # locale code (required, `language_COUNTRY`, e.g.: `en_US`, `fr_FR`, `fr_CA`)\n    enabled: &lt;true|false&gt; # enabled or not (`true` by default)\nExample:\nlanguage: en\nlanguages:\n  - code: en\n    name: English\n    locale: en_US\n  - code: fr\n    name: Français\n    locale: fr_FR\nA locale code list is available if needed.\nLocalize\nTo localize configuration options you must store them under the config key of the language.\nExample:\ntitle: \"Cecil in English\"\nlanguages:\n  - code: en\n    name: English\n    locale: en_US\n  - code: fr\n    name: Français\n    locale: fr_FR\n    config:\n      title: \"Cecil en français\"\nIn templates you can access an option with {{ site.&lt;option&gt; }}, for example {{ site.title }}.\nIf an option is not available in the current language (e.g.: fr), it falls back to the global one (e.g.: en).\nThe localized options are validated like the global ones: the effective value of the language (the global value overridden by the localized one) must be valid.\nSome options apply to the whole site and can't be localized: language, languages, theme, cache, extensions, optimize, server, data, static, pages.dir, pages.ext, pages.frontmatter, pages.converter, pages.generators, pages.default, output.dir, output.formats, output.postprocessors, layouts.dir, layouts.extensions, layouts.autoescape and assets.dir. They are ignored, with a warning, if they are set under the config key of a language.\n",
      "content_html": "<h1>Languages</h1>\n<p>These options define the main language of the site and, for a multilingual website, its additional languages.</p>\n<h2 id=\"language\">language<a class=\"heading-anchor\" href=\"#language\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The main language, defined by its code.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">language:</span> <span class=\"hljs-string\">&lt;code&gt;</span> <span class=\"hljs-comment\"># unique code (`en` by default)</span></code></pre>\n<p>By default, only the paths of the other <a href=\"#languages\">languages</a> pages are prefixed with their language code, but you can also prefix the paths of the main language pages with the following option:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\">#language: &lt;code&gt;</span>\n<span class=\"hljs-attr\">language:</span>\n  <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">&lt;code&gt;</span>\n  <span class=\"hljs-attr\">prefix:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<aside class=\"note note-info\"><p>When <code translate=\"no\">prefix</code> is set to <code translate=\"no\">true</code>, an alias is automatically created for the home page that redirects from <code translate=\"no\">/</code> to <code translate=\"no\">/&lt;code&gt;/</code>.</p></aside>\n<h2 id=\"languages\">languages<a class=\"heading-anchor\" href=\"#languages\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Options of available languages, used for <a href=\"../content/4-multilingual.md\">pages</a> and <a href=\"../templates/5-localization.md\">templates</a> localization.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">languages:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">&lt;code&gt;</span>          <span class=\"hljs-comment\"># unique code, `xx` or `xx-XX` (required, e.g.: `en`, `fr`, `en-US`, `fr-CA`)</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">&lt;name&gt;</span>          <span class=\"hljs-comment\"># human readable name (e.g.: `Français`)</span>\n    <span class=\"hljs-attr\">locale:</span> <span class=\"hljs-string\">&lt;locale&gt;</span>      <span class=\"hljs-comment\"># locale code (required, `language_COUNTRY`, e.g.: `en_US`, `fr_FR`, `fr_CA`)</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-string\">&lt;true|false&gt;</span> <span class=\"hljs-comment\"># enabled or not (`true` by default)</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">language:</span> <span class=\"hljs-string\">en</span>\n<span class=\"hljs-attr\">languages:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">en</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">English</span>\n    <span class=\"hljs-attr\">locale:</span> <span class=\"hljs-string\">en_US</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">fr</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">Français</span>\n    <span class=\"hljs-attr\">locale:</span> <span class=\"hljs-string\">fr_FR</span></code></pre>\n<aside class=\"note note-info\"><p>A <a href=\"3-locale-codes.md\">locale code list</a> is available if needed.</p></aside>\n<h3 id=\"localize\">Localize<a class=\"heading-anchor\" href=\"#localize\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>To localize configuration options you must store them under the <code translate=\"no\">config</code> key of the language.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">\"Cecil in English\"</span>\n<span class=\"hljs-attr\">languages:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">en</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">English</span>\n    <span class=\"hljs-attr\">locale:</span> <span class=\"hljs-string\">en_US</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">fr</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">Français</span>\n    <span class=\"hljs-attr\">locale:</span> <span class=\"hljs-string\">fr_FR</span>\n    <span class=\"hljs-attr\">config:</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">\"Cecil en français\"</span></code></pre>\n<aside class=\"note note-info\"><p>In <a href=\"../templates/index.md\">templates</a> you can access an option with <code translate=\"no\">{{ site.&lt;option&gt; }}</code>, for example <code translate=\"no\">{{ site.title }}</code>.<br>\nIf an option is not available in the current language (e.g.: <code translate=\"no\">fr</code>), it falls back to the global one (e.g.: <code translate=\"no\">en</code>).</p></aside>\n<p>The localized options are validated like the global ones: the effective value of the language (the global value overridden by the localized one) must be valid.</p>\n<p>Some options apply to the whole site and can't be localized: <code translate=\"no\">language</code>, <code translate=\"no\">languages</code>, <code translate=\"no\">theme</code>, <code translate=\"no\">cache</code>, <code translate=\"no\">extensions</code>, <code translate=\"no\">optimize</code>, <code translate=\"no\">server</code>, <code translate=\"no\">data</code>, <code translate=\"no\">static</code>, <code translate=\"no\">pages.dir</code>, <code translate=\"no\">pages.ext</code>, <code translate=\"no\">pages.frontmatter</code>, <code translate=\"no\">pages.converter</code>, <code translate=\"no\">pages.generators</code>, <code translate=\"no\">pages.default</code>, <code translate=\"no\">output.dir</code>, <code translate=\"no\">output.formats</code>, <code translate=\"no\">output.postprocessors</code>, <code translate=\"no\">layouts.dir</code>, <code translate=\"no\">layouts.extensions</code>, <code translate=\"no\">layouts.autoescape</code> and <code translate=\"no\">assets.dir</code>. They are ignored, with a warning, if they are set under the <code translate=\"no\">config</code> key of a language.</p>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/pages/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/pages/",
      "title": "Pages",
      "summary": "Pages directory, sorting, pagination, paths, body, default pages, generators, etc.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-12-04T00:00:00+00:00","content_text": "Pages\nThese options control how pages are loaded, sorted, paginated, routed and generated.\npages.dir\nSource directory of pages (pages by default).\npages:\n  dir: pages\npages.ext\nExtensions of pages files.\npages:\n  ext: [md, markdown, mdown, mkdn, mkd, text, txt]\npages.exclude\nDirectories, paths and files name to exclude (accepts globs, strings and regexes).\npages:\n  exclude: ['vendor', 'node_modules', '*.scss', '\/\\.bck$\/']\npages.prefix.separator\nList of characters used as separator between a filename prefix (date or weight) and the slug.\npages:\n  prefix:\n    separator: ['-', '_']\npages.sortby\nDefault collections sort method.\npages:\n  sortby: date # `date`, `updated`, `title` or `weight`\n  # or\n  sortby:\n    variable: date    # `date`, `updated`, `title` or `weight`\n    desc_title: false # sort by title in descending order\n    reverse: false    # reverse the sort order\npages.pagination\nPagination is available for list pages (type is homepage, section or term).\npages:\n  pagination:\n    max: 5     # maximum number of entries per page\n    path: page # path to the paginated page\nDisable pagination\nPagination can be disabled:\npages:\n  pagination: false\nOr:\npages:\n  pagination:\n    enabled: false\nWhen pagination is disabled globally, a list page can still enable it in its front matter with pagination.enabled: true.\npages.paths\nApply a custom path for all pages of a Section.\npages:\n  paths:\n    - section: &lt;section’s ID&gt;\n      path: &lt;path of pages&gt;\nPath placeholders\n\n:year\n:month\n:day\n:section\n:slug\n\nExample:\npages:\n  paths:\n    - section: Blog\n      path: :section\/:year\/:month\/:day\/:slug # e.g.: \/blog\/2020\/12\/01\/my-post\/\n# localized\nlanguages:\n  - code: fr\n    name: Français\n    locale: fr_FR\n    config:\n      pages:\n        paths:\n          - section: Blog\n            path: blogue\/:year\/:month\/:day\/:slug # e.g.: \/blogue\/2020\/12\/01\/mon-billet\/\npages.frontmatter\nPage front matter format (yaml by default, also accepts ini, toml and json).\npages:\n  frontmatter: yaml\npages.validation\nBehavior when the front matter of a page does not match its schema:\n\nwarning: logs a warning and keeps the page;\nerror (default): logs an error and skips the page;\nstrict: the build fails;\nfalse: disables the validation.\n\npages:\n  validation: error\nThe predefined variables (date, menu, schedule, output, etc.) are always checked against a built-in schema, even without pages.schema.\npages.schema\nSchemas of the front matter, by Section or by page (* applies to all pages).\nSchemas can also be written in the schemas directory, one file by Section or by page.\nEach variable is defined by its type, or by a map of rules:\n\n\n\nRule\nDescription\n\n\n\n\ntype\nstring, int, number, bool, date, list, map, scalar or mixed (default).\n\n\nrequired\nThe variable must be defined (false by default).\n\n\nenum\nList of allowed values.\n\n\npattern\nRegular expression that the value must match (string and scalar).\n\n\nmin\nMinimum value (int, number), length (string) or count of items (list, map).\n\n\nmax\nMaximum value (int, number), length (string) or count of items (list, map).\n\n\nitems\nType or definition of the items of a list (see lists and maps).\n\n\nfields\nDefinitions of the variables of a map (see lists and maps).\n\n\ndefault\nValue applied when the variable is not defined.\n\n\nwhen\nCondition on the values of other variables of the same map (see conditional variables).\n\n\nformat\nWhat a string holds: text, markdown, url, email or path (see description of the variables).\n\n\nlabel\nName of the variable, for the tools that edit the front matter.\n\n\ndescription\nHelp text of the variable, for the tools that edit the front matter.\n\n\n\npages:\n  schema:\n    '*':\n      title:\n        type: string\n        required: true\n    blog:\n      author: string # type shorthand\n      rating:\n        type: int\n        min: 1\n        max: 5\n      category:\n        type: string\n        enum: [news, tutorial]\n        default: news\n      tags:\n        type: list\n        items: string\n        max: 5\nThe length of a string (min and max rules) is counted in characters, not in bytes.\nSchemas are open: variables that are not declared are allowed. Variables of a section override variables of *, and variables of a page override both. An optional variable can be empty (null).\nLists and maps\nThe structure of a map and of the items of a list can be validated, at any depth:\n\nfields: definitions of the variables of a map, with the same syntax as the variables of a page (type shorthand or map of rules, including fields and items). As a page, a map is open: undeclared variables are allowed.\nitems: the type of the items (items: string), or the definition of the items (items: {type: map, fields: …}).\n\nScope of the rules:\n\nWith a type of items (items: string), the enum and pattern rules of the list apply to its items.\nWith a definition of items, only the rules of this definition apply to the items (min and max of the definition apply to each item: length of a string, value of a number, etc.). An item can't be empty (null), except with items: mixed, and the required and default rules don't apply to items.\nThe min and max rules of a list apply to its count of items.\nA map with fields doesn't accept the min, max, enum and pattern rules (without fields, min and max apply to its count of variables).\nA default value of a variable of a map is applied when the map is defined but the variable is not (a missing map is not created), including in each item of a list.\n\nExample: each image of an illustration must have a file name and an alternative text of 20 characters at least.\npages:\n  schema:\n    illustrations:\n      description: {type: string, required: true}\n      images:\n        type: list\n        min: 1\n        items:\n          type: map\n          fields:\n            file: {type: string, required: true, pattern: '^[\\w-]+\\.(png|jpe?g|gif|webp)$'}\n            alt: {type: string, required: true, min: 20}\nAn error gives the path of the invalid variable, from 0 for the first item of a list: The mandatory variable 'images › 1 › alt' is missing. (alternative text of the second image).\nConditional variables\nThe when rule allows a variable only when other variables of the same map (or of the page) have the given values:\n\nwhen: {type: links}: the variable is allowed only if type is links;\nwhen: {type: [links, gallery]}: only if type is links or gallery;\nwhen: {type: links, featured: true}: only if both conditions are met.\n\nBehavior:\n\nIf the variable is set (not null, an empty list or string is set) while the condition is not met, the validation fails: The variable 'blocks › 2 › items' is allowed only when `type` is `links`.\nThe required rule applies only when the condition is met, and the default value is applied only when the condition is met.\nThe condition only looks at the other variables of the same map (or at the variables of the page, for a variable of the page), as defined in the front matter: a missing or empty (null) variable doesn't meet it, and the default values of the other variables are not taken into account. Values are compared strictly (1 is not '1'), except booleans strings (yes, no, true, false, on, off), which are booleans.\nThe when rule is not allowed on the definition of the items of a list (items: {…}): it applies to the variables of a map.\nThe conditions of a map are checked once its variables are valid: a condition error can show up after the other errors of the map are fixed.\n\nExample: blocks of the home page, each one rendered by its own template; only the links blocks accept items and options.\npages:\n  schema:\n    index:\n      blocks:\n        type: list\n        items:\n          type: map\n          fields:\n            type: {type: string, required: true, enum: [content, links, social]}\n            items:\n              type: list\n              when: {type: links}\n              required: true # required for the `links` blocks only\n              items: {type: map, fields: {title: string, url: {type: string, format: url}}}\n            options:\n              type: map\n              when: {type: links}\n              fields: {columns: int}\nTools that edit the front matter can use the when rule to show only the relevant variables.\nSchema of a page\nA key of pages.schema can also be a page, for the pages that have their own variables (a home page, a résumé, etc.). The key is the ID of the page, without its language: the path of its file in the pages directory, without prefix, language and extension.\n\n\n\nFile\nKey\n\n\n\n\nindex.md\nindex\n\n\ncv.md, cv.en.md\ncv\n\n\n1-My project.md\nmy-project\n\n\nblog\/2024-05-01_post.md\nblog\/post\n\n\nblog\/index.md\nblog\/index\n\n\n\nThe variables are those of *, then of the section of the page, then of the page: the last ones override the others.\npages:\n  schema:\n    blog:        # pages of the \"blog\" section\n      author: {type: string, required: true}\n    blog\/index:  # index of the \"blog\" section\n      intro: string\n    cv:          # \"cv.md\" page, and its translations\n      skills:\n        type: list\n        items:\n          type: map\n          fields:\n            name: {type: string, required: true}\n            level: {type: int, min: 0, max: 100}\nThe schema of a section applies to its pages, not to its index (blog\/index.md), which has its own key (blog\/index).\nDescription of the variables\nThe format, label and description rules describe a variable to the tools that edit the front matter (e.g. Cecil Desktop builds its form from the schema). They are accepted on any variable, also in fields and items.\nformat tells what a string holds:\n\n\n\nFormat\nDescription\n\n\n\n\ntext\nText of several lines.\n\n\nmarkdown\nText of several lines, rendered as Markdown by the template.\n\n\nurl\nAbsolute URL (https:\/\/cecil.app): validated.\n\n\nemail\nEmail address: validated.\n\n\npath\nPath of a file of the site (asset or static file): not checked.\n\n\n\npages:\n  schema:\n    cv:\n      intro:\n        type: string\n        format: markdown\n        label: Introduction\n        description: Shown under the title of the page.\n      website: {type: string, format: url}\n      photo: {type: string, format: path, label: Photo}\nlabel and description have no effect on the validation, and neither have the text, markdown and path formats.\nSchemas directory\nInstead of writing them in the configuration, schemas can be written in the schemas directory, at the root of the site: one YAML file (.yml or .yaml) by key of pages.schema, loaded automatically.\n&lt;mywebsite&gt;\n├─ pages\n└─ schemas\n   ├─ _all.yml        &lt;- '*': all pages\n   ├─ blog.yml        &lt;- \"blog\" section\n   ├─ cv.yml          &lt;- \"cv.md\" page\n   ├─ index.yml       &lt;- home page\n   └─ blog\n      └─ index.yml    &lt;- \"blog\/index.md\" page (key \"blog\/index\")\n\nThe path of a file in the directory, without its extension, is the key of the schema: a Section, or a page (schemas\/blog\/post-1.yml is the schema of the blog\/post-1 page).\nThe schema of all pages (*) is the _all.yml file.\nA key can't have two files (blog.yml and blog.yaml): this is an error.\nA file holds the variables directly, as under pages.schema.&lt;key&gt;, and an empty file is an empty schema.\n\n# schemas\/cv.yml\nsections:\n  label: Sections\n  type: list\n  items:\n    type: map\n    fields:\n      title: {type: string, required: true}\n      text: {type: string, format: markdown}\nis the same as:\npages:\n  schema:\n    cv:\n      sections:\n        # …\nEach file is validated when the configuration is loaded: an error gives the name of the file and the path of the invalid variable in it (e.g. Invalid schema file \"schemas\/cv.yml\"). As in pages.schema, a file whose key matches no Section and no page is ignored.\nA theme can also have a schemas directory, for the variables its templates expect. Schemas are merged from the lowest to the highest priority:\n\nschemas directories of the themes (a theme overrides the themes after it in the list);\npages.schema of the config.yml of the themes (a theme overrides the themes after it in the list);\nschemas directory of the site;\npages.schema of the configuration of the site.\n\nFor a same key, variables are merged one by one, at each level and between themes: the definition of a variable replaces its previous definition as a whole (its rules are not merged, and enum lists are not combined), the other variables are kept.\n# schemas\/blog.yml\nauthor: {type: string, required: true}\ntags: {type: list, items: string}\n# cecil.yml\npages:\n  schema:\n    blog:\n      author: string # \"author\" is now optional, \"tags\" is kept\nWith cecil serve, a change in a schemas directory rebuilds the whole site with the schemas loaded again.\nTranslation of the descriptions\nThe label and description rules can be translated, for the tools that edit the front matter of a page in another language (e.g. a theme whose schemas are written in English, used by a site in French).\nThe text of a rule, as written in the schema, is the key of its translation in a schemas.&lt;locale&gt;.&lt;ext&gt; file (e.g. schemas.fr.yaml) of the translations directory of the site or of a theme: a separate domain from the messages of the templates.\n# themes\/links\/schemas\/index.yml\nblocks:\n  type: list\n  label: Blocks\n  description: Blocks of the page, rendered in order.\n# themes\/links\/translations\/schemas.fr.yaml\nBlocks: Blocs\n'Blocks of the page, rendered in order.': Blocs de la page, affichés dans l’ordre.\n\nAs for the templates, the schemas.&lt;language&gt;.&lt;ext&gt; file is also loaded for a locale with a region (schemas.fr.yaml for fr_FR).\nThe site overrides the themes, and a theme overrides the themes after it in the list.\nA text without translation is kept as written: there is no fallback on the default language.\nThe translations have no effect on the build: they are used by the tools, through the Cecil\\Config\\SchemaTranslator class.\n\nThe texts to translate are extracted by the util:translations:extract command, with the strings of the templates:\nphp cecil.phar util:translations:extract --locale=fr --save\npages.converter\nClass used to convert the front matter and the Markdown body of pages (Cecil\\Converter\\Converter by default).\npages:\n  converter: Cecil\\Converter\\Converter\nSee Markdown converter to use your own.\npages.body\nPage body options.\nTo know how these options impact your content see Content &gt; Markdown documentation.\npages.body.parser\nMarkdown parser class (Cecil\\Converter\\Parsedown by default). It must extend Cecil\\Converter\\Parsedown: see Markdown parser to add your own syntax.\npages:\n  body:\n    parser: Cecil\\Converter\\Parsedown\npages.body.toc\nHeaders used to build the table of contents ([h2, h3] by default).\npages:\n  body:\n    toc: [h2, h3]\npages.body.anchors\nHeadings with an anchor link ([h2, h3] by default): an empty &lt;a class=\"heading-anchor\" href=\"#&lt;id&gt;\"&gt; element is added at the end of each of these headings that have an ID, to be styled by templates (e.g.: a # displayed on hover).\npages:\n  body:\n    anchors: [h2, h3] # set to false to disable anchors\npages.body.highlight\nEnables code syntax highlighting (true by default).\npages:\n  body:\n    highlight: false # set to false to disable syntax highlighting\nThe highlighter engine can be changed with the engine option:\npages:\n  body:\n    highlight:\n      enabled: true    # `true` by default\n      engine: tempest  # `highlightjs` (default) or `tempest`\n\nhighlightjs: highlight.php, a PHP port of highlight.js (190+ languages, hljs-* CSS classes)\ntempest: tempest\/highlight, a fast server-side highlighter (web languages: PHP, HTML, CSS, JavaScript, JSON, YAML, Twig, SQL, XML, etc., hl-* CSS classes)\n\nThese options only apply to Markdown content: the highlight filter of templates uses the layouts.highlight.engine option.\npages.body.images\nImages handling options.\npages:\n  body:\n    images:\n      formats: []       # adds alternative image formats as `source` (e.g. `[avif, webp]`, empty array by default)\n      resize: 0         # resizes all images to &lt;width&gt; (in pixels, `0` to disable)\n      responsive: false # adds responsive image variants to the `srcset` attribute (`false` by default)\n      lazy: true        # adds `loading=\"lazy\"` attribute (`true` by default)\n      decoding: true    # adds `decoding=\"async\"` attribute (`true` by default)\n      caption: false    # puts the image in a &lt;figure&gt; element and adds a &lt;figcaption&gt; containing the title (`false` by default)\n      placeholder: ''   # fills the &lt;img&gt; background before loading ('color' or 'lqip', empty by default)\n      class: ''         # sets a default class on each image (empty by default)\n      dark_suffix: ~    # suffix of the dark variant image (e.g. `.dark`), disabled by default\n      mobile_suffix: ~  # suffix of the mobile variant image (e.g. `.mobile`), disabled by default\n      mobile_media_query: '(max-width: 767px)' # media query of the mobile variant `&lt;source&gt;`\n      remote:           # remote image handling (set to `false` to disable)\n        fallback:         # path to the fallback image, stored in assets dir (empty by default)\nSince version 8.41.0, the pages.body.images.resize option is used to resize images to a specific width, no more to enable the resize feature (enabled systematically).\nGlobal options, like responsive images widths and sizes, are configurable in the assets.images section.\nRemote images are downloaded and converted into Assets to be manipulated. You can disable this behavior by setting the option pages.body.images.remote.enabled to false.\nWhen dark_suffix is set (e.g. dark_suffix: .dark), Cecil automatically looks for a dark variant of each image (e.g. photo.dark.jpg alongside photo.jpg). If found, the image is wrapped in a &lt;picture&gt; element with a &lt;source media=\"(prefers-color-scheme: dark)\"&gt; for automatic light\/dark theme switching. Works in combination with formats and responsive.\nIn the same way, when mobile_suffix is set (e.g. mobile_suffix: .mobile), Cecil looks for a mobile variant of each image (e.g. photo.mobile.jpg alongside photo.jpg) and adds a &lt;source&gt; element with the mobile_media_query media query ((max-width: 767px) by default). If dark_suffix is also set, the dark variant of the mobile image (e.g. photo.mobile.dark.jpg) is used on mobile with dark color scheme. Mobile sources are placed before dark sources, so that a mobile variant takes precedence.\npages.body.links\nLinks handling options.\npages:\n  body:\n    links:\n      embed:\n        enabled: false     # turns links into embedded content if possible (`false` by default)\n        video: [mp4, webm] # video files extensions\n        audio: [mp3, ogg, wav] # audio files extensions\n      external:\n        blank: false     # if true open external link in new tab\n        noopener: true   # if true add \"noopener\" to `rel` attribute\n        noreferrer: true # if true add \"noreferrer\" to `rel` attribute\n        nofollow: false  # if true add \"nofollow\" to `rel` attribute\npages.body.excerpt\nExcerpt handling options.\npages:\n  body:\n    excerpt:\n      separator: excerpt|break # string to use as separator (`excerpt|break` by default)\n      capture: before          # part to capture, `before` or `after` the separator (`before` by default)\npages.default\nDefault pages are pages without content file (front matter only), indexed by ID, each one with a path and some front matter variables.\nCecil provides built-in default pages (from built-in templates):\npages:\n  default:\n    index:\n      path: ''\n      title: Home\n      published: true\n    404:\n      path: 404\n      title: Page not found\n      layout: 404\n      uglyurl: true\n      published: true\n      excluded: true\n    robots:\n      path: robots\n      title: Robots.txt\n      layout: robots\n      output: txt\n      published: true\n      excluded: true\n      multilingual: false\n    sitemap:\n      path: sitemap\n      title: XML sitemap\n      layout: sitemap\n      output: xml\n      changefreq: monthly\n      priority: 0.5\n      published: true\n      excluded: true\n      multilingual: false\n    xsl\/sitemap:\n      path: xsl\/sitemap\n      layout: sitemap\n      output: xsl\n      uglyurl: true\n      published: true\n      excluded: true\n    xsl\/atom:\n      path: xsl\/atom\n      layout: feed\n      output: xsl\n      uglyurl: true\n      published: true\n      excluded: true\n    xsl\/rss:\n      path: xsl\/rss\n      layout: feed\n      output: xsl\n      uglyurl: true\n      published: false\n      excluded: true\nEach one can be:\n\ndisabled: published: false\nexcluded from list pages: excluded: true\nexcluded from localization: multilingual: false\n\nYou can also add your own pages (a theme can do the same in its config.yml):\npages:\n  default:\n    code:\n      path: code\n      redirect: https:\/\/github.com\/ArnaudLigny\nLike any other page, a default page is listed (e.g.: in site.pages.showable, in the sitemap, on the homepage): set excluded: true to keep a technical page (JSON index, manifest, etc.) out of lists.\nSince version 9.19.0, pages.virtual is removed: move its pages to pages.default, indexed by ID (e.g.: the page path). Pages without content file are no longer excluded from lists by default.\nSince version 8.68.0, you can override the default robots.txt page by creating a page with the same path:\npages\/robots.md\n---\nlayout: robots\noutput: txt\n---\nUser-agent: AI-bot\nDisallow: \/\npages.generators\nGenerators are used by Cecil to create additional pages (e.g.: sitemap, feed, pagination, etc.) from existing pages, or from other sources like the configuration file or external sources.\nGenerators are indexed by name and run in ascending order of their priority. Below is the list of generators provided by Cecil:\npages:\n  generators:\n    DefaultPages: { class: Cecil\\Generator\\DefaultPages, priority: 10 }\n    ExternalBody: { class: Cecil\\Generator\\ExternalBody, priority: 30 }\n    Section:      { class: Cecil\\Generator\\Section, priority: 40 }\n    Taxonomy:     { class: Cecil\\Generator\\Taxonomy, priority: 50 }\n    Homepage:     { class: Cecil\\Generator\\Homepage, priority: 60 }\n    Pagination:   { class: Cecil\\Generator\\Pagination, priority: 70 }\n    Alias:        { class: Cecil\\Generator\\Alias, priority: 80 }\n    Redirect:     { class: Cecil\\Generator\\Redirect, priority: 90 }\nA built-in generator can be disabled or moved by its name:\npages:\n  generators:\n    Redirect: false            # disabled\n    Section: { priority: 45 }  # moved\nSee Extensions for the full syntax.\nYou can extend Cecil with Pages generator.\npages.subsets\nSubsets are used to render a part of the pages collection, based on a specific path, language or output format, with the command:\ncecil build --render-subset=&lt;name&gt;\npages:\n  subsets:\n    &lt;name&gt;:\n      path: &lt;path&gt; # glob or string path (e.g.: `blog\/*`, `blog`)\n      language: &lt;language&gt; # language code (e.g.: `en`, `fr`)\n      output: &lt;output&gt; # output format (e.g.: `html`, `atom`)\nExample:\npages:\n  subsets:\n    blog_en:\n      path: blog\n      language: en\n      output: html\n    search_index:\n      path: '*'\n      output: json\n",
      "content_html": "<h1>Pages</h1>\n<p>These options control how pages are loaded, sorted, paginated, routed and generated.</p>\n<h2 id=\"pages-dir\">pages.dir<a class=\"heading-anchor\" href=\"#pages-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Source directory of pages (<code translate=\"no\">pages</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">pages</span></code></pre>\n<h2 id=\"pages-ext\">pages.ext<a class=\"heading-anchor\" href=\"#pages-ext\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Extensions of pages files.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[md,</span> <span class=\"hljs-string\">markdown,</span> <span class=\"hljs-string\">mdown,</span> <span class=\"hljs-string\">mkdn,</span> <span class=\"hljs-string\">mkd,</span> <span class=\"hljs-string\">text,</span> <span class=\"hljs-string\">txt]</span></code></pre>\n<h2 id=\"pages-exclude\">pages.exclude<a class=\"heading-anchor\" href=\"#pages-exclude\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Directories, paths and files name to exclude (accepts globs, strings and regexes).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">['vendor',</span> <span class=\"hljs-string\">'node_modules'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'*.scss'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'/\\.bck$/'</span><span class=\"hljs-string\">]</span></code></pre>\n<h2 id=\"pages-prefix-separator\">pages.prefix.separator<a class=\"heading-anchor\" href=\"#pages-prefix-separator\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>List of characters used as separator between a filename prefix (<code translate=\"no\">date</code> or <code translate=\"no\">weight</code>) and the slug.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">prefix:</span>\n    <span class=\"hljs-attr\">separator:</span> <span class=\"hljs-string\">['-',</span> <span class=\"hljs-string\">'_'</span><span class=\"hljs-string\">]</span></code></pre>\n<h2 id=\"pages-sortby\">pages.sortby<a class=\"heading-anchor\" href=\"#pages-sortby\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Default collections sort method.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">sortby:</span> <span class=\"hljs-string\">date</span> <span class=\"hljs-comment\"># `date`, `updated`, `title` or `weight`</span>\n  <span class=\"hljs-comment\"># or</span>\n  <span class=\"hljs-attr\">sortby:</span>\n    <span class=\"hljs-attr\">variable:</span> <span class=\"hljs-string\">date</span>    <span class=\"hljs-comment\"># `date`, `updated`, `title` or `weight`</span>\n    <span class=\"hljs-attr\">desc_title:</span> <span class=\"hljs-literal\">false</span> <span class=\"hljs-comment\"># sort by title in descending order</span>\n    <span class=\"hljs-attr\">reverse:</span> <span class=\"hljs-literal\">false</span>    <span class=\"hljs-comment\"># reverse the sort order</span></code></pre>\n<h2 id=\"pages-pagination\">pages.pagination<a class=\"heading-anchor\" href=\"#pages-pagination\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Pagination is available for list pages (<em>type</em> is <code translate=\"no\">homepage</code>, <code translate=\"no\">section</code> or <code translate=\"no\">term</code>).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">pagination:</span>\n    <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">5</span>     <span class=\"hljs-comment\"># maximum number of entries per page</span>\n    <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">page</span> <span class=\"hljs-comment\"># path to the paginated page</span></code></pre>\n<h3 id=\"disable-pagination\">Disable pagination<a class=\"heading-anchor\" href=\"#disable-pagination\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Pagination can be disabled:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">pagination:</span> <span class=\"hljs-literal\">false</span></code></pre>\n<p>Or:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">pagination:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span></code></pre>\n<aside class=\"note note-tip\"><p>When pagination is disabled globally, a list page can still enable it in its <a href=\"../content/1-pages.md#pagination\">front matter</a> with <code translate=\"no\">pagination.enabled: true</code>.</p></aside>\n<h2 id=\"pages-paths\">pages.paths<a class=\"heading-anchor\" href=\"#pages-paths\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Apply a custom <a href=\"../content/2-front-matter.md#predefined-variables\"><code translate=\"no\">path</code></a> for all pages of a <strong><em>Section</em></strong>.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">paths:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">section:</span> <span class=\"hljs-string\">&lt;section’s</span> <span class=\"hljs-string\">ID&gt;</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">&lt;path</span> <span class=\"hljs-string\">of</span> <span class=\"hljs-string\">pages&gt;</span></code></pre>\n<h3 id=\"path-placeholders\">Path placeholders<a class=\"heading-anchor\" href=\"#path-placeholders\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<ul>\n<li><code translate=\"no\">:year</code></li>\n<li><code translate=\"no\">:month</code></li>\n<li><code translate=\"no\">:day</code></li>\n<li><code translate=\"no\">:section</code></li>\n<li><code translate=\"no\">:slug</code></li>\n</ul>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">paths:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">section:</span> <span class=\"hljs-string\">Blog</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">:section/:year/:month/:day/:slug</span> <span class=\"hljs-comment\"># e.g.: /blog/2020/12/01/my-post/</span>\n<span class=\"hljs-comment\"># localized</span>\n<span class=\"hljs-attr\">languages:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">code:</span> <span class=\"hljs-string\">fr</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">Français</span>\n    <span class=\"hljs-attr\">locale:</span> <span class=\"hljs-string\">fr_FR</span>\n    <span class=\"hljs-attr\">config:</span>\n      <span class=\"hljs-attr\">pages:</span>\n        <span class=\"hljs-attr\">paths:</span>\n          <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">section:</span> <span class=\"hljs-string\">Blog</span>\n            <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">blogue/:year/:month/:day/:slug</span> <span class=\"hljs-comment\"># e.g.: /blogue/2020/12/01/mon-billet/</span></code></pre>\n<h2 id=\"pages-frontmatter\">pages.frontmatter<a class=\"heading-anchor\" href=\"#pages-frontmatter\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Page front matter format (<code translate=\"no\">yaml</code> by default, also accepts <code translate=\"no\">ini</code>, <code translate=\"no\">toml</code> and <code translate=\"no\">json</code>).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">frontmatter:</span> <span class=\"hljs-string\">yaml</span></code></pre>\n<h2 id=\"pages-validation\">pages.validation<a class=\"heading-anchor\" href=\"#pages-validation\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Behavior when the front matter of a page does not match its <a href=\"#pages-schema\">schema</a>:</p>\n<ul>\n<li><code translate=\"no\">warning</code>: logs a warning and keeps the page;</li>\n<li><code translate=\"no\">error</code> (default): logs an error and skips the page;</li>\n<li><code translate=\"no\">strict</code>: the build fails;</li>\n<li><code translate=\"no\">false</code>: disables the validation.</li>\n</ul>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">validation:</span> <span class=\"hljs-string\">error</span></code></pre>\n<aside class=\"note note-info\"><p>The <a href=\"../content/2-front-matter.md#predefined-variables\">predefined variables</a> (<code translate=\"no\">date</code>, <code translate=\"no\">menu</code>, <code translate=\"no\">schedule</code>, <code translate=\"no\">output</code>, etc.) are always checked against a built-in schema, even without <code translate=\"no\">pages.schema</code>.</p></aside>\n<h2 id=\"pages-schema\">pages.schema<a class=\"heading-anchor\" href=\"#pages-schema\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Schemas of the front matter, by <em>Section</em> or by <a href=\"#schema-of-a-page\">page</a> (<code translate=\"no\">*</code> applies to all pages).</p>\n<p>Schemas can also be written in the <a href=\"#schemas-directory\"><code translate=\"no\">schemas</code> directory</a>, one file by <em>Section</em> or by page.</p>\n<p>Each variable is defined by its type, or by a map of rules:</p>\n<table>\n<thead>\n<tr>\n<th>Rule</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">type</code></td>\n<td><code translate=\"no\">string</code>, <code translate=\"no\">int</code>, <code translate=\"no\">number</code>, <code translate=\"no\">bool</code>, <code translate=\"no\">date</code>, <code translate=\"no\">list</code>, <code translate=\"no\">map</code>, <code translate=\"no\">scalar</code> or <code translate=\"no\">mixed</code> (default).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">required</code></td>\n<td>The variable must be defined (<code translate=\"no\">false</code> by default).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">enum</code></td>\n<td>List of allowed values.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">pattern</code></td>\n<td>Regular expression that the value must match (<code translate=\"no\">string</code> and <code translate=\"no\">scalar</code>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">min</code></td>\n<td>Minimum value (<code translate=\"no\">int</code>, <code translate=\"no\">number</code>), length (<code translate=\"no\">string</code>) or count of items (<code translate=\"no\">list</code>, <code translate=\"no\">map</code>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">max</code></td>\n<td>Maximum value (<code translate=\"no\">int</code>, <code translate=\"no\">number</code>), length (<code translate=\"no\">string</code>) or count of items (<code translate=\"no\">list</code>, <code translate=\"no\">map</code>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">items</code></td>\n<td>Type or definition of the items of a <code translate=\"no\">list</code> (see <a href=\"#lists-and-maps\">lists and maps</a>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">fields</code></td>\n<td>Definitions of the variables of a <code translate=\"no\">map</code> (see <a href=\"#lists-and-maps\">lists and maps</a>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">default</code></td>\n<td>Value applied when the variable is not defined.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">when</code></td>\n<td>Condition on the values of other variables of the same map (see <a href=\"#conditional-variables\">conditional variables</a>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">format</code></td>\n<td>What a <code translate=\"no\">string</code> holds: <code translate=\"no\">text</code>, <code translate=\"no\">markdown</code>, <code translate=\"no\">url</code>, <code translate=\"no\">email</code> or <code translate=\"no\">path</code> (see <a href=\"#description-of-the-variables\">description of the variables</a>).</td>\n</tr>\n<tr>\n<td><code translate=\"no\">label</code></td>\n<td>Name of the variable, for the tools that edit the front matter.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">description</code></td>\n<td>Help text of the variable, for the tools that edit the front matter.</td>\n</tr>\n</tbody>\n</table>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-string\">'*'</span><span class=\"hljs-string\">:</span>\n      <span class=\"hljs-attr\">title:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">string</span>\n        <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span>\n    <span class=\"hljs-attr\">blog:</span>\n      <span class=\"hljs-attr\">author:</span> <span class=\"hljs-string\">string</span> <span class=\"hljs-comment\"># type shorthand</span>\n      <span class=\"hljs-attr\">rating:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">int</span>\n        <span class=\"hljs-attr\">min:</span> <span class=\"hljs-number\">1</span>\n        <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">5</span>\n      <span class=\"hljs-attr\">category:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">string</span>\n        <span class=\"hljs-attr\">enum:</span> <span class=\"hljs-string\">[news,</span> <span class=\"hljs-string\">tutorial]</span>\n        <span class=\"hljs-attr\">default:</span> <span class=\"hljs-string\">news</span>\n      <span class=\"hljs-attr\">tags:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n        <span class=\"hljs-attr\">items:</span> <span class=\"hljs-string\">string</span>\n        <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">5</span></code></pre>\n<p>The length of a string (<code translate=\"no\">min</code> and <code translate=\"no\">max</code> rules) is counted in characters, not in bytes.</p>\n<aside class=\"note note-info\"><p>Schemas are open: variables that are not declared are allowed. Variables of a section override variables of <code translate=\"no\">*</code>, and variables of a page override both. An optional variable can be empty (<code translate=\"no\">null</code>).</p></aside>\n<h3 id=\"lists-and-maps\">Lists and maps<a class=\"heading-anchor\" href=\"#lists-and-maps\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The structure of a <code translate=\"no\">map</code> and of the items of a <code translate=\"no\">list</code> can be validated, at any depth:</p>\n<ul>\n<li><code translate=\"no\">fields</code>: definitions of the variables of a <code translate=\"no\">map</code>, with the same syntax as the variables of a page (type shorthand or map of rules, including <code translate=\"no\">fields</code> and <code translate=\"no\">items</code>). As a page, a map is open: undeclared variables are allowed.</li>\n<li><code translate=\"no\">items</code>: the type of the items (<code translate=\"no\">items: string</code>), or the definition of the items (<code translate=\"no\">items: {type: map, fields: …}</code>).</li>\n</ul>\n<p>Scope of the rules:</p>\n<ul>\n<li>With a type of items (<code translate=\"no\">items: string</code>), the <code translate=\"no\">enum</code> and <code translate=\"no\">pattern</code> rules of the list apply to its items.</li>\n<li>With a definition of items, only the rules of this definition apply to the items (<code translate=\"no\">min</code> and <code translate=\"no\">max</code> of the definition apply to each item: length of a string, value of a number, etc.). An item can't be empty (<code translate=\"no\">null</code>), except with <code translate=\"no\">items: mixed</code>, and the <code translate=\"no\">required</code> and <code translate=\"no\">default</code> rules don't apply to items.</li>\n<li>The <code translate=\"no\">min</code> and <code translate=\"no\">max</code> rules of a list apply to its count of items.</li>\n<li>A <code translate=\"no\">map</code> with <code translate=\"no\">fields</code> doesn't accept the <code translate=\"no\">min</code>, <code translate=\"no\">max</code>, <code translate=\"no\">enum</code> and <code translate=\"no\">pattern</code> rules (without <code translate=\"no\">fields</code>, <code translate=\"no\">min</code> and <code translate=\"no\">max</code> apply to its count of variables).</li>\n<li>A <code translate=\"no\">default</code> value of a variable of a map is applied when the map is defined but the variable is not (a missing map is not created), including in each item of a list.</li>\n</ul>\n<p>Example: each image of an illustration must have a file name and an alternative text of 20 characters at least.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-attr\">illustrations:</span>\n      <span class=\"hljs-attr\">description:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">}</span>\n      <span class=\"hljs-attr\">images:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n        <span class=\"hljs-attr\">min:</span> <span class=\"hljs-number\">1</span>\n        <span class=\"hljs-attr\">items:</span>\n          <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">map</span>\n          <span class=\"hljs-attr\">fields:</span>\n            <span class=\"hljs-attr\">file:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">,</span> <span class=\"hljs-attr\">pattern:</span> <span class=\"hljs-string\">'^[\\w-]+\\.(png|jpe?g|gif|webp)$'</span><span class=\"hljs-string\">}</span>\n            <span class=\"hljs-attr\">alt:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">,</span> <span class=\"hljs-attr\">min:</span> <span class=\"hljs-number\">20</span><span class=\"hljs-string\">}</span></code></pre>\n<p>An error gives the path of the invalid variable, from <code translate=\"no\">0</code> for the first item of a list: <code translate=\"no\">The mandatory variable 'images › 1 › alt' is missing.</code> (alternative text of the second image).</p>\n<h3 id=\"conditional-variables\">Conditional variables<a class=\"heading-anchor\" href=\"#conditional-variables\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The <code translate=\"no\">when</code> rule allows a variable only when other variables of the same map (or of the page) have the given values:</p>\n<ul>\n<li><code translate=\"no\">when: {type: links}</code>: the variable is allowed only if <code translate=\"no\">type</code> is <code translate=\"no\">links</code>;</li>\n<li><code translate=\"no\">when: {type: [links, gallery]}</code>: only if <code translate=\"no\">type</code> is <code translate=\"no\">links</code> or <code translate=\"no\">gallery</code>;</li>\n<li><code translate=\"no\">when: {type: links, featured: true}</code>: only if both conditions are met.</li>\n</ul>\n<p>Behavior:</p>\n<ul>\n<li>If the variable is set (not <code translate=\"no\">null</code>, an empty list or string is set) while the condition is not met, the validation fails: <code translate=\"no\">The variable 'blocks › 2 › items' is allowed only when `type` is `links`.</code></li>\n<li>The <code translate=\"no\">required</code> rule applies only when the condition is met, and the <code translate=\"no\">default</code> value is applied only when the condition is met.</li>\n<li>The condition only looks at the other variables of the same map (or at the variables of the page, for a variable of the page), as defined in the front matter: a missing or empty (<code translate=\"no\">null</code>) variable doesn't meet it, and the <code translate=\"no\">default</code> values of the other variables are not taken into account. Values are compared strictly (<code translate=\"no\">1</code> is not <code translate=\"no\">'1'</code>), except booleans strings (<code translate=\"no\">yes</code>, <code translate=\"no\">no</code>, <code translate=\"no\">true</code>, <code translate=\"no\">false</code>, <code translate=\"no\">on</code>, <code translate=\"no\">off</code>), which are booleans.</li>\n<li>The <code translate=\"no\">when</code> rule is not allowed on the definition of the items of a list (<code translate=\"no\">items: {…}</code>): it applies to the variables of a map.</li>\n<li>The conditions of a map are checked once its variables are valid: a condition error can show up after the other errors of the map are fixed.</li>\n</ul>\n<p>Example: blocks of the home page, each one rendered by its own template; only the <code translate=\"no\">links</code> blocks accept <code translate=\"no\">items</code> and <code translate=\"no\">options</code>.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-attr\">index:</span>\n      <span class=\"hljs-attr\">blocks:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n        <span class=\"hljs-attr\">items:</span>\n          <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">map</span>\n          <span class=\"hljs-attr\">fields:</span>\n            <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">,</span> <span class=\"hljs-attr\">enum:</span> <span class=\"hljs-string\">[content,</span> <span class=\"hljs-string\">links,</span> <span class=\"hljs-string\">social]}</span>\n            <span class=\"hljs-attr\">items:</span>\n              <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n              <span class=\"hljs-attr\">when:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">links}</span>\n              <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span> <span class=\"hljs-comment\"># required for the `links` blocks only</span>\n              <span class=\"hljs-attr\">items:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">map,</span> <span class=\"hljs-attr\">fields:</span> <span class=\"hljs-string\">{title:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">url}}}</span>\n            <span class=\"hljs-attr\">options:</span>\n              <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">map</span>\n              <span class=\"hljs-attr\">when:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">links}</span>\n              <span class=\"hljs-attr\">fields:</span> <span class=\"hljs-string\">{columns:</span> <span class=\"hljs-string\">int}</span></code></pre>\n<p>Tools that edit the front matter can use the <code translate=\"no\">when</code> rule to show only the relevant variables.</p>\n<h3 id=\"schema-of-a-page\">Schema of a page<a class=\"heading-anchor\" href=\"#schema-of-a-page\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>A key of <code translate=\"no\">pages.schema</code> can also be a page, for the pages that have their own variables (a home page, a résumé, etc.). The key is the ID of the page, without its language: the path of its file in the pages directory, without prefix, language and extension.</p>\n<table>\n<thead>\n<tr>\n<th>File</th>\n<th>Key</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">index.md</code></td>\n<td><code translate=\"no\">index</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">cv.md</code>, <code translate=\"no\">cv.en.md</code></td>\n<td><code translate=\"no\">cv</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">1-My project.md</code></td>\n<td><code translate=\"no\">my-project</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">blog/2024-05-01_post.md</code></td>\n<td><code translate=\"no\">blog/post</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">blog/index.md</code></td>\n<td><code translate=\"no\">blog/index</code></td>\n</tr>\n</tbody>\n</table>\n<p>The variables are those of <code translate=\"no\">*</code>, then of the section of the page, then of the page: the last ones override the others.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-attr\">blog:</span>        <span class=\"hljs-comment\"># pages of the \"blog\" section</span>\n      <span class=\"hljs-attr\">author:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">blog/index:</span>  <span class=\"hljs-comment\"># index of the \"blog\" section</span>\n      <span class=\"hljs-attr\">intro:</span> <span class=\"hljs-string\">string</span>\n    <span class=\"hljs-attr\">cv:</span>          <span class=\"hljs-comment\"># \"cv.md\" page, and its translations</span>\n      <span class=\"hljs-attr\">skills:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n        <span class=\"hljs-attr\">items:</span>\n          <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">map</span>\n          <span class=\"hljs-attr\">fields:</span>\n            <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">}</span>\n            <span class=\"hljs-attr\">level:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">int,</span> <span class=\"hljs-attr\">min:</span> <span class=\"hljs-number\">0</span><span class=\"hljs-string\">,</span> <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">100</span><span class=\"hljs-string\">}</span></code></pre>\n<aside class=\"note note-info\"><p>The schema of a section applies to its pages, not to its index (<code translate=\"no\">blog/index.md</code>), which has its own key (<code translate=\"no\">blog/index</code>).</p></aside>\n<h3 id=\"description-of-the-variables\">Description of the variables<a class=\"heading-anchor\" href=\"#description-of-the-variables\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The <code translate=\"no\">format</code>, <code translate=\"no\">label</code> and <code translate=\"no\">description</code> rules describe a variable to the tools that edit the front matter (e.g. <a href=\"https://desktop.cecil.app\" target=\"_blank\" rel=\"noopener noreferrer\">Cecil Desktop</a> builds its form from the schema). They are accepted on any variable, also in <code translate=\"no\">fields</code> and <code translate=\"no\">items</code>.</p>\n<p><code translate=\"no\">format</code> tells what a <code translate=\"no\">string</code> holds:</p>\n<table>\n<thead>\n<tr>\n<th>Format</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">text</code></td>\n<td>Text of several lines.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">markdown</code></td>\n<td>Text of several lines, rendered as Markdown by the template.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">url</code></td>\n<td>Absolute URL (<code translate=\"no\">https://cecil.app</code>): validated.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">email</code></td>\n<td>Email address: validated.</td>\n</tr>\n<tr>\n<td><code translate=\"no\">path</code></td>\n<td>Path of a file of the site (asset or static file): not checked.</td>\n</tr>\n</tbody>\n</table>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-attr\">cv:</span>\n      <span class=\"hljs-attr\">intro:</span>\n        <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">string</span>\n        <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">markdown</span>\n        <span class=\"hljs-attr\">label:</span> <span class=\"hljs-string\">Introduction</span>\n        <span class=\"hljs-attr\">description:</span> <span class=\"hljs-string\">Shown</span> <span class=\"hljs-string\">under</span> <span class=\"hljs-string\">the</span> <span class=\"hljs-string\">title</span> <span class=\"hljs-string\">of</span> <span class=\"hljs-string\">the</span> <span class=\"hljs-string\">page.</span>\n      <span class=\"hljs-attr\">website:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">url}</span>\n      <span class=\"hljs-attr\">photo:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">path,</span> <span class=\"hljs-attr\">label:</span> <span class=\"hljs-string\">Photo}</span></code></pre>\n<p><code translate=\"no\">label</code> and <code translate=\"no\">description</code> have no effect on the validation, and neither have the <code translate=\"no\">text</code>, <code translate=\"no\">markdown</code> and <code translate=\"no\">path</code> formats.</p>\n<h3 id=\"schemas-directory\">Schemas directory<a class=\"heading-anchor\" href=\"#schemas-directory\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Instead of writing them in the configuration, schemas can be written in the <code translate=\"no\">schemas</code> directory, at the root of the site: one YAML file (<code translate=\"no\">.yml</code> or <code translate=\"no\">.yaml</code>) by key of <code translate=\"no\">pages.schema</code>, loaded automatically.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">&lt;mywebsite&gt;\n├─ pages\n└─ schemas\n   ├─ _all.yml        &lt;- '*': all pages\n   ├─ blog.yml        &lt;- \"blog\" section\n   ├─ cv.yml          &lt;- \"cv.md\" page\n   ├─ index.yml       &lt;- home page\n   └─ blog\n      └─ index.yml    &lt;- \"blog/index.md\" page (key \"blog/index\")</code></pre>\n<ul>\n<li>The path of a file in the directory, without its extension, is the key of the schema: a <em>Section</em>, or a <a href=\"#schema-of-a-page\">page</a> (<code translate=\"no\">schemas/blog/post-1.yml</code> is the schema of the <code translate=\"no\">blog/post-1</code> page).</li>\n<li>The schema of all pages (<code translate=\"no\">*</code>) is the <code translate=\"no\">_all.yml</code> file.</li>\n<li>A key can't have two files (<code translate=\"no\">blog.yml</code> and <code translate=\"no\">blog.yaml</code>): this is an error.</li>\n<li>A file holds the variables directly, as under <code translate=\"no\">pages.schema.&lt;key&gt;</code>, and an empty file is an empty schema.</li>\n</ul>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\"># schemas/cv.yml</span>\n<span class=\"hljs-attr\">sections:</span>\n  <span class=\"hljs-attr\">label:</span> <span class=\"hljs-string\">Sections</span>\n  <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n  <span class=\"hljs-attr\">items:</span>\n    <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">map</span>\n    <span class=\"hljs-attr\">fields:</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">}</span>\n      <span class=\"hljs-attr\">text:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">format:</span> <span class=\"hljs-string\">markdown}</span></code></pre>\n<p>is the same as:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-attr\">cv:</span>\n      <span class=\"hljs-attr\">sections:</span>\n        <span class=\"hljs-comment\"># …</span></code></pre>\n<p>Each file is validated when the configuration is loaded: an error gives the name of the file and the path of the invalid variable in it (e.g. <code translate=\"no\">Invalid schema file \"schemas/cv.yml\"</code>). As in <code translate=\"no\">pages.schema</code>, a file whose key matches no <em>Section</em> and no page is ignored.</p>\n<p>A <a href=\"../templates/7-extend.md#theme\">theme</a> can also have a <code translate=\"no\">schemas</code> directory, for the variables its templates expect. Schemas are merged from the lowest to the highest priority:</p>\n<ol>\n<li><code translate=\"no\">schemas</code> directories of the themes (a theme overrides the themes after it in the list);</li>\n<li><code translate=\"no\">pages.schema</code> of the <code translate=\"no\">config.yml</code> of the themes (a theme overrides the themes after it in the list);</li>\n<li><code translate=\"no\">schemas</code> directory of the site;</li>\n<li><code translate=\"no\">pages.schema</code> of the configuration of the site.</li>\n</ol>\n<p>For a same key, variables are merged one by one, at each level and between themes: the definition of a variable replaces its previous definition as a whole (its rules are not merged, and <code translate=\"no\">enum</code> lists are not combined), the other variables are kept.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\"># schemas/blog.yml</span>\n<span class=\"hljs-attr\">author:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">string,</span> <span class=\"hljs-attr\">required:</span> <span class=\"hljs-literal\">true</span><span class=\"hljs-string\">}</span>\n<span class=\"hljs-attr\">tags:</span> <span class=\"hljs-string\">{type:</span> <span class=\"hljs-string\">list,</span> <span class=\"hljs-attr\">items:</span> <span class=\"hljs-string\">string}</span></code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\"># cecil.yml</span>\n<span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">schema:</span>\n    <span class=\"hljs-attr\">blog:</span>\n      <span class=\"hljs-attr\">author:</span> <span class=\"hljs-string\">string</span> <span class=\"hljs-comment\"># \"author\" is now optional, \"tags\" is kept</span></code></pre>\n<aside class=\"note note-info\"><p>With <code translate=\"no\">cecil serve</code>, a change in a <code translate=\"no\">schemas</code> directory rebuilds the whole site with the schemas loaded again.</p></aside>\n<h3 id=\"translation-of-the-descriptions\">Translation of the descriptions<a class=\"heading-anchor\" href=\"#translation-of-the-descriptions\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The <code translate=\"no\">label</code> and <code translate=\"no\">description</code> rules can be translated, for the tools that edit the front matter of a page in another language (e.g. a theme whose schemas are written in English, used by a site in French).</p>\n<p>The text of a rule, as written in the schema, is the key of its translation in a <code translate=\"no\">schemas.&lt;locale&gt;.&lt;ext&gt;</code> file (e.g. <code translate=\"no\">schemas.fr.yaml</code>) of the <a href=\"7-layouts.md#layouts-translations\"><code translate=\"no\">translations</code></a> directory of the site or of a theme: a separate domain from the <code translate=\"no\">messages</code> of the templates.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\"># themes/links/schemas/index.yml</span>\n<span class=\"hljs-attr\">blocks:</span>\n  <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">list</span>\n  <span class=\"hljs-attr\">label:</span> <span class=\"hljs-string\">Blocks</span>\n  <span class=\"hljs-attr\">description:</span> <span class=\"hljs-string\">Blocks</span> <span class=\"hljs-string\">of</span> <span class=\"hljs-string\">the</span> <span class=\"hljs-string\">page,</span> <span class=\"hljs-string\">rendered</span> <span class=\"hljs-string\">in</span> <span class=\"hljs-string\">order.</span></code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\"># themes/links/translations/schemas.fr.yaml</span>\n<span class=\"hljs-attr\">Blocks:</span> <span class=\"hljs-string\">Blocs</span>\n<span class=\"hljs-string\">'Blocks of the page, rendered in order.'</span><span class=\"hljs-string\">:</span> <span class=\"hljs-string\">Blocs</span> <span class=\"hljs-string\">de</span> <span class=\"hljs-string\">la</span> <span class=\"hljs-string\">page,</span> <span class=\"hljs-string\">affichés</span> <span class=\"hljs-string\">dans</span> <span class=\"hljs-string\">l’ordre.</span></code></pre>\n<ul>\n<li>As for the templates, the <code translate=\"no\">schemas.&lt;language&gt;.&lt;ext&gt;</code> file is also loaded for a locale with a region (<code translate=\"no\">schemas.fr.yaml</code> for <code translate=\"no\">fr_FR</code>).</li>\n<li>The site overrides the themes, and a theme overrides the themes after it in the list.</li>\n<li>A text without translation is kept as written: there is no fallback on the default language.</li>\n<li>The translations have no effect on the build: they are used by the tools, through the <code translate=\"no\">Cecil\\Config\\SchemaTranslator</code> class.</li>\n</ul>\n<p>The texts to translate are extracted by the <a href=\"../commands/index.md\"><code translate=\"no\">util:translations:extract</code></a> command, with the strings of the templates:</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">php cecil.phar util:translations:extract --locale=fr --save</code></pre>\n<h2 id=\"pages-converter\">pages.converter<a class=\"heading-anchor\" href=\"#pages-converter\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Class used to convert the front matter and the Markdown body of pages (<code translate=\"no\">Cecil\\Converter\\Converter</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">converter:</span> <span class=\"hljs-string\">Cecil\\Converter\\Converter</span></code></pre>\n<p>See <a href=\"../developers/1-extend.md#markdown-converter\">Markdown converter</a> to use your own.</p>\n<h2 id=\"pages-body\">pages.body<a class=\"heading-anchor\" href=\"#pages-body\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Page body options.</p>\n<aside class=\"note note-info\"><p>To know how these options impact your content see <em><a href=\"../content/3-markdown.md\">Content &gt; Markdown</a></em> documentation.</p></aside>\n<h3 id=\"pages-body-parser\">pages.body.parser<a class=\"heading-anchor\" href=\"#pages-body-parser\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Markdown parser class (<code translate=\"no\">Cecil\\Converter\\Parsedown</code> by default). It must extend <code translate=\"no\">Cecil\\Converter\\Parsedown</code>: see <a href=\"../developers/1-extend.md#markdown-parser\">Markdown parser</a> to add your own syntax.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">parser:</span> <span class=\"hljs-string\">Cecil\\Converter\\Parsedown</span></code></pre>\n<h3 id=\"pages-body-toc\">pages.body.toc<a class=\"heading-anchor\" href=\"#pages-body-toc\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Headers used to build the table of contents (<code translate=\"no\">[h2, h3]</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">toc:</span> <span class=\"hljs-string\">[h2,</span> <span class=\"hljs-string\">h3]</span></code></pre>\n<h3 id=\"pages-body-anchors\">pages.body.anchors<a class=\"heading-anchor\" href=\"#pages-body-anchors\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Headings with an anchor link (<code translate=\"no\">[h2, h3]</code> by default): an empty <code translate=\"no\">&lt;a class=\"heading-anchor\" href=\"#&lt;id&gt;\"&gt;</code> element is added at the end of each of these headings that have an ID, to be styled by templates (e.g.: a <code translate=\"no\">#</code> displayed on hover).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">anchors:</span> <span class=\"hljs-string\">[h2,</span> <span class=\"hljs-string\">h3]</span> <span class=\"hljs-comment\"># set to false to disable anchors</span></code></pre>\n<h3 id=\"pages-body-highlight\">pages.body.highlight<a class=\"heading-anchor\" href=\"#pages-body-highlight\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Enables code syntax highlighting (<code translate=\"no\">true</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">highlight:</span> <span class=\"hljs-literal\">false</span> <span class=\"hljs-comment\"># set to false to disable syntax highlighting</span></code></pre>\n<p>The highlighter engine can be changed with the <code translate=\"no\">engine</code> option:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">highlight:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># `true` by default</span>\n      <span class=\"hljs-attr\">engine:</span> <span class=\"hljs-string\">tempest</span>  <span class=\"hljs-comment\"># `highlightjs` (default) or `tempest`</span></code></pre>\n<ul>\n<li><code translate=\"no\">highlightjs</code>: <a href=\"https://github.com/scrivo/highlight.php\" target=\"_blank\" rel=\"noopener noreferrer\">highlight.php</a>, a PHP port of highlight.js (190+ languages, <code translate=\"no\">hljs-*</code> CSS classes)</li>\n<li><code translate=\"no\">tempest</code>: <a href=\"https://github.com/tempestphp/highlight\" target=\"_blank\" rel=\"noopener noreferrer\">tempest/highlight</a>, a fast server-side highlighter (web languages: PHP, HTML, CSS, JavaScript, JSON, YAML, Twig, SQL, XML, etc., <code translate=\"no\">hl-*</code> CSS classes)</li>\n</ul>\n<aside class=\"note note-info\"><p>These options only apply to Markdown content: the <a href=\"../templates/reference/3-filters.md#highlight\"><code translate=\"no\">highlight</code></a> filter of templates uses the <a href=\"7-layouts.md#layouts-highlight\"><code translate=\"no\">layouts.highlight.engine</code></a> option.</p></aside>\n<h3 id=\"pages-body-images\">pages.body.images<a class=\"heading-anchor\" href=\"#pages-body-images\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Images handling options.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">images:</span>\n      <span class=\"hljs-attr\">formats:</span> <span class=\"hljs-string\">[]</span>       <span class=\"hljs-comment\"># adds alternative image formats as `source` (e.g. `[avif, webp]`, empty array by default)</span>\n      <span class=\"hljs-attr\">resize:</span> <span class=\"hljs-number\">0</span>         <span class=\"hljs-comment\"># resizes all images to &lt;width&gt; (in pixels, `0` to disable)</span>\n      <span class=\"hljs-attr\">responsive:</span> <span class=\"hljs-literal\">false</span> <span class=\"hljs-comment\"># adds responsive image variants to the `srcset` attribute (`false` by default)</span>\n      <span class=\"hljs-attr\">lazy:</span> <span class=\"hljs-literal\">true</span>        <span class=\"hljs-comment\"># adds `loading=\"lazy\"` attribute (`true` by default)</span>\n      <span class=\"hljs-attr\">decoding:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># adds `decoding=\"async\"` attribute (`true` by default)</span>\n      <span class=\"hljs-attr\">caption:</span> <span class=\"hljs-literal\">false</span>    <span class=\"hljs-comment\"># puts the image in a &lt;figure&gt; element and adds a &lt;figcaption&gt; containing the title (`false` by default)</span>\n      <span class=\"hljs-attr\">placeholder:</span> <span class=\"hljs-string\">''</span>   <span class=\"hljs-comment\"># fills the &lt;img&gt; background before loading ('color' or 'lqip', empty by default)</span>\n      <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">''</span>         <span class=\"hljs-comment\"># sets a default class on each image (empty by default)</span>\n      <span class=\"hljs-attr\">dark_suffix:</span> <span class=\"hljs-string\">~</span>    <span class=\"hljs-comment\"># suffix of the dark variant image (e.g. `.dark`), disabled by default</span>\n      <span class=\"hljs-attr\">mobile_suffix:</span> <span class=\"hljs-string\">~</span>  <span class=\"hljs-comment\"># suffix of the mobile variant image (e.g. `.mobile`), disabled by default</span>\n      <span class=\"hljs-attr\">mobile_media_query:</span> <span class=\"hljs-string\">'(max-width: 767px)'</span> <span class=\"hljs-comment\"># media query of the mobile variant `&lt;source&gt;`</span>\n      <span class=\"hljs-attr\">remote:</span>           <span class=\"hljs-comment\"># remote image handling (set to `false` to disable)</span>\n        <span class=\"hljs-attr\">fallback:</span>         <span class=\"hljs-comment\"># path to the fallback image, stored in assets dir (empty by default)</span></code></pre>\n<aside class=\"note note-warning\"><p>Since version <ins>8.41.0</ins>, the <code translate=\"no\">pages.body.images.resize</code> option is used to resize images to a specific width, no more to enable the resize feature (enabled systematically).</p></aside>\n<aside class=\"note note-important\"><p>Global options, like responsive images widths and sizes, are configurable in the <a href=\"6-assets.md#assets-images\"><code translate=\"no\">assets.images</code></a> section.</p></aside>\n<aside class=\"note note-info\"><p>Remote images are downloaded and converted into <em>Assets</em> to be manipulated. You can disable this behavior by setting the option <code translate=\"no\">pages.body.images.remote.enabled</code> to <code translate=\"no\">false</code>.</p></aside>\n<aside class=\"note note-tip\"><p>When <code translate=\"no\">dark_suffix</code> is set (e.g. <code translate=\"no\">dark_suffix: .dark</code>), Cecil automatically looks for a dark variant of each image (e.g. <code translate=\"no\">photo.dark.jpg</code> alongside <code translate=\"no\">photo.jpg</code>). If found, the image is wrapped in a <code translate=\"no\">&lt;picture&gt;</code> element with a <code translate=\"no\">&lt;source media=\"(prefers-color-scheme: dark)\"&gt;</code> for automatic light/dark theme switching. Works in combination with <code translate=\"no\">formats</code> and <code translate=\"no\">responsive</code>.</p>\n<p>In the same way, when <code translate=\"no\">mobile_suffix</code> is set (e.g. <code translate=\"no\">mobile_suffix: .mobile</code>), Cecil looks for a mobile variant of each image (e.g. <code translate=\"no\">photo.mobile.jpg</code> alongside <code translate=\"no\">photo.jpg</code>) and adds a <code translate=\"no\">&lt;source&gt;</code> element with the <code translate=\"no\">mobile_media_query</code> media query (<code translate=\"no\">(max-width: 767px)</code> by default). If <code translate=\"no\">dark_suffix</code> is also set, the dark variant of the mobile image (e.g. <code translate=\"no\">photo.mobile.dark.jpg</code>) is used on mobile with dark color scheme. Mobile sources are placed before dark sources, so that a mobile variant takes precedence.</p></aside>\n<h3 id=\"pages-body-links\">pages.body.links<a class=\"heading-anchor\" href=\"#pages-body-links\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Links handling options.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">links:</span>\n      <span class=\"hljs-attr\">embed:</span>\n        <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span>     <span class=\"hljs-comment\"># turns links into embedded content if possible (`false` by default)</span>\n        <span class=\"hljs-attr\">video:</span> <span class=\"hljs-string\">[mp4,</span> <span class=\"hljs-string\">webm]</span> <span class=\"hljs-comment\"># video files extensions</span>\n        <span class=\"hljs-attr\">audio:</span> <span class=\"hljs-string\">[mp3,</span> <span class=\"hljs-string\">ogg,</span> <span class=\"hljs-string\">wav]</span> <span class=\"hljs-comment\"># audio files extensions</span>\n      <span class=\"hljs-attr\">external:</span>\n        <span class=\"hljs-attr\">blank:</span> <span class=\"hljs-literal\">false</span>     <span class=\"hljs-comment\"># if true open external link in new tab</span>\n        <span class=\"hljs-attr\">noopener:</span> <span class=\"hljs-literal\">true</span>   <span class=\"hljs-comment\"># if true add \"noopener\" to `rel` attribute</span>\n        <span class=\"hljs-attr\">noreferrer:</span> <span class=\"hljs-literal\">true</span> <span class=\"hljs-comment\"># if true add \"noreferrer\" to `rel` attribute</span>\n        <span class=\"hljs-attr\">nofollow:</span> <span class=\"hljs-literal\">false</span>  <span class=\"hljs-comment\"># if true add \"nofollow\" to `rel` attribute</span></code></pre>\n<h3 id=\"pages-body-excerpt\">pages.body.excerpt<a class=\"heading-anchor\" href=\"#pages-body-excerpt\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Excerpt handling options.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">body:</span>\n    <span class=\"hljs-attr\">excerpt:</span>\n      <span class=\"hljs-attr\">separator:</span> <span class=\"hljs-string\">excerpt|break</span> <span class=\"hljs-comment\"># string to use as separator (`excerpt|break` by default)</span>\n      <span class=\"hljs-attr\">capture:</span> <span class=\"hljs-string\">before</span>          <span class=\"hljs-comment\"># part to capture, `before` or `after` the separator (`before` by default)</span></code></pre>\n<h2 id=\"pages-default\">pages.default<a class=\"heading-anchor\" href=\"#pages-default\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Default pages are pages without content file (<strong>front matter only</strong>), indexed by ID, each one with a <code translate=\"no\">path</code> and some front matter variables.</p>\n<p>Cecil provides built-in default pages (from built-in templates):</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">default:</span>\n    <span class=\"hljs-attr\">index:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">''</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">Home</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">true</span>\n    <span class=\"hljs-attr\">404:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-number\">404</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">Page</span> <span class=\"hljs-string\">not</span> <span class=\"hljs-string\">found</span>\n      <span class=\"hljs-attr\">layout:</span> <span class=\"hljs-number\">404</span>\n      <span class=\"hljs-attr\">uglyurl:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">excluded:</span> <span class=\"hljs-literal\">true</span>\n    <span class=\"hljs-attr\">robots:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">robots</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">Robots.txt</span>\n      <span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">robots</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">txt</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">excluded:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">multilingual:</span> <span class=\"hljs-literal\">false</span>\n    <span class=\"hljs-attr\">sitemap:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">sitemap</span>\n      <span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">XML</span> <span class=\"hljs-string\">sitemap</span>\n      <span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">sitemap</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">xml</span>\n      <span class=\"hljs-attr\">changefreq:</span> <span class=\"hljs-string\">monthly</span>\n      <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">0.5</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">excluded:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">multilingual:</span> <span class=\"hljs-literal\">false</span>\n    <span class=\"hljs-attr\">xsl/sitemap:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">xsl/sitemap</span>\n      <span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">sitemap</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">xsl</span>\n      <span class=\"hljs-attr\">uglyurl:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">excluded:</span> <span class=\"hljs-literal\">true</span>\n    <span class=\"hljs-attr\">xsl/atom:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">xsl/atom</span>\n      <span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">feed</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">xsl</span>\n      <span class=\"hljs-attr\">uglyurl:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">excluded:</span> <span class=\"hljs-literal\">true</span>\n    <span class=\"hljs-attr\">xsl/rss:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">xsl/rss</span>\n      <span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">feed</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">xsl</span>\n      <span class=\"hljs-attr\">uglyurl:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">published:</span> <span class=\"hljs-literal\">false</span>\n      <span class=\"hljs-attr\">excluded:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<p>Each one can be:</p>\n<ol>\n<li>disabled: <code translate=\"no\">published: false</code></li>\n<li>excluded from list pages: <code translate=\"no\">excluded: true</code></li>\n<li>excluded from localization: <code translate=\"no\">multilingual: false</code></li>\n</ol>\n<p>You can also add your own pages (a theme can do the same in its <code translate=\"no\">config.yml</code>):</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">default:</span>\n    <span class=\"hljs-attr\">code:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">code</span>\n      <span class=\"hljs-attr\">redirect:</span> <span class=\"hljs-string\">https://github.com/ArnaudLigny</span></code></pre>\n<p>Like any other page, a default page is listed (e.g.: in <code translate=\"no\">site.pages.showable</code>, in the sitemap, on the homepage): set <code translate=\"no\">excluded: true</code> to keep a technical page (JSON index, manifest, etc.) out of lists.</p>\n<aside class=\"note note-important\"><p>Since version <ins>9.19.0</ins>, <code translate=\"no\">pages.virtual</code> is removed: move its pages to <code translate=\"no\">pages.default</code>, indexed by ID (e.g.: the page path). Pages without content file are no longer excluded from lists by default.</p></aside>\n<aside class=\"note note-tip\"><p>Since version <ins>8.68.0</ins>, you can override the default <code translate=\"no\">robots.txt</code> page by creating a page with the same <code translate=\"no\">path</code>:</p>\n<p><em>pages/robots.md</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">robots</span>\n<span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">txt</span>\n<span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">User-agent:</span> <span class=\"hljs-string\">AI-bot</span>\n<span class=\"hljs-attr\">Disallow:</span> <span class=\"hljs-string\">/</span></code></pre></aside>\n<h2 id=\"pages-generators\">pages.generators<a class=\"heading-anchor\" href=\"#pages-generators\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Generators are used by Cecil to create additional pages (e.g.: sitemap, feed, pagination, etc.) from existing pages, or from other sources like the configuration file or external sources.</p>\n<p>Generators are indexed by name and run in ascending order of their priority. Below is the list of generators provided by Cecil:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">generators:</span>\n    <span class=\"hljs-attr\">DefaultPages:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\DefaultPages,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">10</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">ExternalBody:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\ExternalBody,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">30</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">Section:</span>      <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\Section,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">40</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">Taxonomy:</span>     <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\Taxonomy,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">50</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">Homepage:</span>     <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\Homepage,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">60</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">Pagination:</span>   <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\Pagination,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">70</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">Alias:</span>        <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\Alias,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">80</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">Redirect:</span>     <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Generator\\Redirect,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">90</span> <span class=\"hljs-string\">}</span></code></pre>\n<p>A built-in generator can be disabled or moved by its name:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">generators:</span>\n    <span class=\"hljs-attr\">Redirect:</span> <span class=\"hljs-literal\">false</span>            <span class=\"hljs-comment\"># disabled</span>\n    <span class=\"hljs-attr\">Section:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">45</span> <span class=\"hljs-string\">}</span>  <span class=\"hljs-comment\"># moved</span></code></pre>\n<p>See <a href=\"../developers/1-extend.md#configuration\">Extensions</a> for the full syntax.</p>\n<aside class=\"note note-tip\"><p>You can extend Cecil with <a href=\"../developers/1-extend.md#page-generators\">Pages generator</a>.</p></aside>\n<h2 id=\"pages-subsets\">pages.subsets<a class=\"heading-anchor\" href=\"#pages-subsets\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Subsets are used to render a part of the pages collection, based on a specific path, language or output format, with the command:</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">cecil build --render-subset=&lt;name&gt;</code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">subsets:</span>\n    <span class=\"hljs-string\">&lt;name&gt;:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">&lt;path&gt;</span> <span class=\"hljs-comment\"># glob or string path (e.g.: `blog/*`, `blog`)</span>\n      <span class=\"hljs-attr\">language:</span> <span class=\"hljs-string\">&lt;language&gt;</span> <span class=\"hljs-comment\"># language code (e.g.: `en`, `fr`)</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">&lt;output&gt;</span> <span class=\"hljs-comment\"># output format (e.g.: `html`, `atom`)</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">pages:</span>\n  <span class=\"hljs-attr\">subsets:</span>\n    <span class=\"hljs-attr\">blog_en:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">blog</span>\n      <span class=\"hljs-attr\">language:</span> <span class=\"hljs-string\">en</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">html</span>\n    <span class=\"hljs-attr\">search_index:</span>\n      <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">'*'</span>\n      <span class=\"hljs-attr\">output:</span> <span class=\"hljs-string\">json</span></code></pre>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/data-static/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/data-static/",
      "title": "Data and static files",
      "summary": "Data files and static files options.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Data and static files\nThese options define where data files and static files are stored and how they are handled.\nData\nWhere data files are stored and what extensions are handled.\nSupported formats: YAML, JSON, XML and CSV.\ndata.dir\nData source directory (data by default).\ndata:\n  dir: data\ndata.ext\nList of file extensions.\ndata:\n  ext: [yaml, yml, json, xml, csv]\ndata.load\nEnables site.data collection (true by default).\ndata:\n  load: true\n\nStatic\nManagement of static files, copied as is (PDF, fonts, etc.).\nYou should put your assets files, used by asset(), in the assets directory to avoid unnecessary files copy.\nstatic.dir\nStatic files source directory (static by default).\nstatic:\n  dir: static\nstatic.target\nDirectory where static files are copied (root by default).\nstatic:\n  target: ''\nstatic.exclude\nList of excluded files. Accepts globs, strings and regexes.\nstatic:\n  exclude: ['sass', 'scss', '*.scss', 'package*.json', 'node_modules']\nIf you use Bootstrap Icons you can exclude the node_modules except node_modules\/bootstrap-icons with a regular expression:\nstatic:\n  exclude: ['sass', 'scss', '*.scss', 'package*.json', '#node_modules\/(?!bootstrap-icons)#']\nstatic.load\nEnables site.static collection (false by default).\nstatic:\n  load: false\nstatic.mounts\nCopies specific files or directories to a specific destination: each entry maps a source path, relative to the static.dir directory, to a destination path, relative to the output directory.\nstatic:\n  mounts:\n    &lt;source&gt;: &lt;destination&gt;\nstatic example\nstatic:\n  dir: docs\n  target: docs\n  exclude: ['sass', '*.scss', '\/\\.bck$\/']\n  load: true\n  mounts:\n    source\/path\/file.ext: dest\/path\/file.ext\n    vendor\/icons\/fonts: fonts\n",
      "content_html": "<h1>Data and static files</h1>\n<p>These options define where data files and static files are stored and how they are handled.</p>\n<h2 id=\"data\">Data<a class=\"heading-anchor\" href=\"#data\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Where data files are stored and what extensions are handled.</p>\n<p>Supported formats: YAML, JSON, XML and CSV.</p>\n<h3 id=\"data-dir\">data.dir<a class=\"heading-anchor\" href=\"#data-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Data source directory (<code translate=\"no\">data</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">data:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">data</span></code></pre>\n<h3 id=\"data-ext\">data.ext<a class=\"heading-anchor\" href=\"#data-ext\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>List of file extensions.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">data:</span>\n  <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[yaml,</span> <span class=\"hljs-string\">yml,</span> <span class=\"hljs-string\">json,</span> <span class=\"hljs-string\">xml,</span> <span class=\"hljs-string\">csv]</span></code></pre>\n<h3 id=\"data-load\">data.load<a class=\"heading-anchor\" href=\"#data-load\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Enables <code translate=\"no\">site.data</code> collection (<code translate=\"no\">true</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">data:</span>\n  <span class=\"hljs-attr\">load:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<hr>\n<h2 id=\"static\">Static<a class=\"heading-anchor\" href=\"#static\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Management of static files, copied as is (PDF, fonts, etc.).</p>\n<aside class=\"note note-important\"><p>You should put your assets files, used by <a href=\"../assets/index.md#asset\"><code translate=\"no\">asset()</code></a>, in the <a href=\"6-assets.md#assets-dir\"><code translate=\"no\">assets</code> directory</a> to avoid unnecessary files copy.</p></aside>\n<h3 id=\"static-dir\">static.dir<a class=\"heading-anchor\" href=\"#static-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Static files source directory (<code translate=\"no\">static</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">static</span></code></pre>\n<h3 id=\"static-target\">static.target<a class=\"heading-anchor\" href=\"#static-target\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Directory where static files are copied (root by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">target:</span> <span class=\"hljs-string\">''</span></code></pre>\n<h3 id=\"static-exclude\">static.exclude<a class=\"heading-anchor\" href=\"#static-exclude\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>List of excluded files. Accepts globs, strings and regexes.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">['sass',</span> <span class=\"hljs-string\">'scss'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'*.scss'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'package*.json'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'node_modules'</span><span class=\"hljs-string\">]</span></code></pre>\n<aside class=\"note note-tip\"><p>If you use <a href=\"https://icons.getbootstrap.com\" target=\"_blank\" rel=\"noopener noreferrer\">Bootstrap Icons</a> you can exclude the <code translate=\"no\">node_modules</code> except <code translate=\"no\">node_modules/bootstrap-icons</code> with a regular expression:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">['sass',</span> <span class=\"hljs-string\">'scss'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'*.scss'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'package*.json'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'#node_modules/(?!bootstrap-icons)#'</span><span class=\"hljs-string\">]</span></code></pre></aside>\n<h3 id=\"static-load\">static.load<a class=\"heading-anchor\" href=\"#static-load\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Enables <code translate=\"no\">site.static</code> collection (<code translate=\"no\">false</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">load:</span> <span class=\"hljs-literal\">false</span></code></pre>\n<h3 id=\"static-mounts\">static.mounts<a class=\"heading-anchor\" href=\"#static-mounts\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Copies specific files or directories to a specific destination: each entry maps a source path, relative to the <a href=\"#static-dir\"><code translate=\"no\">static.dir</code></a> directory, to a destination path, relative to the output directory.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">mounts:</span>\n    <span class=\"hljs-string\">&lt;source&gt;:</span> <span class=\"hljs-string\">&lt;destination&gt;</span></code></pre>\n<h3 id=\"static-example\">static example<a class=\"heading-anchor\" href=\"#static-example\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">static:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">docs</span>\n  <span class=\"hljs-attr\">target:</span> <span class=\"hljs-string\">docs</span>\n  <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">['sass',</span> <span class=\"hljs-string\">'*.scss'</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">'/\\.bck$/'</span><span class=\"hljs-string\">]</span>\n  <span class=\"hljs-attr\">load:</span> <span class=\"hljs-literal\">true</span>\n  <span class=\"hljs-attr\">mounts:</span>\n    <span class=\"hljs-attr\">source/path/file.ext:</span> <span class=\"hljs-string\">dest/path/file.ext</span>\n    <span class=\"hljs-attr\">vendor/icons/fonts:</span> <span class=\"hljs-string\">fonts</span></code></pre>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/assets/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/assets/",
      "title": "Assets",
      "summary": "Assets directory, compilation, minification, images and CDN.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Assets\nAssets management (images, CSS and JS files).\nassets.dir\nAssets source directory (assets by default).\nassets:\n  dir: assets\nassets.target\nDirectory where remote and resized assets files are saved (root by default).\nassets:\n  target: ''\nassets.fingerprint\nEnables fingerprinting (cache busting) for assets files (true by default).\nassets:\n  fingerprint: true\nassets.compile\nSass files compilation options. See the documentation of scssphp for options details.\nassets:\n  compile:\n    style: expanded      # compilation style (`expanded` or `compressed`. `expanded` by default)\n    import: [sass, scss] # list of imported paths (`[sass, scss, node_modules]` by default)\n    sourcemap: false     # enables sourcemap in debug mode (`false` by default)\n    variables: {}        # preset variables, as `name: value` pairs (empty by default)\nsourcemap is used to debug SCSS compilation (debug mode must be enabled).\nassets.minify\nEnables CSS and JS minification (true by default).\nassets:\n  minify: true\nassets.images\nImages management.\nassets:\n  images:\n    optimize: false # enables images optimization with JpegOptim, Optipng, Pngquant 2, SVGO 1, Gifsicle, cwebp, avifenc (`false` by default)\n    quality: 75     # image quality used by optimization and resizing (`75` by default)\n    responsive:\n      widths: [480, 640, 768, 1024, 1366, 1600, 1920] # `srcset` attribute images widths\n      sizes:\n        default: '100vw' # default `sizes` attribute (`100vw` by default)\n      densities: [1, 2, 3] # `srcset` attribute pixel densities\nassets.images.cdn\nURL of image assets can be easily replaced by a provided CDN url.\nassets:\n  images:\n    cdn:\n      enabled: false  # enables Image CDN (`false` by default)\n      svg: false      # includes SVG images (`false` by default)\n      canonical: true # `image_url` is canonical (instead of a relative path) (`true` by default)\n      remote: true    # also handles remote images (`true` by default)\n      account: 'xxxx' # provider account\n      url: 'https:\/\/provider.tld\/%account%\/%image_url%?w=%width%&amp;q=%quality%&amp;format=%format%'\nurl is a pattern that contains variables:\n\n%account% replaced by the assets.images.cdn.account option\n%image_url% replaced by the image canonical URL or path\n%width% replaced by the image width\n%quality% replaced by the assets.images.quality option\n%format% replaced by the image format\n\nSee CDN providers.\nassets.remote.useragent\nUser agent used to download remote assets.\nassets:\n  remote:\n    useragent:\n      default: &lt;string&gt; # user agent of HTTP requests\nFor a given asset, the user agent can be replaced with the useragent option of the asset() function.\nassets.remote.timeout\nTimeout of remote assets downloads, in seconds (30 by default).\nassets:\n  remote:\n    timeout: 30\n",
      "content_html": "<h1>Assets</h1>\n<p>Assets management (images, CSS and JS files).</p>\n<h2 id=\"assets-dir\">assets.dir<a class=\"heading-anchor\" href=\"#assets-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Assets source directory (<code translate=\"no\">assets</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">assets</span></code></pre>\n<h2 id=\"assets-target\">assets.target<a class=\"heading-anchor\" href=\"#assets-target\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Directory where remote and resized assets files are saved (root by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">target:</span> <span class=\"hljs-string\">''</span></code></pre>\n<h2 id=\"assets-fingerprint\">assets.fingerprint<a class=\"heading-anchor\" href=\"#assets-fingerprint\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Enables fingerprinting (cache busting) for assets files (<code translate=\"no\">true</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">fingerprint:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<h2 id=\"assets-compile\">assets.compile<a class=\"heading-anchor\" href=\"#assets-compile\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://sass-lang.com\" target=\"_blank\" rel=\"noopener noreferrer\">Sass</a> files compilation options. See the <a href=\"https://scssphp.github.io/scssphp/docs/#output-formatting\" target=\"_blank\" rel=\"noopener noreferrer\">documentation of scssphp</a> for options details.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">compile:</span>\n    <span class=\"hljs-attr\">style:</span> <span class=\"hljs-string\">expanded</span>      <span class=\"hljs-comment\"># compilation style (`expanded` or `compressed`. `expanded` by default)</span>\n    <span class=\"hljs-attr\">import:</span> <span class=\"hljs-string\">[sass,</span> <span class=\"hljs-string\">scss]</span> <span class=\"hljs-comment\"># list of imported paths (`[sass, scss, node_modules]` by default)</span>\n    <span class=\"hljs-attr\">sourcemap:</span> <span class=\"hljs-literal\">false</span>     <span class=\"hljs-comment\"># enables sourcemap in debug mode (`false` by default)</span>\n    <span class=\"hljs-attr\">variables:</span> <span class=\"hljs-string\">{}</span>        <span class=\"hljs-comment\"># preset variables, as `name: value` pairs (empty by default)</span></code></pre>\n<aside class=\"note note-info\"><p><code translate=\"no\">sourcemap</code> is used to debug SCSS compilation (<a href=\"1-site.md#debug\">debug mode</a> must be enabled).</p></aside>\n<h2 id=\"assets-minify\">assets.minify<a class=\"heading-anchor\" href=\"#assets-minify\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Enables CSS and JS minification (<code translate=\"no\">true</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">minify:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<h2 id=\"assets-images\">assets.images<a class=\"heading-anchor\" href=\"#assets-images\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Images management.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">optimize:</span> <span class=\"hljs-literal\">false</span> <span class=\"hljs-comment\"># enables images optimization with JpegOptim, Optipng, Pngquant 2, SVGO 1, Gifsicle, cwebp, avifenc (`false` by default)</span>\n    <span class=\"hljs-attr\">quality:</span> <span class=\"hljs-number\">75</span>     <span class=\"hljs-comment\"># image quality used by optimization and resizing (`75` by default)</span>\n    <span class=\"hljs-attr\">responsive:</span>\n      <span class=\"hljs-attr\">widths:</span> <span class=\"hljs-string\">[480,</span> <span class=\"hljs-number\">640</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">768</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">1024</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">1366</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">1600</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">1920</span><span class=\"hljs-string\">]</span> <span class=\"hljs-comment\"># `srcset` attribute images widths</span>\n      <span class=\"hljs-attr\">sizes:</span>\n        <span class=\"hljs-attr\">default:</span> <span class=\"hljs-string\">'100vw'</span> <span class=\"hljs-comment\"># default `sizes` attribute (`100vw` by default)</span>\n      <span class=\"hljs-attr\">densities:</span> <span class=\"hljs-string\">[1,</span> <span class=\"hljs-number\">2</span><span class=\"hljs-string\">,</span> <span class=\"hljs-number\">3</span><span class=\"hljs-string\">]</span> <span class=\"hljs-comment\"># `srcset` attribute pixel densities</span></code></pre>\n<h2 id=\"assets-images-cdn\">assets.images.cdn<a class=\"heading-anchor\" href=\"#assets-images-cdn\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>URL of image assets can be easily replaced by a provided CDN <code translate=\"no\">url</code>.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">cdn:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span>  <span class=\"hljs-comment\"># enables Image CDN (`false` by default)</span>\n      <span class=\"hljs-attr\">svg:</span> <span class=\"hljs-literal\">false</span>      <span class=\"hljs-comment\"># includes SVG images (`false` by default)</span>\n      <span class=\"hljs-attr\">canonical:</span> <span class=\"hljs-literal\">true</span> <span class=\"hljs-comment\"># `image_url` is canonical (instead of a relative path) (`true` by default)</span>\n      <span class=\"hljs-attr\">remote:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># also handles remote images (`true` by default)</span>\n      <span class=\"hljs-attr\">account:</span> <span class=\"hljs-string\">'xxxx'</span> <span class=\"hljs-comment\"># provider account</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">'https://provider.tld/%account%/%image_url%?w=%width%&amp;q=%quality%&amp;format=%format%'</span></code></pre>\n<p><code translate=\"no\">url</code> is a pattern that contains variables:</p>\n<ul>\n<li><code translate=\"no\">%account%</code> replaced by the <code translate=\"no\">assets.images.cdn.account</code> option</li>\n<li><code translate=\"no\">%image_url%</code> replaced by the image canonical URL or <code translate=\"no\">path</code></li>\n<li><code translate=\"no\">%width%</code> replaced by the image width</li>\n<li><code translate=\"no\">%quality%</code> replaced by the <code translate=\"no\">assets.images.quality</code> option</li>\n<li><code translate=\"no\">%format%</code> replaced by the image format</li>\n</ul>\n<p>See <a href=\"../assets/3-cdn-providers.md\"><strong>CDN providers</strong></a>.</p>\n<h2 id=\"assets-remote-useragent\">assets.remote.useragent<a class=\"heading-anchor\" href=\"#assets-remote-useragent\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>User agent used to download remote assets.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">remote:</span>\n    <span class=\"hljs-attr\">useragent:</span>\n      <span class=\"hljs-attr\">default:</span> <span class=\"hljs-string\">&lt;string&gt;</span> <span class=\"hljs-comment\"># user agent of HTTP requests</span></code></pre>\n<aside class=\"note note-info\"><p>For a given asset, the user agent can be replaced with the <code translate=\"no\">useragent</code> option of the <a href=\"../assets/index.md#asset\"><code translate=\"no\">asset()</code></a> function.</p></aside>\n<h2 id=\"assets-remote-timeout\">assets.remote.timeout<a class=\"heading-anchor\" href=\"#assets-remote-timeout\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Timeout of remote assets downloads, in seconds (<code translate=\"no\">30</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">remote:</span>\n    <span class=\"hljs-attr\">timeout:</span> <span class=\"hljs-number\">30</span></code></pre>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/layouts/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/layouts/",
      "title": "Layouts",
      "summary": "Templates directory, auto-escaping, images, highlight, translations and components.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-26T00:00:00+00:00","content_text": "Layouts\nTemplates options.\nlayouts.dir\nTemplates source directory (layouts by default).\nlayouts:\n  dir: layouts\nlayouts.autoescape\nOverrides Twig autoescape option (false by default).\nIf set to null, Cecil uses an extension-based strategy:\n\n*.js.twig -&gt; js\n*.css.twig -&gt; css\n*.html.twig and *.twig -&gt; html\nany other extension -&gt; false\n\nlayouts:\n  autoescape: false  # disables automatic escaping (default)\n  #autoescape: null  # use Cecil automatic strategy by template filename extension\n  #autoescape: html\n  #autoescape: js\nlayouts.images\nImages handling options.\nlayouts:\n  images:\n    formats: []       # used by `html` function: adds alternative image formats as `source` (e.g. `[avif, webp]`, empty array by default)\n    responsive: false # used by `html` function: adds responsive images ('width' or 'density', `false` by default)\n    placeholder: ''   # used by `html` function: fills image background before loading (`color` or `lqip`, disabled by default)\n    dark_suffix: ~    # suffix of the dark variant image (e.g. `.dark`), disabled by default\n    mobile_suffix: ~  # suffix of the mobile variant image (e.g. `.mobile`), disabled by default\n    mobile_media_query: '(max-width: 767px)' # media query of the mobile variant `&lt;source&gt;`\nlayouts.highlight\nCode syntax highlighting options of templates.\nlayouts:\n  highlight:\n    engine: highlightjs # used by `highlight` filter: `highlightjs` (default) or `tempest`\nSee the highlight filter.\nThis option only applies to templates: Markdown content uses the pages.body.highlight.engine option.\nlayouts.translations\nTranslations handling options.\nlayouts:\n  translations:\n    dir: translations # translations source directory (`translations` by default)\n    formats:          # translations supported formats\n      yaml:\n        loader: Symfony\\Component\\Translation\\Loader\\YamlFileLoader\n        ext: [yml, yaml]\n      mo:\n        loader: Symfony\\Component\\Translation\\Loader\\MoFileLoader\n        ext: [mo]\nEach translation format defines:\n\nloader: Symfony translation loader class\next: one or more file extensions associated with this format\n\nlayouts.extensions\nTwig extensions to load, indexed by name (empty by default).\nlayouts:\n  extensions:\n    &lt;name&gt;: &lt;class&gt;\nSee Extensions for the full syntax.\nlayouts.components\nTemplates Components options.\nlayouts:\n  components:\n    dir: components # components source directory (`components` by default)\n    ext: twig       # components files extension (`twig` by default)\nlayouts.sections\nMaps a section to the layouts of another section: the mapped name is used in place of &lt;section&gt; by the lookup rules of the section and of its pages.\nlayouts:\n  sections:\n    news: blog # the \"news\" section is rendered with `blog\/list.html.twig` and its pages with `blog\/page.html.twig`\nA sub-section already falls back to the layouts of its parent sections: no mapping is needed for that.\n",
      "content_html": "<h1>Layouts</h1>\n<p>Templates options.</p>\n<h2 id=\"layouts-dir\">layouts.dir<a class=\"heading-anchor\" href=\"#layouts-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Templates source directory (<code translate=\"no\">layouts</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">layouts</span></code></pre>\n<h2 id=\"layouts-autoescape\">layouts.autoescape<a class=\"heading-anchor\" href=\"#layouts-autoescape\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Overrides Twig <code translate=\"no\">autoescape</code> option (<code translate=\"no\">false</code> by default).</p>\n<p>If set to <code translate=\"no\">null</code>, Cecil uses an extension-based strategy:</p>\n<ul>\n<li><code translate=\"no\">*.js.twig</code> -&gt; <code translate=\"no\">js</code></li>\n<li><code translate=\"no\">*.css.twig</code> -&gt; <code translate=\"no\">css</code></li>\n<li><code translate=\"no\">*.html.twig</code> and <code translate=\"no\">*.twig</code> -&gt; <code translate=\"no\">html</code></li>\n<li>any other extension -&gt; <code translate=\"no\">false</code></li>\n</ul>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">autoescape:</span> <span class=\"hljs-literal\">false</span>  <span class=\"hljs-comment\"># disables automatic escaping (default)</span>\n  <span class=\"hljs-comment\">#autoescape: null  # use Cecil automatic strategy by template filename extension</span>\n  <span class=\"hljs-comment\">#autoescape: html</span>\n  <span class=\"hljs-comment\">#autoescape: js</span></code></pre>\n<h2 id=\"layouts-images\">layouts.images<a class=\"heading-anchor\" href=\"#layouts-images\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Images handling options.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">formats:</span> <span class=\"hljs-string\">[]</span>       <span class=\"hljs-comment\"># used by `html` function: adds alternative image formats as `source` (e.g. `[avif, webp]`, empty array by default)</span>\n    <span class=\"hljs-attr\">responsive:</span> <span class=\"hljs-literal\">false</span> <span class=\"hljs-comment\"># used by `html` function: adds responsive images ('width' or 'density', `false` by default)</span>\n    <span class=\"hljs-attr\">placeholder:</span> <span class=\"hljs-string\">''</span>   <span class=\"hljs-comment\"># used by `html` function: fills image background before loading (`color` or `lqip`, disabled by default)</span>\n    <span class=\"hljs-attr\">dark_suffix:</span> <span class=\"hljs-string\">~</span>    <span class=\"hljs-comment\"># suffix of the dark variant image (e.g. `.dark`), disabled by default</span>\n    <span class=\"hljs-attr\">mobile_suffix:</span> <span class=\"hljs-string\">~</span>  <span class=\"hljs-comment\"># suffix of the mobile variant image (e.g. `.mobile`), disabled by default</span>\n    <span class=\"hljs-attr\">mobile_media_query:</span> <span class=\"hljs-string\">'(max-width: 767px)'</span> <span class=\"hljs-comment\"># media query of the mobile variant `&lt;source&gt;`</span></code></pre>\n<h2 id=\"layouts-highlight\">layouts.highlight<a class=\"heading-anchor\" href=\"#layouts-highlight\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Code syntax highlighting options of templates.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">highlight:</span>\n    <span class=\"hljs-attr\">engine:</span> <span class=\"hljs-string\">highlightjs</span> <span class=\"hljs-comment\"># used by `highlight` filter: `highlightjs` (default) or `tempest`</span></code></pre>\n<p>See the <a href=\"../templates/reference/3-filters.md#highlight\"><code translate=\"no\">highlight</code></a> filter.</p>\n<aside class=\"note note-info\"><p>This option only applies to templates: Markdown content uses the <a href=\"4-pages.md#pages-body-highlight\"><code translate=\"no\">pages.body.highlight.engine</code></a> option.</p></aside>\n<h2 id=\"layouts-translations\">layouts.translations<a class=\"heading-anchor\" href=\"#layouts-translations\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Translations handling options.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">translations:</span>\n    <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">translations</span> <span class=\"hljs-comment\"># translations source directory (`translations` by default)</span>\n    <span class=\"hljs-attr\">formats:</span>          <span class=\"hljs-comment\"># translations supported formats</span>\n      <span class=\"hljs-attr\">yaml:</span>\n        <span class=\"hljs-attr\">loader:</span> <span class=\"hljs-string\">Symfony\\Component\\Translation\\Loader\\YamlFileLoader</span>\n        <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[yml,</span> <span class=\"hljs-string\">yaml]</span>\n      <span class=\"hljs-attr\">mo:</span>\n        <span class=\"hljs-attr\">loader:</span> <span class=\"hljs-string\">Symfony\\Component\\Translation\\Loader\\MoFileLoader</span>\n        <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[mo]</span></code></pre>\n<p>Each translation format defines:</p>\n<ul>\n<li><code translate=\"no\">loader</code>: Symfony translation loader class</li>\n<li><code translate=\"no\">ext</code>: one or more file extensions associated with this format</li>\n</ul>\n<h2 id=\"layouts-extensions\">layouts.extensions<a class=\"heading-anchor\" href=\"#layouts-extensions\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"../developers/1-extend.md#twig-extension\">Twig extensions</a> to load, indexed by name (empty by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">extensions:</span>\n    <span class=\"hljs-string\">&lt;name&gt;:</span> <span class=\"hljs-string\">&lt;class&gt;</span></code></pre>\n<p>See <a href=\"../developers/1-extend.md#configuration\">Extensions</a> for the full syntax.</p>\n<h2 id=\"layouts-components\">layouts.components<a class=\"heading-anchor\" href=\"#layouts-components\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"../templates/4-components.md\">Templates Components</a> options.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">components:</span>\n    <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">components</span> <span class=\"hljs-comment\"># components source directory (`components` by default)</span>\n    <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">twig</span>       <span class=\"hljs-comment\"># components files extension (`twig` by default)</span></code></pre>\n<h2 id=\"layouts-sections\">layouts.sections<a class=\"heading-anchor\" href=\"#layouts-sections\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Maps a section to the layouts of another section: the mapped name is used in place of <code translate=\"no\">&lt;section&gt;</code> by the <a href=\"../templates/1-lookup-rules.md#lookup-rules\">lookup rules</a> of the section and of its pages.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">layouts:</span>\n  <span class=\"hljs-attr\">sections:</span>\n    <span class=\"hljs-attr\">news:</span> <span class=\"hljs-string\">blog</span> <span class=\"hljs-comment\"># the \"news\" section is rendered with `blog/list.html.twig` and its pages with `blog/page.html.twig`</span></code></pre>\n<aside class=\"note note-tip\"><p>A <a href=\"../content/1-pages.md#sub-section\">sub-section</a> already falls back to the layouts of its parent sections: no mapping is needed for that.</p></aside>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/output/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/output/",
      "title": "Output",
      "summary": "Output directory, formats and post-processing.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-26T00:00:00+00:00","content_text": "Output\nDefines where and in what format pages are rendered.\noutput.dir\nDirectory where rendered pages’ files are saved (_site by default).\noutput:\n  dir: _site\noutput.formats\nList of output formats definition, which are used to render pages (e.g. HTML, Atom, RSS, JSON, XML, etc.).\noutput:\n  formats:\n    - name: &lt;name&gt;            # name of the format, e.g.: `html` (required)\n      mediatype: &lt;media type&gt; # media type (MIME type), e.g.: `text\/html` (required)\n      rel: &lt;rel&gt;              # `rel` attribute of the page alternate link, e.g.: `canonical` (optional, `alternate` by default)\n      subpath: &lt;sub path&gt;     # sub path, e.g.: `amp` in `path\/amp\/index.html` (optional)\n      filename: &lt;file name&gt;   # file name, e.g.: `index` in `path\/index.html` (optional)\n      extension: &lt;extension&gt;  # file extension, e.g.: `html` in `path\/index.html` (required)\n      exclude: [&lt;variable&gt;]   # don’t apply this format to pages identified by listed variables, e.g.: `[redirect, paginated]` (optional)\nThose formats are used in the output.pagetypeformats configuration and in the output page variable.\nDefault formats\nCecil provides some default formats, which can be overridden in the configuration file: html (default), atom, rss, json, xml, txt, amp, js, webmanifest, xsl, jsonfeed, oembed, embed, markdown, llms.\nFormats are merged by name: to override a default format, only define its name and the properties to change.\noutput:\n  formats:\n    - name: rss\n      filename: feed # `feed.xml` instead of `rss.xml`\noutput.pagetypeformats\nIt’s not required to set output variable for each page, as Cecil automatically applies the formats defined for each page type (homepage, page, section, vocabulary and term).\noutput:\n  pagetypeformats:\n    page: [&lt;format&gt;]\n    homepage: [&lt;format&gt;]\n    section: [&lt;format&gt;]\n    vocabulary: [&lt;format&gt;]\n    term: [&lt;format&gt;]\nSeveral formats can be defined for a single page type. For example, the section page type can be automatically rendered in HTML and Atom:\noutput:\n  pagetypeformats:\n    section: [html, atom]\nA list replaces the default formats of the page type (and is added to the formats defined by the theme). To add or remove a format instead, use a map of booleans:\noutput:\n  pagetypeformats:\n    homepage:\n      rss: true   # adds RSS\n      atom: false # removes Atom\nTo render a page, Cecil looks up a template named &lt;layout&gt;.&lt;format&gt;.twig (e.g. page.html.twig).\noutput example\noutput:\n  dir: _site\n  formats:\n    - name: html\n      mediatype: text\/html\n      filename: index\n      extension: html\n    - name: atom\n      mediatype: application\/atom+xml\n      filename: atom\n      extension: xml\n      exclude: [redirect, paginated]\n  pagetypeformats:\n    page: [html]\n    homepage: [html, atom]\n    section: [html, atom]\n    vocabulary: [html]\n    term: [html, atom]\noutput.postprocessors\nOutput post processors, indexed by name and run in ascending order of their priority, used to modify the output files after they have been generated.\nDefault post processors:\noutput:\n  postprocessors:\n    GeneratorMetaTag: { class: Cecil\\Renderer\\PostProcessor\\GeneratorMetaTag, priority: 10 }\n    HtmlExcerpt:      { class: Cecil\\Renderer\\PostProcessor\\HtmlExcerpt, priority: 20 }\n    MarkdownLink:     { class: Cecil\\Renderer\\PostProcessor\\MarkdownLink, priority: 30 }\nA post processor can be disabled by its name (e.g.: GeneratorMetaTag: false). See Extensions for the full syntax.\nYou can extend Cecil capabilities with an Output post processor.\n",
      "content_html": "<h1>Output</h1>\n<p>Defines where and in what format pages are rendered.</p>\n<h2 id=\"output-dir\">output.dir<a class=\"heading-anchor\" href=\"#output-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Directory where rendered pages’ files are saved (<code translate=\"no\">_site</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">_site</span></code></pre>\n<h2 id=\"output-formats\">output.formats<a class=\"heading-anchor\" href=\"#output-formats\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>List of output formats definition, which are used to render pages (e.g. HTML, Atom, RSS, JSON, XML, etc.).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">formats:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">&lt;name&gt;</span>            <span class=\"hljs-comment\"># name of the format, e.g.: `html` (required)</span>\n      <span class=\"hljs-attr\">mediatype:</span> <span class=\"hljs-string\">&lt;media</span> <span class=\"hljs-string\">type&gt;</span> <span class=\"hljs-comment\"># media type (MIME type), e.g.: `text/html` (required)</span>\n      <span class=\"hljs-attr\">rel:</span> <span class=\"hljs-string\">&lt;rel&gt;</span>              <span class=\"hljs-comment\"># `rel` attribute of the page alternate link, e.g.: `canonical` (optional, `alternate` by default)</span>\n      <span class=\"hljs-attr\">subpath:</span> <span class=\"hljs-string\">&lt;sub</span> <span class=\"hljs-string\">path&gt;</span>     <span class=\"hljs-comment\"># sub path, e.g.: `amp` in `path/amp/index.html` (optional)</span>\n      <span class=\"hljs-attr\">filename:</span> <span class=\"hljs-string\">&lt;file</span> <span class=\"hljs-string\">name&gt;</span>   <span class=\"hljs-comment\"># file name, e.g.: `index` in `path/index.html` (optional)</span>\n      <span class=\"hljs-attr\">extension:</span> <span class=\"hljs-string\">&lt;extension&gt;</span>  <span class=\"hljs-comment\"># file extension, e.g.: `html` in `path/index.html` (required)</span>\n      <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">[&lt;variable&gt;]</span>   <span class=\"hljs-comment\"># don’t apply this format to pages identified by listed variables, e.g.: `[redirect, paginated]` (optional)</span></code></pre>\n<p>Those formats are used in the <a href=\"#output-pagetypeformats\"><code translate=\"no\">output.pagetypeformats</code></a> configuration and in the <a href=\"../content/2-front-matter.md#output\"><code translate=\"no\">output</code> page variable</a>.</p>\n<h3 id=\"default-formats\">Default formats<a class=\"heading-anchor\" href=\"#default-formats\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Cecil provides some <a href=\"https://github.com/Cecilapp/Cecil/blob/main/config/default.php#L287-L394\" target=\"_blank\" rel=\"noopener noreferrer\">default formats</a>, which can be overridden in the configuration file: <code translate=\"no\">html</code> (default), <code translate=\"no\">atom</code>, <code translate=\"no\">rss</code>, <code translate=\"no\">json</code>, <code translate=\"no\">xml</code>, <code translate=\"no\">txt</code>, <code translate=\"no\">amp</code>, <code translate=\"no\">js</code>, <code translate=\"no\">webmanifest</code>, <code translate=\"no\">xsl</code>, <code translate=\"no\">jsonfeed</code>, <code translate=\"no\">oembed</code>, <code translate=\"no\">embed</code>, <code translate=\"no\">markdown</code>, <code translate=\"no\">llms</code>.</p>\n<p>Formats are merged by <code translate=\"no\">name</code>: to override a default format, only define its <code translate=\"no\">name</code> and the properties to change.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">formats:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">rss</span>\n      <span class=\"hljs-attr\">filename:</span> <span class=\"hljs-string\">feed</span> <span class=\"hljs-comment\"># `feed.xml` instead of `rss.xml`</span></code></pre>\n<h2 id=\"output-pagetypeformats\">output.pagetypeformats<a class=\"heading-anchor\" href=\"#output-pagetypeformats\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>It’s not required to set <code translate=\"no\">output</code> variable for each page, as Cecil automatically applies the formats defined for each page type (<code translate=\"no\">homepage</code>, <code translate=\"no\">page</code>, <code translate=\"no\">section</code>, <code translate=\"no\">vocabulary</code> and <code translate=\"no\">term</code>).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">pagetypeformats:</span>\n    <span class=\"hljs-attr\">page:</span> <span class=\"hljs-string\">[&lt;format&gt;]</span>\n    <span class=\"hljs-attr\">homepage:</span> <span class=\"hljs-string\">[&lt;format&gt;]</span>\n    <span class=\"hljs-attr\">section:</span> <span class=\"hljs-string\">[&lt;format&gt;]</span>\n    <span class=\"hljs-attr\">vocabulary:</span> <span class=\"hljs-string\">[&lt;format&gt;]</span>\n    <span class=\"hljs-attr\">term:</span> <span class=\"hljs-string\">[&lt;format&gt;]</span></code></pre>\n<p>Several formats can be defined for a single page type. For example, the <code translate=\"no\">section</code> page type can be automatically rendered in HTML and Atom:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">pagetypeformats:</span>\n    <span class=\"hljs-attr\">section:</span> <span class=\"hljs-string\">[html,</span> <span class=\"hljs-string\">atom]</span></code></pre>\n<p>A list replaces the default formats of the page type (and is added to the formats defined by the theme). To add or remove a format instead, use a <a href=\"index.md#lists\">map of booleans</a>:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">pagetypeformats:</span>\n    <span class=\"hljs-attr\">homepage:</span>\n      <span class=\"hljs-attr\">rss:</span> <span class=\"hljs-literal\">true</span>   <span class=\"hljs-comment\"># adds RSS</span>\n      <span class=\"hljs-attr\">atom:</span> <span class=\"hljs-literal\">false</span> <span class=\"hljs-comment\"># removes Atom</span></code></pre>\n<aside class=\"note note-info\"><p>To render a page, <a href=\"../templates/1-lookup-rules.md#lookup-rules\">Cecil looks up a template</a> named <code translate=\"no\">&lt;layout&gt;.&lt;format&gt;.twig</code> (e.g. <code translate=\"no\">page.html.twig</code>).</p></aside>\n<h2 id=\"output-example\">output example<a class=\"heading-anchor\" href=\"#output-example\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">_site</span>\n  <span class=\"hljs-attr\">formats:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">html</span>\n      <span class=\"hljs-attr\">mediatype:</span> <span class=\"hljs-string\">text/html</span>\n      <span class=\"hljs-attr\">filename:</span> <span class=\"hljs-string\">index</span>\n      <span class=\"hljs-attr\">extension:</span> <span class=\"hljs-string\">html</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">atom</span>\n      <span class=\"hljs-attr\">mediatype:</span> <span class=\"hljs-string\">application/atom+xml</span>\n      <span class=\"hljs-attr\">filename:</span> <span class=\"hljs-string\">atom</span>\n      <span class=\"hljs-attr\">extension:</span> <span class=\"hljs-string\">xml</span>\n      <span class=\"hljs-attr\">exclude:</span> <span class=\"hljs-string\">[redirect,</span> <span class=\"hljs-string\">paginated]</span>\n  <span class=\"hljs-attr\">pagetypeformats:</span>\n    <span class=\"hljs-attr\">page:</span> <span class=\"hljs-string\">[html]</span>\n    <span class=\"hljs-attr\">homepage:</span> <span class=\"hljs-string\">[html,</span> <span class=\"hljs-string\">atom]</span>\n    <span class=\"hljs-attr\">section:</span> <span class=\"hljs-string\">[html,</span> <span class=\"hljs-string\">atom]</span>\n    <span class=\"hljs-attr\">vocabulary:</span> <span class=\"hljs-string\">[html]</span>\n    <span class=\"hljs-attr\">term:</span> <span class=\"hljs-string\">[html,</span> <span class=\"hljs-string\">atom]</span></code></pre>\n<h2 id=\"output-postprocessors\">output.postprocessors<a class=\"heading-anchor\" href=\"#output-postprocessors\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Output post processors, indexed by name and run in ascending order of their priority, used to modify the output files after they have been generated.</p>\n<p>Default post processors:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">output:</span>\n  <span class=\"hljs-attr\">postprocessors:</span>\n    <span class=\"hljs-attr\">GeneratorMetaTag:</span> <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Renderer\\PostProcessor\\GeneratorMetaTag,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">10</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">HtmlExcerpt:</span>      <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Renderer\\PostProcessor\\HtmlExcerpt,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">20</span> <span class=\"hljs-string\">}</span>\n    <span class=\"hljs-attr\">MarkdownLink:</span>     <span class=\"hljs-string\">{</span> <span class=\"hljs-attr\">class:</span> <span class=\"hljs-string\">Cecil\\Renderer\\PostProcessor\\MarkdownLink,</span> <span class=\"hljs-attr\">priority:</span> <span class=\"hljs-number\">30</span> <span class=\"hljs-string\">}</span></code></pre>\n<p>A post processor can be disabled by its name (e.g.: <code translate=\"no\">GeneratorMetaTag: false</code>). See <a href=\"../developers/1-extend.md#configuration\">Extensions</a> for the full syntax.</p>\n<aside class=\"note note-tip\"><p>You can extend Cecil capabilities with an <a href=\"../developers/1-extend.md#output-post-processors\">Output post processor</a>.</p></aside>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/cache/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/cache/",
      "title": "Cache",
      "summary": "Assets, templates and translations cache.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Cache\nCache options.\ncache.enabled\nCache is enabled by default (true), but you can disable it with:\ncache:\n  enabled: false\nOr with the shorthand:\ncache: false\nIt’s not recommended to disable the cache for performance reasons.\ncache.dir\nDirectory where cache files are stored (.cache by default).\ncache:\n  dir: '.cache'\nThe cache directory is relative to the site directory, but you can use an absolute path: it can be useful to store the cache in a shared directory.\ncache.assets\nAssets cache options.\ncache.assets.ttl\nTime to live of assets cache in seconds (null by default = no expiration).\ncache:\n  assets:\n    ttl: ~\ncache.assets.remote.ttl\nTime to live of remote assets cache in seconds (7 days by default).\ncache:\n  assets:\n    remote:\n      ttl: 604800 # 7 days\ncache.templates\nDisables templates cache with false (true by default).\ncache:\n  templates: true\nSee templates cache documentation for more details.\ncache.translations\nDisables translations cache with false (true by default).\ncache:\n  translations: true\n",
      "content_html": "<h1>Cache</h1>\n<p>Cache options.</p>\n<h2 id=\"cache-enabled\">cache.enabled<a class=\"heading-anchor\" href=\"#cache-enabled\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Cache is enabled by default (<code translate=\"no\">true</code>), but you can disable it with:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span>\n  <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span></code></pre>\n<p>Or with the shorthand:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span> <span class=\"hljs-literal\">false</span></code></pre>\n<aside class=\"note note-warning\"><p>It’s not recommended to disable the cache for performance reasons.</p></aside>\n<h2 id=\"cache-dir\">cache.dir<a class=\"heading-anchor\" href=\"#cache-dir\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Directory where cache files are stored (<code translate=\"no\">.cache</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span>\n  <span class=\"hljs-attr\">dir:</span> <span class=\"hljs-string\">'.cache'</span></code></pre>\n<aside class=\"note note-info\"><p>The cache directory is relative to the site directory, but you can use an absolute path: it can be useful to store the cache in a shared directory.</p></aside>\n<h2 id=\"cache-assets\">cache.assets<a class=\"heading-anchor\" href=\"#cache-assets\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Assets cache options.</p>\n<h3 id=\"cache-assets-ttl\">cache.assets.ttl<a class=\"heading-anchor\" href=\"#cache-assets-ttl\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Time to live of assets cache in seconds (<code translate=\"no\">null</code> by default = no expiration).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span>\n  <span class=\"hljs-attr\">assets:</span>\n    <span class=\"hljs-attr\">ttl:</span> <span class=\"hljs-string\">~</span></code></pre>\n<h3 id=\"cache-assets-remote-ttl\">cache.assets.remote.ttl<a class=\"heading-anchor\" href=\"#cache-assets-remote-ttl\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Time to live of remote assets cache in seconds (7 days by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span>\n  <span class=\"hljs-attr\">assets:</span>\n    <span class=\"hljs-attr\">remote:</span>\n      <span class=\"hljs-attr\">ttl:</span> <span class=\"hljs-number\">604800</span> <span class=\"hljs-comment\"># 7 days</span></code></pre>\n<h2 id=\"cache-templates\">cache.templates<a class=\"heading-anchor\" href=\"#cache-templates\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Disables templates cache with <code translate=\"no\">false</code> (<code translate=\"no\">true</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span>\n  <span class=\"hljs-attr\">templates:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<aside class=\"note note-info\"><p>See <a href=\"../templates/6-cache.md\">templates cache documentation</a> for more details.</p></aside>\n<h2 id=\"cache-translations\">cache.translations<a class=\"heading-anchor\" href=\"#cache-translations\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Disables translations cache with <code translate=\"no\">false</code> (<code translate=\"no\">true</code> by default).</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">cache:</span>\n  <span class=\"hljs-attr\">translations:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/server/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/server/",
      "title": "Server and optimization",
      "summary": "Local server headers and output optimization.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Server and optimization\nThese options configure the local preview server and the optimization of the generated files.\nServer\nserver.headers\nYou can define custom HTTP headers, used by the local preview server.\nSince version 8.38.0, the headers option has been moved to the server.headers section.\nserver:\n  headers:\n    - path: &lt;path&gt; # Relative path, prefixed with a slash. Supports the `*` wildcard.\n      headers:\n        - key: &lt;key&gt;\n          value: \"&lt;value&gt;\"\nIt’s useful to test custom Content Security Policy or Cache-Control.\nExample:\nserver:\n  headers:\n    - path: \/*\n      headers:\n        - key: X-Frame-Options\n          value: \"SAMEORIGIN\"\n        - key: X-XSS-Protection\n          value: \"1; mode=block\"\n        - key: X-Content-Type-Options\n          value: \"nosniff\"\n        - key: Content-Security-Policy\n          value: \"default-src 'self'; object-src 'self'; img-src 'self'\"\n        - key: Strict-Transport-Security\n          value: \"max-age=31536000; includeSubDomains; preload\"\n    - path: \/assets\/*\n      headers:\n        - key: Cache-Control\n          value: \"public, max-age=31536000\"\n    - path: \/foo.html\n      headers:\n        - key: Foo\n          value: \"bar\"\n\nOptimize\nThe optimization options enable compression of output files: HTML, CSS, JavaScript and images.\noptimize:\n  enabled: false     # enables files optimization (`false` by default)\n  html:\n    enabled: true    # enables HTML files optimization\n    ext: [html, htm]   # supported files extensions\n  css:\n    enabled: true    # enables CSS files optimization\n    ext: [css]         # supported files extensions\n  js:\n    enabled: true    # enables JavaScript files optimization\n    ext: [js]          # supported files extensions\n  images:\n    enabled: true    # enables images files optimization\n    ext: [jpeg, jpg, png, gif, webp, svg, avif] # supported files extensions\nThis option is disabled by default and can be enabled via:\noptimize: true\nOnce the global option is enabled, the 4 file types will be processed.\nIt is possible to disable each of them via enabled: false and change the processed file extensions via ext.\nIt is also possible to enable (or disable) this option through CLI when using the build and serve commands, with the --optimize (or --no-optimize) option.\nImages compressor will use these binaries if they are present in the system: JpegOptim, Optipng, Pngquant 2, SVGO, Gifsicle, cwebp and avifenc.\n",
      "content_html": "<h1>Server and optimization</h1>\n<p>These options configure the local preview server and the optimization of the generated files.</p>\n<h2 id=\"server\">Server<a class=\"heading-anchor\" href=\"#server\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<h3 id=\"server-headers\">server.headers<a class=\"heading-anchor\" href=\"#server-headers\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>You can define custom <a href=\"https://developer.mozilla.org/docs/Glossary/Response_header\" target=\"_blank\" rel=\"noopener noreferrer\">HTTP headers</a>, used by the local preview server.</p>\n<aside class=\"note note-warning\"><p>Since version <ins>8.38.0</ins>, the <code translate=\"no\">headers</code> option has been moved to the <code translate=\"no\">server.headers</code> section.</p></aside>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">server:</span>\n  <span class=\"hljs-attr\">headers:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">&lt;path&gt;</span> <span class=\"hljs-comment\"># Relative path, prefixed with a slash. Supports the `*` wildcard.</span>\n      <span class=\"hljs-attr\">headers:</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">&lt;key&gt;</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"&lt;value&gt;\"</span></code></pre>\n<aside class=\"note note-tip\"><p>It’s useful to test custom <a href=\"https://developer.mozilla.org/docs/Web/HTTP/CSP\" target=\"_blank\" rel=\"noopener noreferrer\">Content Security Policy</a> or <a href=\"https://developer.mozilla.org/docs/Web/HTTP/Headers/Cache-Control\" target=\"_blank\" rel=\"noopener noreferrer\">Cache-Control</a>.</p></aside>\n<p><em>Example:</em></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">server:</span>\n  <span class=\"hljs-attr\">headers:</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">/*</span>\n      <span class=\"hljs-attr\">headers:</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">X-Frame-Options</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"SAMEORIGIN\"</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">X-XSS-Protection</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"1; mode=block\"</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">X-Content-Type-Options</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"nosniff\"</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">Content-Security-Policy</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"default-src 'self'; object-src 'self'; img-src 'self'\"</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">Strict-Transport-Security</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"max-age=31536000; includeSubDomains; preload\"</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">/assets/*</span>\n      <span class=\"hljs-attr\">headers:</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">Cache-Control</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"public, max-age=31536000\"</span>\n    <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">/foo.html</span>\n      <span class=\"hljs-attr\">headers:</span>\n        <span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">Foo</span>\n          <span class=\"hljs-attr\">value:</span> <span class=\"hljs-string\">\"bar\"</span></code></pre>\n<hr>\n<h2 id=\"optimize\">Optimize<a class=\"heading-anchor\" href=\"#optimize\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The optimization options enable compression of output files: HTML, CSS, JavaScript and images.</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">optimize:</span>\n  <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">false</span>     <span class=\"hljs-comment\"># enables files optimization (`false` by default)</span>\n  <span class=\"hljs-attr\">html:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># enables HTML files optimization</span>\n    <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[html,</span> <span class=\"hljs-string\">htm]</span>   <span class=\"hljs-comment\"># supported files extensions</span>\n  <span class=\"hljs-attr\">css:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># enables CSS files optimization</span>\n    <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[css]</span>         <span class=\"hljs-comment\"># supported files extensions</span>\n  <span class=\"hljs-attr\">js:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># enables JavaScript files optimization</span>\n    <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[js]</span>          <span class=\"hljs-comment\"># supported files extensions</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>    <span class=\"hljs-comment\"># enables images files optimization</span>\n    <span class=\"hljs-attr\">ext:</span> <span class=\"hljs-string\">[jpeg,</span> <span class=\"hljs-string\">jpg,</span> <span class=\"hljs-string\">png,</span> <span class=\"hljs-string\">gif,</span> <span class=\"hljs-string\">webp,</span> <span class=\"hljs-string\">svg,</span> <span class=\"hljs-string\">avif]</span> <span class=\"hljs-comment\"># supported files extensions</span></code></pre>\n<p>This option is disabled by default and can be enabled via:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">optimize:</span> <span class=\"hljs-literal\">true</span></code></pre>\n<p>Once the global option is enabled, the 4 file types will be processed.<br>\nIt is possible to disable each of them via <code translate=\"no\">enabled: false</code> and change the processed file extensions via <code translate=\"no\">ext</code>.</p>\n<aside class=\"note note-tip\"><p>It is also possible to enable (or disable) this option through CLI when using the <code translate=\"no\">build</code> and <code translate=\"no\">serve</code> commands, with the <code translate=\"no\">--optimize</code> (or <code translate=\"no\">--no-optimize</code>) option.</p></aside>\n<aside class=\"note note-important\"><p><strong>Images</strong> compressor will use these binaries if they are present in the system: <a href=\"https://github.com/tjko/jpegoptim\" target=\"_blank\" rel=\"noopener noreferrer\">JpegOptim</a>, <a href=\"http://optipng.sourceforge.net/\" target=\"_blank\" rel=\"noopener noreferrer\">Optipng</a>, <a href=\"https://pngquant.org/\" target=\"_blank\" rel=\"noopener noreferrer\">Pngquant 2</a>, <a href=\"https://github.com/svg/svgo\" target=\"_blank\" rel=\"noopener noreferrer\">SVGO</a>, <a href=\"http://www.lcdf.org/gifsicle/\" target=\"_blank\" rel=\"noopener noreferrer\">Gifsicle</a>, <a href=\"https://developers.google.com/speed/webp/docs/cwebp\" target=\"_blank\" rel=\"noopener noreferrer\">cwebp</a> and <a href=\"https://github.com/AOMediaCodec/libavif\" target=\"_blank\" rel=\"noopener noreferrer\">avifenc</a>.</p></aside>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/override/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/override/",
      "title": "Override configuration",
      "summary": "Override the configuration with environment variables or a CLI option.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-11-04T00:00:00+00:00","content_text": "Override configuration\nThe configuration can be overridden without editing the configuration file, through environment variables or a CLI option.\nEnvironment variables\nThe configuration can be overridden through environment variables.\nAt startup, Cecil also attempts to load a .env file from the current site path (the current working directory, or the &lt;path&gt; argument if provided).\n\nIf the .env file does not exist, Cecil continues normally.\nVariables already defined by the shell\/system are preserved.\n\nEach environment variable name must be prefixed with CECIL_ and the configuration key must be set in uppercase. Nested keys are separated with _ (e.g.: CECIL_PAGES_DIR sets pages.dir), so keys that contain an underscore can't be set this way. Boolean-like values (true\/false, 1\/0, yes\/no, on\/off) are converted to booleans, and numeric values are converted to numbers when the option expects a number (e.g.: CECIL_ASSETS_IMAGES_QUALITY=80).\nFor example, the following command sets the website’s baseurl:\nexport CECIL_BASEURL=\"https:\/\/example.com\/\"\nYou can store the same value in a .env file at your project root:\nCECIL_BASEURL=\"https:\/\/example.com\/\"\nCECIL_TITLE=\"My Cecil site\"\nCLI option\nYou can combine multiple configuration files with the --config option of the build and serve commands:\nphp cecil.phar build --config config-1.yml,config-2.yml\nThe files are merged from left to right, after the main configuration file: a scalar value is replaced by the last one defined, maps are merged key by key, lists of values are replaced (or adjusted with a map of booleans), output formats are merged by name and other lists of entries (e.g. menus) are concatenated.\n",
      "content_html": "<h1>Override configuration</h1>\n<p>The configuration can be overridden without editing the configuration file, through environment variables or a CLI option.</p>\n<h2 id=\"environment-variables\">Environment variables<a class=\"heading-anchor\" href=\"#environment-variables\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The configuration can be overridden through <a href=\"https://en.wikipedia.org/wiki/Environment_variable\" target=\"_blank\" rel=\"noopener noreferrer\">environment variables</a>.</p>\n<p>At startup, Cecil also attempts to load a <code translate=\"no\">.env</code> file from the current site path (the current working directory, or the <code translate=\"no\">&lt;path&gt;</code> argument if provided).</p>\n<ul>\n<li>If the <code translate=\"no\">.env</code> file does not exist, Cecil continues normally.</li>\n<li>Variables already defined by the shell/system are preserved.</li>\n</ul>\n<p>Each environment variable name must be prefixed with <code translate=\"no\">CECIL_</code> and the configuration key must be set in uppercase. Nested keys are separated with <code translate=\"no\">_</code> (e.g.: <code translate=\"no\">CECIL_PAGES_DIR</code> sets <code translate=\"no\">pages.dir</code>), so keys that contain an underscore can't be set this way. Boolean-like values (<code translate=\"no\">true</code>/<code translate=\"no\">false</code>, <code translate=\"no\">1</code>/<code translate=\"no\">0</code>, <code translate=\"no\">yes</code>/<code translate=\"no\">no</code>, <code translate=\"no\">on</code>/<code translate=\"no\">off</code>) are converted to booleans, and numeric values are converted to numbers when the option expects a number (e.g.: <code translate=\"no\">CECIL_ASSETS_IMAGES_QUALITY=80</code>).</p>\n<p>For example, the following command sets the website’s <code translate=\"no\">baseurl</code>:</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\"><span class=\"hljs-built_in\">export</span> CECIL_BASEURL=<span class=\"hljs-string\">\"https://example.com/\"</span></code></pre>\n<p>You can store the same value in a <code translate=\"no\">.env</code> file at your project root:</p>\n<pre data-lang=\"dotenv\"><code class=\"language-dotenv\" translate=\"no\">CECIL_BASEURL=\"https://example.com/\"\nCECIL_TITLE=\"My Cecil site\"</code></pre>\n<h2 id=\"cli-option\">CLI option<a class=\"heading-anchor\" href=\"#cli-option\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>You can combine multiple configuration files with the <code translate=\"no\">--config</code> option of the <code translate=\"no\">build</code> and <code translate=\"no\">serve</code> commands:</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">php cecil.phar build --config config-1.yml,config-2.yml</code></pre>\n<p>The files are merged from left to right, after the main configuration file: a scalar value is replaced by the last one defined, maps are merged key by key, <a href=\"index.md#lists\">lists of values</a> are replaced (or adjusted with a map of booleans), output formats are merged by <code translate=\"no\">name</code> and other lists of entries (e.g. menus) are concatenated.</p>\n<hr>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/configuration/locale-codes/",
      "url": "https://cloudflare.cecil.app/documentation/configuration/locale-codes/",
      "title": "Locale codes",
      "summary": "List of available locale codes to use with the languages option.",
      "date_published": "2020-12-19T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Locale codes\nAvailable locale codes (language_COUNTRY) used by the languages option.\nList of locale codes\n\n\n\nLocale\nCode\n\n\n\n\nAlbanian (Albania)\nsq_AL\n\n\nAlbanian\nsq\n\n\nArabic (Algeria)\nar_DZ\n\n\nArabic (Bahrain)\nar_BH\n\n\nArabic (Egypt)\nar_EG\n\n\nArabic (Iraq)\nar_IQ\n\n\nArabic (Jordan)\nar_JO\n\n\nArabic (Kuwait)\nar_KW\n\n\nArabic (Lebanon)\nar_LB\n\n\nArabic (Libya)\nar_LY\n\n\nArabic (Morocco)\nar_MA\n\n\nArabic (Oman)\nar_OM\n\n\nArabic (Qatar)\nar_QA\n\n\nArabic (Saudi Arabia)\nar_SA\n\n\nArabic (Sudan)\nar_SD\n\n\nArabic (Syria)\nar_SY\n\n\nArabic (Tunisia)\nar_TN\n\n\nArabic (United Arab Emirates)\nar_AE\n\n\nArabic (Yemen)\nar_YE\n\n\nArabic\nar\n\n\nBelarusian (Belarus)\nbe_BY\n\n\nBelarusian\nbe\n\n\nBulgarian (Bulgaria)\nbg_BG\n\n\nBulgarian\nbg\n\n\nCatalan (Spain)\nca_ES\n\n\nCatalan\nca\n\n\nChinese (China)\nzh_CN\n\n\nChinese (Hong Kong)\nzh_HK\n\n\nChinese (Singapore)\nzh_SG\n\n\nChinese (Taiwan)\nzh_TW\n\n\nChinese\nzh\n\n\nCroatian (Croatia)\nhr_HR\n\n\nCroatian\nhr\n\n\nCzech (Czech Republic)\ncs_CZ\n\n\nCzech\ncs\n\n\nDanish (Denmark)\nda_DK\n\n\nDanish\nda\n\n\nDutch (Belgium)\nnl_BE\n\n\nDutch (Netherlands)\nnl_NL\n\n\nDutch\nnl\n\n\nEnglish (Australia)\nen_AU\n\n\nEnglish (Canada)\nen_CA\n\n\nEnglish (India)\nen_IN\n\n\nEnglish (Ireland)\nen_IE\n\n\nEnglish (Malta)\nen_MT\n\n\nEnglish (New Zealand)\nen_NZ\n\n\nEnglish (Philippines)\nen_PH\n\n\nEnglish (Singapore)\nen_SG\n\n\nEnglish (South Africa)\nen_ZA\n\n\nEnglish (United Kingdom)\nen_GB\n\n\nEnglish (United States)\nen_US\n\n\nEnglish\nen\n\n\nEstonian (Estonia)\net_EE\n\n\nEstonian\net\n\n\nFinnish (Finland)\nfi_FI\n\n\nFinnish\nfi\n\n\nFrench (Belgium)\nfr_BE\n\n\nFrench (Canada)\nfr_CA\n\n\nFrench (France)\nfr_FR\n\n\nFrench (Luxembourg)\nfr_LU\n\n\nFrench (Switzerland)\nfr_CH\n\n\nFrench\nfr\n\n\nGerman (Austria)\nde_AT\n\n\nGerman (Germany)\nde_DE\n\n\nGerman (Luxembourg)\nde_LU\n\n\nGerman (Switzerland)\nde_CH\n\n\nGerman\nde\n\n\nGreek (Cyprus)\nel_CY\n\n\nGreek (Greece)\nel_GR\n\n\nGreek\nel\n\n\nHebrew (Israel)\nhe_IL\n\n\nHebrew (Israel, legacy code)\niw_IL\n\n\nHebrew\nhe\n\n\nHebrew (legacy code)\niw\n\n\nHindi (India)\nhi_IN\n\n\nHindi\nhi\n\n\nHungarian (Hungary)\nhu_HU\n\n\nHungarian\nhu\n\n\nIcelandic (Iceland)\nis_IS\n\n\nIcelandic\nis\n\n\nIndonesian (Indonesia)\nid_ID\n\n\nIndonesian (Indonesia, legacy code)\nin_ID\n\n\nIndonesian\nid\n\n\nIndonesian (legacy code)\nin\n\n\nIrish (Ireland)\nga_IE\n\n\nIrish\nga\n\n\nItalian (Italy)\nit_IT\n\n\nItalian (Switzerland)\nit_CH\n\n\nItalian\nit\n\n\nJapanese (Japan)\nja_JP\n\n\nJapanese (Japan, JP)\nja_JP_JP\n\n\nJapanese\nja\n\n\nKorean (South Korea)\nko_KR\n\n\nKorean\nko\n\n\nLatvian (Latvia)\nlv_LV\n\n\nLatvian\nlv\n\n\nLithuanian (Lithuania)\nlt_LT\n\n\nLithuanian\nlt\n\n\nMacedonian (North Macedonia)\nmk_MK\n\n\nMacedonian\nmk\n\n\nMalay (Malaysia)\nms_MY\n\n\nMalay\nms\n\n\nMaltese (Malta)\nmt_MT\n\n\nMaltese\nmt\n\n\nNorwegian (Norway)\nno_NO\n\n\nNorwegian (Norway, Nynorsk)\nno_NO_NY\n\n\nNorwegian\nno\n\n\nPolish (Poland)\npl_PL\n\n\nPolish\npl\n\n\nPortuguese (Brazil)\npt_BR\n\n\nPortuguese (Portugal)\npt_PT\n\n\nPortuguese\npt\n\n\nRomanian (Romania)\nro_RO\n\n\nRomanian\nro\n\n\nRussian (Russia)\nru_RU\n\n\nRussian\nru\n\n\nSerbian (Bosnia and Herzegovina)\nsr_BA\n\n\nSerbian (Montenegro)\nsr_ME\n\n\nSerbian (Serbia)\nsr_RS\n\n\nSerbian (Serbia and Montenegro)\nsr_CS\n\n\nSerbian\nsr\n\n\nSlovak (Slovakia)\nsk_SK\n\n\nSlovak\nsk\n\n\nSlovenian (Slovenia)\nsl_SI\n\n\nSlovenian\nsl\n\n\nSpanish (Argentina)\nes_AR\n\n\nSpanish (Bolivia)\nes_BO\n\n\nSpanish (Chile)\nes_CL\n\n\nSpanish (Colombia)\nes_CO\n\n\nSpanish (Costa Rica)\nes_CR\n\n\nSpanish (Dominican Republic)\nes_DO\n\n\nSpanish (Ecuador)\nes_EC\n\n\nSpanish (El Salvador)\nes_SV\n\n\nSpanish (Guatemala)\nes_GT\n\n\nSpanish (Honduras)\nes_HN\n\n\nSpanish (Mexico)\nes_MX\n\n\nSpanish (Nicaragua)\nes_NI\n\n\nSpanish (Panama)\nes_PA\n\n\nSpanish (Paraguay)\nes_PY\n\n\nSpanish (Peru)\nes_PE\n\n\nSpanish (Puerto Rico)\nes_PR\n\n\nSpanish (Spain)\nes_ES\n\n\nSpanish (United States)\nes_US\n\n\nSpanish (Uruguay)\nes_UY\n\n\nSpanish (Venezuela)\nes_VE\n\n\nSpanish\nes\n\n\nSwedish (Sweden)\nsv_SE\n\n\nSwedish\nsv\n\n\nThai (Thailand)\nth_TH\n\n\nThai (Thailand, TH)\nth_TH_TH\n\n\nThai\nth\n\n\nTurkish (Turkey)\ntr_TR\n\n\nTurkish\ntr\n\n\nUkrainian (Ukraine)\nuk_UA\n\n\nUkrainian\nuk\n\n\nVietnamese (Vietnam)\nvi_VN\n\n\nVietnamese\nvi\n\n\n\n",
      "content_html": "<h1>Locale codes</h1>\n<p>Available locale codes (<code translate=\"no\">language_COUNTRY</code>) used by the <a href=\"2-languages.md#languages\"><code translate=\"no\">languages</code></a> option.</p>\n<h2 id=\"list-of-locale-codes\">List of locale codes<a class=\"heading-anchor\" href=\"#list-of-locale-codes\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<table>\n<thead>\n<tr>\n<th>Locale</th>\n<th>Code</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Albanian (Albania)</td>\n<td>sq_AL</td>\n</tr>\n<tr>\n<td>Albanian</td>\n<td>sq</td>\n</tr>\n<tr>\n<td>Arabic (Algeria)</td>\n<td>ar_DZ</td>\n</tr>\n<tr>\n<td>Arabic (Bahrain)</td>\n<td>ar_BH</td>\n</tr>\n<tr>\n<td>Arabic (Egypt)</td>\n<td>ar_EG</td>\n</tr>\n<tr>\n<td>Arabic (Iraq)</td>\n<td>ar_IQ</td>\n</tr>\n<tr>\n<td>Arabic (Jordan)</td>\n<td>ar_JO</td>\n</tr>\n<tr>\n<td>Arabic (Kuwait)</td>\n<td>ar_KW</td>\n</tr>\n<tr>\n<td>Arabic (Lebanon)</td>\n<td>ar_LB</td>\n</tr>\n<tr>\n<td>Arabic (Libya)</td>\n<td>ar_LY</td>\n</tr>\n<tr>\n<td>Arabic (Morocco)</td>\n<td>ar_MA</td>\n</tr>\n<tr>\n<td>Arabic (Oman)</td>\n<td>ar_OM</td>\n</tr>\n<tr>\n<td>Arabic (Qatar)</td>\n<td>ar_QA</td>\n</tr>\n<tr>\n<td>Arabic (Saudi Arabia)</td>\n<td>ar_SA</td>\n</tr>\n<tr>\n<td>Arabic (Sudan)</td>\n<td>ar_SD</td>\n</tr>\n<tr>\n<td>Arabic (Syria)</td>\n<td>ar_SY</td>\n</tr>\n<tr>\n<td>Arabic (Tunisia)</td>\n<td>ar_TN</td>\n</tr>\n<tr>\n<td>Arabic (United Arab Emirates)</td>\n<td>ar_AE</td>\n</tr>\n<tr>\n<td>Arabic (Yemen)</td>\n<td>ar_YE</td>\n</tr>\n<tr>\n<td>Arabic</td>\n<td>ar</td>\n</tr>\n<tr>\n<td>Belarusian (Belarus)</td>\n<td>be_BY</td>\n</tr>\n<tr>\n<td>Belarusian</td>\n<td>be</td>\n</tr>\n<tr>\n<td>Bulgarian (Bulgaria)</td>\n<td>bg_BG</td>\n</tr>\n<tr>\n<td>Bulgarian</td>\n<td>bg</td>\n</tr>\n<tr>\n<td>Catalan (Spain)</td>\n<td>ca_ES</td>\n</tr>\n<tr>\n<td>Catalan</td>\n<td>ca</td>\n</tr>\n<tr>\n<td>Chinese (China)</td>\n<td>zh_CN</td>\n</tr>\n<tr>\n<td>Chinese (Hong Kong)</td>\n<td>zh_HK</td>\n</tr>\n<tr>\n<td>Chinese (Singapore)</td>\n<td>zh_SG</td>\n</tr>\n<tr>\n<td>Chinese (Taiwan)</td>\n<td>zh_TW</td>\n</tr>\n<tr>\n<td>Chinese</td>\n<td>zh</td>\n</tr>\n<tr>\n<td>Croatian (Croatia)</td>\n<td>hr_HR</td>\n</tr>\n<tr>\n<td>Croatian</td>\n<td>hr</td>\n</tr>\n<tr>\n<td>Czech (Czech Republic)</td>\n<td>cs_CZ</td>\n</tr>\n<tr>\n<td>Czech</td>\n<td>cs</td>\n</tr>\n<tr>\n<td>Danish (Denmark)</td>\n<td>da_DK</td>\n</tr>\n<tr>\n<td>Danish</td>\n<td>da</td>\n</tr>\n<tr>\n<td>Dutch (Belgium)</td>\n<td>nl_BE</td>\n</tr>\n<tr>\n<td>Dutch (Netherlands)</td>\n<td>nl_NL</td>\n</tr>\n<tr>\n<td>Dutch</td>\n<td>nl</td>\n</tr>\n<tr>\n<td>English (Australia)</td>\n<td>en_AU</td>\n</tr>\n<tr>\n<td>English (Canada)</td>\n<td>en_CA</td>\n</tr>\n<tr>\n<td>English (India)</td>\n<td>en_IN</td>\n</tr>\n<tr>\n<td>English (Ireland)</td>\n<td>en_IE</td>\n</tr>\n<tr>\n<td>English (Malta)</td>\n<td>en_MT</td>\n</tr>\n<tr>\n<td>English (New Zealand)</td>\n<td>en_NZ</td>\n</tr>\n<tr>\n<td>English (Philippines)</td>\n<td>en_PH</td>\n</tr>\n<tr>\n<td>English (Singapore)</td>\n<td>en_SG</td>\n</tr>\n<tr>\n<td>English (South Africa)</td>\n<td>en_ZA</td>\n</tr>\n<tr>\n<td>English (United Kingdom)</td>\n<td>en_GB</td>\n</tr>\n<tr>\n<td>English (United States)</td>\n<td>en_US</td>\n</tr>\n<tr>\n<td>English</td>\n<td>en</td>\n</tr>\n<tr>\n<td>Estonian (Estonia)</td>\n<td>et_EE</td>\n</tr>\n<tr>\n<td>Estonian</td>\n<td>et</td>\n</tr>\n<tr>\n<td>Finnish (Finland)</td>\n<td>fi_FI</td>\n</tr>\n<tr>\n<td>Finnish</td>\n<td>fi</td>\n</tr>\n<tr>\n<td>French (Belgium)</td>\n<td>fr_BE</td>\n</tr>\n<tr>\n<td>French (Canada)</td>\n<td>fr_CA</td>\n</tr>\n<tr>\n<td>French (France)</td>\n<td>fr_FR</td>\n</tr>\n<tr>\n<td>French (Luxembourg)</td>\n<td>fr_LU</td>\n</tr>\n<tr>\n<td>French (Switzerland)</td>\n<td>fr_CH</td>\n</tr>\n<tr>\n<td>French</td>\n<td>fr</td>\n</tr>\n<tr>\n<td>German (Austria)</td>\n<td>de_AT</td>\n</tr>\n<tr>\n<td>German (Germany)</td>\n<td>de_DE</td>\n</tr>\n<tr>\n<td>German (Luxembourg)</td>\n<td>de_LU</td>\n</tr>\n<tr>\n<td>German (Switzerland)</td>\n<td>de_CH</td>\n</tr>\n<tr>\n<td>German</td>\n<td>de</td>\n</tr>\n<tr>\n<td>Greek (Cyprus)</td>\n<td>el_CY</td>\n</tr>\n<tr>\n<td>Greek (Greece)</td>\n<td>el_GR</td>\n</tr>\n<tr>\n<td>Greek</td>\n<td>el</td>\n</tr>\n<tr>\n<td>Hebrew (Israel)</td>\n<td>he_IL</td>\n</tr>\n<tr>\n<td>Hebrew (Israel, legacy code)</td>\n<td>iw_IL</td>\n</tr>\n<tr>\n<td>Hebrew</td>\n<td>he</td>\n</tr>\n<tr>\n<td>Hebrew (legacy code)</td>\n<td>iw</td>\n</tr>\n<tr>\n<td>Hindi (India)</td>\n<td>hi_IN</td>\n</tr>\n<tr>\n<td>Hindi</td>\n<td>hi</td>\n</tr>\n<tr>\n<td>Hungarian (Hungary)</td>\n<td>hu_HU</td>\n</tr>\n<tr>\n<td>Hungarian</td>\n<td>hu</td>\n</tr>\n<tr>\n<td>Icelandic (Iceland)</td>\n<td>is_IS</td>\n</tr>\n<tr>\n<td>Icelandic</td>\n<td>is</td>\n</tr>\n<tr>\n<td>Indonesian (Indonesia)</td>\n<td>id_ID</td>\n</tr>\n<tr>\n<td>Indonesian (Indonesia, legacy code)</td>\n<td>in_ID</td>\n</tr>\n<tr>\n<td>Indonesian</td>\n<td>id</td>\n</tr>\n<tr>\n<td>Indonesian (legacy code)</td>\n<td>in</td>\n</tr>\n<tr>\n<td>Irish (Ireland)</td>\n<td>ga_IE</td>\n</tr>\n<tr>\n<td>Irish</td>\n<td>ga</td>\n</tr>\n<tr>\n<td>Italian (Italy)</td>\n<td>it_IT</td>\n</tr>\n<tr>\n<td>Italian (Switzerland)</td>\n<td>it_CH</td>\n</tr>\n<tr>\n<td>Italian</td>\n<td>it</td>\n</tr>\n<tr>\n<td>Japanese (Japan)</td>\n<td>ja_JP</td>\n</tr>\n<tr>\n<td>Japanese (Japan, JP)</td>\n<td>ja_JP_JP</td>\n</tr>\n<tr>\n<td>Japanese</td>\n<td>ja</td>\n</tr>\n<tr>\n<td>Korean (South Korea)</td>\n<td>ko_KR</td>\n</tr>\n<tr>\n<td>Korean</td>\n<td>ko</td>\n</tr>\n<tr>\n<td>Latvian (Latvia)</td>\n<td>lv_LV</td>\n</tr>\n<tr>\n<td>Latvian</td>\n<td>lv</td>\n</tr>\n<tr>\n<td>Lithuanian (Lithuania)</td>\n<td>lt_LT</td>\n</tr>\n<tr>\n<td>Lithuanian</td>\n<td>lt</td>\n</tr>\n<tr>\n<td>Macedonian (North Macedonia)</td>\n<td>mk_MK</td>\n</tr>\n<tr>\n<td>Macedonian</td>\n<td>mk</td>\n</tr>\n<tr>\n<td>Malay (Malaysia)</td>\n<td>ms_MY</td>\n</tr>\n<tr>\n<td>Malay</td>\n<td>ms</td>\n</tr>\n<tr>\n<td>Maltese (Malta)</td>\n<td>mt_MT</td>\n</tr>\n<tr>\n<td>Maltese</td>\n<td>mt</td>\n</tr>\n<tr>\n<td>Norwegian (Norway)</td>\n<td>no_NO</td>\n</tr>\n<tr>\n<td>Norwegian (Norway, Nynorsk)</td>\n<td>no_NO_NY</td>\n</tr>\n<tr>\n<td>Norwegian</td>\n<td>no</td>\n</tr>\n<tr>\n<td>Polish (Poland)</td>\n<td>pl_PL</td>\n</tr>\n<tr>\n<td>Polish</td>\n<td>pl</td>\n</tr>\n<tr>\n<td>Portuguese (Brazil)</td>\n<td>pt_BR</td>\n</tr>\n<tr>\n<td>Portuguese (Portugal)</td>\n<td>pt_PT</td>\n</tr>\n<tr>\n<td>Portuguese</td>\n<td>pt</td>\n</tr>\n<tr>\n<td>Romanian (Romania)</td>\n<td>ro_RO</td>\n</tr>\n<tr>\n<td>Romanian</td>\n<td>ro</td>\n</tr>\n<tr>\n<td>Russian (Russia)</td>\n<td>ru_RU</td>\n</tr>\n<tr>\n<td>Russian</td>\n<td>ru</td>\n</tr>\n<tr>\n<td>Serbian (Bosnia and Herzegovina)</td>\n<td>sr_BA</td>\n</tr>\n<tr>\n<td>Serbian (Montenegro)</td>\n<td>sr_ME</td>\n</tr>\n<tr>\n<td>Serbian (Serbia)</td>\n<td>sr_RS</td>\n</tr>\n<tr>\n<td>Serbian (Serbia and Montenegro)</td>\n<td>sr_CS</td>\n</tr>\n<tr>\n<td>Serbian</td>\n<td>sr</td>\n</tr>\n<tr>\n<td>Slovak (Slovakia)</td>\n<td>sk_SK</td>\n</tr>\n<tr>\n<td>Slovak</td>\n<td>sk</td>\n</tr>\n<tr>\n<td>Slovenian (Slovenia)</td>\n<td>sl_SI</td>\n</tr>\n<tr>\n<td>Slovenian</td>\n<td>sl</td>\n</tr>\n<tr>\n<td>Spanish (Argentina)</td>\n<td>es_AR</td>\n</tr>\n<tr>\n<td>Spanish (Bolivia)</td>\n<td>es_BO</td>\n</tr>\n<tr>\n<td>Spanish (Chile)</td>\n<td>es_CL</td>\n</tr>\n<tr>\n<td>Spanish (Colombia)</td>\n<td>es_CO</td>\n</tr>\n<tr>\n<td>Spanish (Costa Rica)</td>\n<td>es_CR</td>\n</tr>\n<tr>\n<td>Spanish (Dominican Republic)</td>\n<td>es_DO</td>\n</tr>\n<tr>\n<td>Spanish (Ecuador)</td>\n<td>es_EC</td>\n</tr>\n<tr>\n<td>Spanish (El Salvador)</td>\n<td>es_SV</td>\n</tr>\n<tr>\n<td>Spanish (Guatemala)</td>\n<td>es_GT</td>\n</tr>\n<tr>\n<td>Spanish (Honduras)</td>\n<td>es_HN</td>\n</tr>\n<tr>\n<td>Spanish (Mexico)</td>\n<td>es_MX</td>\n</tr>\n<tr>\n<td>Spanish (Nicaragua)</td>\n<td>es_NI</td>\n</tr>\n<tr>\n<td>Spanish (Panama)</td>\n<td>es_PA</td>\n</tr>\n<tr>\n<td>Spanish (Paraguay)</td>\n<td>es_PY</td>\n</tr>\n<tr>\n<td>Spanish (Peru)</td>\n<td>es_PE</td>\n</tr>\n<tr>\n<td>Spanish (Puerto Rico)</td>\n<td>es_PR</td>\n</tr>\n<tr>\n<td>Spanish (Spain)</td>\n<td>es_ES</td>\n</tr>\n<tr>\n<td>Spanish (United States)</td>\n<td>es_US</td>\n</tr>\n<tr>\n<td>Spanish (Uruguay)</td>\n<td>es_UY</td>\n</tr>\n<tr>\n<td>Spanish (Venezuela)</td>\n<td>es_VE</td>\n</tr>\n<tr>\n<td>Spanish</td>\n<td>es</td>\n</tr>\n<tr>\n<td>Swedish (Sweden)</td>\n<td>sv_SE</td>\n</tr>\n<tr>\n<td>Swedish</td>\n<td>sv</td>\n</tr>\n<tr>\n<td>Thai (Thailand)</td>\n<td>th_TH</td>\n</tr>\n<tr>\n<td>Thai (Thailand, TH)</td>\n<td>th_TH_TH</td>\n</tr>\n<tr>\n<td>Thai</td>\n<td>th</td>\n</tr>\n<tr>\n<td>Turkish (Turkey)</td>\n<td>tr_TR</td>\n</tr>\n<tr>\n<td>Turkish</td>\n<td>tr</td>\n</tr>\n<tr>\n<td>Ukrainian (Ukraine)</td>\n<td>uk_UA</td>\n</tr>\n<tr>\n<td>Ukrainian</td>\n<td>uk</td>\n</tr>\n<tr>\n<td>Vietnamese (Vietnam)</td>\n<td>vi_VN</td>\n</tr>\n<tr>\n<td>Vietnamese</td>\n<td>vi</td>\n</tr>\n</tbody>\n</table>\n<hr>",
      "language": "en"
    }
  ]
}
