{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Cecil - Content",
  "home_page_url": "https://cloudflare.cecil.app/documentation/content/",
  "feed_url": "https://cloudflare.cecil.app/documentation/content/feed.json",
  "description": "Create and organize your content: pages, front matter, Markdown, multilingual and dynamic content.",
  "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/content/pages/",
      "url": "https://cloudflare.cecil.app/documentation/content/pages/",
      "title": "Pages and sections",
      "summary": "Anatomy of a page, file prefix, sections, sub-sections and home page.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Pages and sections\nA page is a file made up of a front matter and a body.\nPages are files stored in the pages\/ directory, with one of the following extensions: md, markdown, mdown, mkdn, mkd, text or txt (see pages.ext).\nA README.md file is handled as an index.md file (e.g.: blog\/README.md is the index of the blog Section).\nFront matter\nThe front matter is a collection of variables (in key\/value format) surrounded by ---.\nExample:\n---\ntitle: \"The title\"\ndate: 2019-02-21\ntags: [tag 1, tag 2]\ncustomvar: \"Value of customvar\"\n---\nYou can also use &lt;!-- --&gt; or +++ as separator.\nBody\nThe body is the main content of a page; it can be written in Markdown or in plain text.\nExample:\n# Header\n\n[toc]\n\n## Sub-Header 1\n\nLorem ipsum dolor [sit amet](https:\/\/example.com), consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n&lt;!-- excerpt --&gt;\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n## Sub-Header 2\n\n![Description](\/image.jpg \"Title\")\n\n## Sub-Header 3\n\n:::tip\nThis is advice.\n:::\nFile prefix\nThe filename can contain a prefix to define date or weight variables of the page (used by sortby).\nDefault prefix separators: _ and -.\nYou can customize them with the pages.prefix.separator option.\ndate\nThe date prefix is used to set the date of the page, and must be a valid date format (i.e.: YYYY-MM-DD).\nExample:\nIn 2019-04-23_My blog post.md:\n\nthe prefix is 2019-04-23\nthe date of the page is 2019-04-23\nthe title of the page is My blog post\n\nweight\nThe weight prefix is used to set the sort order of the page, and must be a valid integer value.\nExample:\nIn 1_The first project.md:\n\nthe prefix is 1\nthe weight of the page is 1\nthe title of the page is The first project\n\nSection\nSome dedicated variables can be used in a custom Section (i.e.: &lt;section&gt;\/index.md).\nsortby\nThe order of pages in a Section can be changed.\nAvailable values are:\n\ndate: more recent first\nupdated: more recently updated first\ntitle: alphabetic order\nweight: lightest first\n\nExample:\n---\nsortby: title\n---\nMore options:\n---\nsortby:\n  variable: date    # \"date\", \"updated\", \"title\" or \"weight\"\n  desc_title: false # used with \"date\" or \"updated\" variable value to sort by desc title order if items have the same date\n  reverse: false    # reversed if true\n---\npagination\nThe global pagination configuration is used by default, but you can change it for a specific Section.\nExample:\n---\npagination:\n  max: 5\n  path: \"page\"\n---\nPagination can be disabled for a Section:\n---\npagination: false\n---\nIf pagination is disabled globally, it can be enabled for a Section (max and path default to the global configuration):\n---\npagination:\n  enabled: true\n  max: 5\n---\ncascade\nAny variables in cascade are added to the front matter of all pages of the Section (including pages of its sub-sections).\nExample:\n---\ncascade:\n  banner: image.jpg\n---\nExisting variables are not overridden.\ncircular\nSet circular to true to enable circular navigation with page.&lt;prev\/next&gt;.\nWith sub-sections, only the circular value of the top level Section is used.\nExample:\n---\ncircular: true\n---\nSub-section\nA nested folder that explicitly contains an index.md file is turned into a sub-section of its parent Section.\n&lt;mywebsite&gt;\n└─ pages\n   └─ blog                 &lt;- Section\n      ├─ index.md\n      ├─ post-1.md         &lt;- Page in Section \"blog\"\n      └─ 2024              &lt;- Sub-section (contains an \"index.md\")\n         ├─ index.md\n         └─ post-2.md      &lt;- Page in Section \"blog\" *and* sub-section \"blog\/2024\"\nA sub-section:\n\nis a Section (same type, variables and layout resolution) available at its own URL (e.g.: \/blog\/2024\/)\nis rendered with the layouts of its parent Sections if it doesn't have its own (e.g.: blog\/list.html.twig)\ncan be nested at any depth (e.g.: blog\/2024\/06\/)\nlists its own pages, and its pages also belong to each of their parent Sections\nis not listed in its parent Section\nis placed in the page.&lt;prev\/next&gt; navigation of its parent Section (according to its sortby), followed by its own pages\n\nA nested folder without an index.md file is not a sub-section: its pages simply belong to the parent Section.\nHome page\nThe Home page is the pages\/index.md file.\nLike any other Section, the Home page supports sortby and pagination configuration.\npagesfrom\nSet a valid Section name in pagesfrom to use pages collection from this Section in Home page.\nExample:\n---\npagesfrom: blog\n---",
      "content_html": "<h1>Pages and sections</h1>\n<p>A page is a file made up of a <a href=\"#front-matter\"><strong>front matter</strong></a> and a <a href=\"#body\"><strong>body</strong></a>.</p>\n<aside class=\"note note-info\"><p>Pages are files stored in the <code translate=\"no\">pages/</code> directory, with one of the following extensions: <code translate=\"no\">md</code>, <code translate=\"no\">markdown</code>, <code translate=\"no\">mdown</code>, <code translate=\"no\">mkdn</code>, <code translate=\"no\">mkd</code>, <code translate=\"no\">text</code> or <code translate=\"no\">txt</code> (see <a href=\"../configuration/4-pages.md#pages-ext\"><code translate=\"no\">pages.ext</code></a>).</p>\n<p>A <code translate=\"no\">README.md</code> file is handled as an <code translate=\"no\">index.md</code> file (e.g.: <code translate=\"no\">blog/README.md</code> is the index of the <code translate=\"no\">blog</code> <em>Section</em>).</p></aside>\n<h2 id=\"front-matter\">Front matter<a class=\"heading-anchor\" href=\"#front-matter\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The <em>front matter</em> is a collection of <a href=\"2-front-matter.md\">variables</a> (in <em>key/value</em> format) surrounded by <code translate=\"no\">---</code>.</p>\n<p><em>Example:</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\">title:</span> <span class=\"hljs-string\">\"The title\"</span>\n<span class=\"hljs-attr\">date:</span> <span class=\"hljs-number\">2019</span><span class=\"hljs-number\">-02</span><span class=\"hljs-number\">-21</span>\n<span class=\"hljs-attr\">tags:</span> <span class=\"hljs-string\">[tag</span> <span class=\"hljs-number\">1</span><span class=\"hljs-string\">,</span> <span class=\"hljs-string\">tag</span> <span class=\"hljs-number\">2</span><span class=\"hljs-string\">]</span>\n<span class=\"hljs-attr\">customvar:</span> <span class=\"hljs-string\">\"Value of customvar\"</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<aside class=\"note note-info\"><p>You can also use <code translate=\"no\">&lt;!-- --&gt;</code> or <code translate=\"no\">+++</code> as separator.</p></aside>\n<h2 id=\"body\">Body<a class=\"heading-anchor\" href=\"#body\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The <em>body</em> is the main content of a page; it can be written in <a href=\"3-markdown.md\">Markdown</a> or in plain text.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\"><span class=\"hljs-section\"># Header</span>\n\n[toc]\n\n<span class=\"hljs-section\">## Sub-Header 1</span>\n\nLorem ipsum dolor [<span class=\"hljs-string\">sit amet</span>](<span class=\"hljs-link\">https://example.com</span>), consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n<span class=\"xml\"><span class=\"hljs-comment\">&lt;!-- excerpt --&gt;</span></span>\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n<span class=\"hljs-section\">## Sub-Header 2</span>\n\n![<span class=\"hljs-string\">Description</span>](<span class=\"hljs-link\">/image.jpg \"Title\"</span>)\n\n<span class=\"hljs-section\">## Sub-Header 3</span>\n\n:::tip\nThis is advice.\n:::</code></pre>\n<h2 id=\"file-prefix\">File prefix<a class=\"heading-anchor\" href=\"#file-prefix\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The filename can contain a prefix to define <code translate=\"no\">date</code> or <code translate=\"no\">weight</code> variables of the page (used by <a href=\"../templates/reference/2-sorts.md#sort-by-date\"><code translate=\"no\">sortby</code></a>).</p>\n<aside class=\"note note-info\"><p>Default prefix separators: <code translate=\"no\">_</code> and <code translate=\"no\">-</code>.</p>\n<p>You can customize them with the <a href=\"../configuration/4-pages.md#pages-prefix-separator\"><code translate=\"no\">pages.prefix.separator</code></a> option.</p></aside>\n<h3 id=\"date\">date<a class=\"heading-anchor\" href=\"#date\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The <em>date prefix</em> is used to set the <code translate=\"no\">date</code> of the page, and must be a valid date format (i.e.: <code translate=\"no\">YYYY-MM-DD</code>).</p>\n<p><em>Example:</em></p>\n<p>In <code translate=\"no\">2019-04-23_My blog post.md</code>:</p>\n<ul>\n<li>the prefix is <code translate=\"no\">2019-04-23</code></li>\n<li>the <code translate=\"no\">date</code> of the page is <code translate=\"no\">2019-04-23</code></li>\n<li>the <code translate=\"no\">title</code> of the page is <code translate=\"no\">My blog post</code></li>\n</ul>\n<h3 id=\"weight\">weight<a class=\"heading-anchor\" href=\"#weight\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The <em>weight prefix</em> is used to set the sort order of the page, and must be a valid integer value.</p>\n<p><em>Example:</em></p>\n<p>In <code translate=\"no\">1_The first project.md</code>:</p>\n<ul>\n<li>the prefix is <code translate=\"no\">1</code></li>\n<li>the <code translate=\"no\">weight</code> of the page is <code translate=\"no\">1</code></li>\n<li>the <code translate=\"no\">title</code> of the page is <code translate=\"no\">The first project</code></li>\n</ul>\n<h2 id=\"section\">Section<a class=\"heading-anchor\" href=\"#section\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Some dedicated variables can be used in a custom <em>Section</em> (i.e.: <code translate=\"no\">&lt;section&gt;/index.md</code>).</p>\n<h3 id=\"sortby\">sortby<a class=\"heading-anchor\" href=\"#sortby\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The order of pages in a <em>Section</em> can be changed.</p>\n<p>Available values are:</p>\n<ul>\n<li><code translate=\"no\">date</code>: more recent first</li>\n<li><code translate=\"no\">updated</code>: more recently updated first</li>\n<li><code translate=\"no\">title</code>: alphabetic order</li>\n<li><code translate=\"no\">weight</code>: lightest first</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-meta\">---</span>\n<span class=\"hljs-attr\">sortby:</span> <span class=\"hljs-string\">title</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p><strong>More options:</strong></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</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\"># used with \"date\" or \"updated\" variable value to sort by desc title order if items have the same date</span>\n  <span class=\"hljs-attr\">reverse:</span> <span class=\"hljs-literal\">false</span>    <span class=\"hljs-comment\"># reversed if true</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h3 id=\"pagination\">pagination<a class=\"heading-anchor\" href=\"#pagination\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The global <a href=\"../configuration/4-pages.md#pages-pagination\">pagination configuration</a> is used by default, but you can change it for a specific <em>Section</em>.</p>\n<p><em>Example:</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\">pagination:</span>\n  <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">5</span>\n  <span class=\"hljs-attr\">path:</span> <span class=\"hljs-string\">\"page\"</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>Pagination can be disabled for a <em>Section</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\">pagination:</span> <span class=\"hljs-literal\">false</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>If pagination is <a href=\"../configuration/4-pages.md#disable-pagination\">disabled globally</a>, it can be enabled for a <em>Section</em> (<code translate=\"no\">max</code> and <code translate=\"no\">path</code> default to the global configuration):</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">pagination:</span>\n  <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>\n  <span class=\"hljs-attr\">max:</span> <span class=\"hljs-number\">5</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h3 id=\"cascade\">cascade<a class=\"heading-anchor\" href=\"#cascade\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Any variables in <code translate=\"no\">cascade</code> are added to the front matter of all pages of the <em>Section</em> (including pages of its <a href=\"#sub-section\">sub-sections</a>).</p>\n<p><em>Example:</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\">cascade:</span>\n  <span class=\"hljs-attr\">banner:</span> <span class=\"hljs-string\">image.jpg</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<aside class=\"note note-info\"><p>Existing variables are not overridden.</p></aside>\n<h3 id=\"circular\">circular<a class=\"heading-anchor\" href=\"#circular\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Set <code translate=\"no\">circular</code> to <code translate=\"no\">true</code> to enable circular navigation with <a href=\"../templates/2-variables.md#page-prev-next\"><em>page.&lt;prev/next&gt;</em></a>.</p>\n<aside class=\"note note-info\"><p>With <a href=\"#sub-section\">sub-sections</a>, only the <code translate=\"no\">circular</code> value of the top level <em>Section</em> is used.</p></aside>\n<p><em>Example:</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\">circular:</span> <span class=\"hljs-literal\">true</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h3 id=\"sub-section\">Sub-section<a class=\"heading-anchor\" href=\"#sub-section\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>A nested folder that explicitly contains an <code translate=\"no\">index.md</code> file is turned into a <em>sub-section</em> of its parent <em>Section</em>.</p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">&lt;mywebsite&gt;\n└─ pages\n   └─ blog                 &lt;- Section\n      ├─ index.md\n      ├─ post-1.md         &lt;- Page in Section \"blog\"\n      └─ 2024              &lt;- Sub-section (contains an \"index.md\")\n         ├─ index.md\n         └─ post-2.md      &lt;- Page in Section \"blog\" *and* sub-section \"blog/2024\"</code></pre>\n<p>A <em>sub-section</em>:</p>\n<ul>\n<li>is a <em>Section</em> (same type, variables and <a href=\"../templates/1-lookup-rules.md#type-section\">layout</a> resolution) available at its own URL (e.g.: <code translate=\"no\">/blog/2024/</code>)</li>\n<li>is rendered with the layouts of its parent <em>Sections</em> if it doesn't have its own (e.g.: <code translate=\"no\">blog/list.html.twig</code>)</li>\n<li>can be nested at any depth (e.g.: <code translate=\"no\">blog/2024/06/</code>)</li>\n<li>lists its own pages, and its pages also belong to each of their parent <em>Sections</em></li>\n<li>is <strong>not</strong> listed in its parent <em>Section</em></li>\n<li>is placed in the <a href=\"../templates/2-variables.md#page-prev-next\"><em>page.&lt;prev/next&gt;</em></a> navigation of its parent <em>Section</em> (according to its <code translate=\"no\">sortby</code>), followed by its own pages</li>\n</ul>\n<aside class=\"note note-info\"><p>A nested folder <strong>without</strong> an <code translate=\"no\">index.md</code> file is not a <em>sub-section</em>: its pages simply belong to the parent <em>Section</em>.</p></aside>\n<h2 id=\"home-page\">Home page<a class=\"heading-anchor\" href=\"#home-page\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The <em>Home page</em> is the <code translate=\"no\">pages/index.md</code> file.</p>\n<p>Like any other <em>Section</em>, the <em>Home page</em> supports <code translate=\"no\">sortby</code> and <code translate=\"no\">pagination</code> configuration.</p>\n<h3 id=\"pagesfrom\">pagesfrom<a class=\"heading-anchor\" href=\"#pagesfrom\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Set a valid <em>Section</em> name in <code translate=\"no\">pagesfrom</code> to use pages collection from this <em>Section</em> in <em>Home page</em>.</p>\n<p><em>Example:</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\">pagesfrom:</span> <span class=\"hljs-string\">blog</span>\n<span class=\"hljs-meta\">---</span></code></pre>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/content/front-matter/",
      "url": "https://cloudflare.cecil.app/documentation/content/front-matter/",
      "title": "Front matter",
      "summary": "Custom and predefined page variables: menu, taxonomy, schedule, redirect, alias, output, etc.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-11-28T00:00:00+00:00","content_text": "Front matter\nThe front matter can contain custom variables applied to the current page.\nIt must be the first thing in the file and must be valid YAML.\nYAML is the default format: you can use INI, TOML or JSON instead with the pages.frontmatter option.\nThe front matter is validated: the types of predefined variables are checked, and you can declare your own rules (required variables, types, allowed values, default values, etc.) by section or by page with the pages.schema option.\nPredefined variables\n\n\n\nVariable\nDescription\nDefault value\nExample\n\n\n\n\ntitle\nTitle\nFile name without extension, prefix and language suffix.\nPost 1\n\n\nlayout\nTemplate\nSee Lookup rules.\n404\n\n\ndate\nCreation date\nFile modification date (PHP DateTime object).\n2019-04-15\n\n\nsection\nSection\nPage's Section.\nblog\n\n\npath\nPath\nPage's path.\nblog\/post-1\n\n\nslug\nSlug\nPage's slug.\npost-1\n\n\nweight\nSort order\nFile weight prefix, if any.\n10\n\n\nlanguage\nLanguage code\nFile language suffix, or the main language.\nfr\n\n\nlangref\nTranslations reference\nPage's path (without language).\nblog\/post-1\n\n\npublished\nPublished or not\ntrue.\nfalse\n\n\ndraft\nDraft or not\nfalse.\ntrue\n\n\n\nAll the predefined variables can be overridden except section.\nThe values of path and slug must already be slugified (e.g.: my-post, not My Post), otherwise the build fails. They can't contain . or .. segments.\ndraft: true is the same as published: false. Unpublished pages can be previewed with the --drafts option of the build and serve commands.\nupdated\nThe updated variable is used to define the last modification date of a page.\nExample:\n---\nupdated: 2026-02-02\n---\nlastmod is an alias of updated.\nBefore version 8.80.1, the updated variable was a predefined variable. It is now an optional variable (and must be defined in the front matter to be used).\nmenu\nA page can be added to a menu.\nThe entry name is the page title and the URL is the page path.\nThe same page can be added to multiple menus, and each entry's position can be set with the weight key (lowest first). The name key can be used to override the default entry name per menu.\nExamples:\n---\nmenu: main\n---\n---\nmenu: [main, navigation] # same page in multiple menus\n---\n---\nmenu:\n  main:\n    weight: 10\n  navigation:\n    weight: 20\n---\n---\ntitle: 'Our Expertise'\nmenu:\n  main:\n    weight: 15\n  footer:\n    weight: 15\n    name: \"Expertise\" # override the entry name in this menu\n---\nTaxonomy\nTaxonomy allows you to connect, relate and classify your website’s content.\nIn Cecil, these terms are gathered within vocabularies.\nVocabularies are declared in the Configuration.\n\nVocabulary\nA categorization of content (e.g.: tags, categories, etc.).\nTerm\nA term is an item of a vocabulary (e.g.: Development, PHP, etc.).\n\nExample:\n---\ntags: [\"Development\", \"PHP\"]\n---\nCecil then generates, for each vocabulary:\n\na page listing its terms, e.g.: \/tags\/\na page per term listing its pages, e.g.: \/tags\/development\/ and \/tags\/php\/\n\nSee templates lookup rules and taxonomy variables to customize those pages.\nSchedule\nSchedules pages’ publication.\nExample:\nThe page is published from 2023-02-07 (if the current date is &gt;= 2023-02-07):\n---\nschedule:\n  publish: 2023-02-07\n---\nThe page is published until 2022-04-28 (if the current date is &lt; 2022-04-28, i.e. before midnight):\n---\nschedule:\n  expiry: 2022-04-28\n---\nBoth can be combined: the page is published if the publish date is reached and the expiry date is not passed.\nredirect\nAs indicated by its name, the redirect variable is used to redirect a page to a dedicated URL.\nExample:\n---\nredirect: \"https:\/\/arnaudligny.fr\"\n---\nRedirect works with the redirect.html.twig template.\nalias\nAn alias is a redirection to the current page.\nExample:\n---\ntitle: \"About\"\nalias:\n  - contact\n---\nIn the previous example contact\/ redirects to about\/.\naliases is still supported for backward compatibility.\noutput\nDefines the output format of the page.\nAvailable formats are: html, atom, rss, json, xml, etc.\nYou can define one or more formats in an array.\nIt’s not required to define an output format, but if you do, it must be one of the available formats defined in the Configuration.\nExample:\n---\noutput: [html, atom]\n---\nuglyurl\nSet uglyurl to true to publish the page as a file named after its path (e.g.: blog\/post-1.html) instead of an index.html file in a folder (e.g.: blog\/post-1\/index.html).\nExample:\n---\nuglyurl: true\n---\nexternal\nA page with an external variable tries to fetch the content of the pointed resource, and uses it as the page body.\nExample:\n---\nexternal: \"https:\/\/raw.githubusercontent.com\/Cecilapp\/Cecil\/main\/README.md\"\n---\nThe resource can be:\n\na remote file, with an http:\/\/ or https:\/\/ URL (other schemes, like file:\/\/ or php:\/\/, are not allowed);\na local file, with a path relative to the site directory (e.g.: ..\/README.md), that must be inside the parent directory of the site.\n\nexcluded\nSet excluded to true to hide a page from list pages (e.g.: Home page, Section, Sitemap, etc.).\nExample:\n---\nexcluded: true\n---\nexcluded is different from published: an excluded page is published but hidden from list pages.\nSince version 8.49.0, the previous exclude variable has been renamed excluded (exclude is still supported for backward compatibility).",
      "content_html": "<h1>Front matter</h1>\n<p>The <em>front matter</em> can contain custom variables applied to the current page.</p>\n<p>It must be the first thing in the file and must be valid <a href=\"https://en.wikipedia.org/wiki/YAML\" target=\"_blank\" rel=\"noopener noreferrer\">YAML</a>.</p>\n<aside class=\"note note-info\"><p>YAML is the default format: you can use INI, TOML or JSON instead with the <a href=\"../configuration/4-pages.md#pages-frontmatter\"><code translate=\"no\">pages.frontmatter</code></a> option.</p></aside>\n<aside class=\"note note-tip\"><p>The front matter is validated: the types of predefined variables are checked, and you can declare your own rules (required variables, types, allowed values, default values, etc.) by section or by page with the <a href=\"../configuration/4-pages.md#pages-schema\"><code translate=\"no\">pages.schema</code></a> option.</p></aside>\n<h2 id=\"predefined-variables\">Predefined variables<a class=\"heading-anchor\" href=\"#predefined-variables\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n<th>Default value</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">title</code></td>\n<td>Title</td>\n<td>File name without extension, prefix and language suffix.</td>\n<td><code translate=\"no\">Post 1</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">layout</code></td>\n<td>Template</td>\n<td>See <a href=\"../templates/1-lookup-rules.md#lookup-rules\"><em>Lookup rules</em></a>.</td>\n<td><code translate=\"no\">404</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">date</code></td>\n<td>Creation date</td>\n<td>File modification date (PHP <em>DateTime</em> object).</td>\n<td><code translate=\"no\">2019-04-15</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">section</code></td>\n<td>Section</td>\n<td>Page's <em>Section</em>.</td>\n<td><code translate=\"no\">blog</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">path</code></td>\n<td>Path</td>\n<td>Page's <em>path</em>.</td>\n<td><code translate=\"no\">blog/post-1</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">slug</code></td>\n<td>Slug</td>\n<td>Page's <em>slug</em>.</td>\n<td><code translate=\"no\">post-1</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">weight</code></td>\n<td>Sort order</td>\n<td>File <a href=\"1-pages.md#weight\">weight prefix</a>, if any.</td>\n<td><code translate=\"no\">10</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">language</code></td>\n<td>Language code</td>\n<td>File language suffix, or the main <a href=\"../configuration/2-languages.md#language\">language</a>.</td>\n<td><code translate=\"no\">fr</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">langref</code></td>\n<td>Translations reference</td>\n<td>Page's <em>path</em> (without language).</td>\n<td><code translate=\"no\">blog/post-1</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">published</code></td>\n<td>Published or not</td>\n<td><code translate=\"no\">true</code>.</td>\n<td><code translate=\"no\">false</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">draft</code></td>\n<td>Draft or not</td>\n<td><code translate=\"no\">false</code>.</td>\n<td><code translate=\"no\">true</code></td>\n</tr>\n</tbody>\n</table>\n<aside class=\"note note-info\"><p>All the predefined variables can be overridden except <code translate=\"no\">section</code>.</p></aside>\n<aside class=\"note note-important\"><p>The values of <code translate=\"no\">path</code> and <code translate=\"no\">slug</code> must already be slugified (e.g.: <code translate=\"no\">my-post</code>, not <code translate=\"no\">My Post</code>), otherwise the build fails. They can't contain <code translate=\"no\">.</code> or <code translate=\"no\">..</code> segments.</p></aside>\n<aside class=\"note note-tip\"><p><code translate=\"no\">draft: true</code> is the same as <code translate=\"no\">published: false</code>. Unpublished pages can be previewed with the <code translate=\"no\">--drafts</code> option of the <a href=\"../commands/4-build.md\"><code translate=\"no\">build</code></a> and <a href=\"../commands/3-serve.md\"><code translate=\"no\">serve</code></a> commands.</p></aside>\n<h2 id=\"updated\">updated<a class=\"heading-anchor\" href=\"#updated\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The <code translate=\"no\">updated</code> variable is used to define the last modification date of a page.</p>\n<p><em>Example:</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\">updated:</span> <span class=\"hljs-number\">2026</span><span class=\"hljs-number\">-02</span><span class=\"hljs-number\">-02</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<aside class=\"note note-info\"><p><code translate=\"no\">lastmod</code> is an alias of <code translate=\"no\">updated</code>.</p></aside>\n<aside class=\"note note-warning\"><p>Before version 8.80.1, the <code translate=\"no\">updated</code> variable was a predefined variable. It is now an optional variable (and must be defined in the front matter to be used).</p></aside>\n<h2 id=\"menu\">menu<a class=\"heading-anchor\" href=\"#menu\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>A page can be added to a <a href=\"../configuration/1-site.md#menus\">menu</a>.</p>\n<p>The entry name is the page <code translate=\"no\">title</code> and the URL is the page <code translate=\"no\">path</code>.</p>\n<p>The same page can be added to multiple menus, and each entry's position can be set with the <code translate=\"no\">weight</code> key (lowest first). The <code translate=\"no\">name</code> key can be used to override the default entry name per menu.</p>\n<p><em>Examples:</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\">menu:</span> <span class=\"hljs-string\">main</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">menu:</span> <span class=\"hljs-string\">[main,</span> <span class=\"hljs-string\">navigation]</span> <span class=\"hljs-comment\"># same page in multiple menus</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">menu:</span>\n  <span class=\"hljs-attr\">main:</span>\n    <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">10</span>\n  <span class=\"hljs-attr\">navigation:</span>\n    <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">20</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">'Our Expertise'</span>\n<span class=\"hljs-attr\">menu:</span>\n  <span class=\"hljs-attr\">main:</span>\n    <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">15</span>\n  <span class=\"hljs-attr\">footer:</span>\n    <span class=\"hljs-attr\">weight:</span> <span class=\"hljs-number\">15</span>\n    <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">\"Expertise\"</span> <span class=\"hljs-comment\"># override the entry name in this menu</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h2 id=\"taxonomy\">Taxonomy<a class=\"heading-anchor\" href=\"#taxonomy\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Taxonomy allows you to connect, relate and classify your website’s content.<br>\nIn Cecil, these terms are gathered within vocabularies.</p>\n<p>Vocabularies are declared in the <a href=\"../configuration/1-site.md#taxonomies\"><em>Configuration</em></a>.</p>\n<dl>\n<dt>Vocabulary</dt>\n<dd>A categorization of content (e.g.: <code translate=\"no\">tags</code>, <code translate=\"no\">categories</code>, etc.).</dd>\n<dt>Term</dt>\n<dd>A term is an item of a vocabulary (e.g.: <code translate=\"no\">Development</code>, <code translate=\"no\">PHP</code>, etc.).</dd>\n</dl>\n<p><em>Example:</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\">tags:</span> <span class=\"hljs-string\">[\"Development\",</span> <span class=\"hljs-string\">\"PHP\"</span><span class=\"hljs-string\">]</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>Cecil then generates, for each vocabulary:</p>\n<ul>\n<li>a page listing its terms, e.g.: <code translate=\"no\">/tags/</code></li>\n<li>a page per term listing its pages, e.g.: <code translate=\"no\">/tags/development/</code> and <code translate=\"no\">/tags/php/</code></li>\n</ul>\n<p>See <a href=\"../templates/1-lookup-rules.md#type-vocabulary\">templates lookup rules</a> and <a href=\"../templates/2-variables.md#taxonomy\">taxonomy variables</a> to customize those pages.</p>\n<h2 id=\"schedule\">Schedule<a class=\"heading-anchor\" href=\"#schedule\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Schedules pages’ publication.</p>\n<p><em>Example:</em></p>\n<p>The page is published from 2023-02-07 (if the current date is &gt;= 2023-02-07):</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">schedule:</span>\n  <span class=\"hljs-attr\">publish:</span> <span class=\"hljs-number\">2023</span><span class=\"hljs-number\">-02</span><span class=\"hljs-number\">-07</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>The page is published until 2022-04-28 (if the current date is &lt; 2022-04-28, i.e. before midnight):</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">schedule:</span>\n  <span class=\"hljs-attr\">expiry:</span> <span class=\"hljs-number\">2022</span><span class=\"hljs-number\">-04</span><span class=\"hljs-number\">-28</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>Both can be combined: the page is published if the <code translate=\"no\">publish</code> date is reached <strong>and</strong> the <code translate=\"no\">expiry</code> date is not passed.</p>\n<h2 id=\"redirect\">redirect<a class=\"heading-anchor\" href=\"#redirect\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>As indicated by its name, the <code translate=\"no\">redirect</code> variable is used to redirect a page to a dedicated URL.</p>\n<p><em>Example:</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\">redirect:</span> <span class=\"hljs-string\">\"https://arnaudligny.fr\"</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<aside class=\"note note-info\"><p>Redirect works with the <a href=\"https://github.com/Cecilapp/Cecil/blob/main/resources/layouts/_default/redirect.html.twig\" target=\"_blank\" rel=\"noopener noreferrer\"><code translate=\"no\">redirect.html.twig</code></a> template.</p></aside>\n<h2 id=\"alias\">alias<a class=\"heading-anchor\" href=\"#alias\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>An alias is a redirection to the current page.</p>\n<p><em>Example:</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\">title:</span> <span class=\"hljs-string\">\"About\"</span>\n<span class=\"hljs-attr\">alias:</span>\n  <span class=\"hljs-bullet\">-</span> <span class=\"hljs-string\">contact</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>In the previous example <code translate=\"no\">contact/</code> redirects to <code translate=\"no\">about/</code>.</p>\n<aside class=\"note note-info\"><p><code translate=\"no\">aliases</code> is still supported for backward compatibility.</p></aside>\n<h2 id=\"output\">output<a class=\"heading-anchor\" href=\"#output\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Defines the output format of the page.</p>\n<p>Available formats are: <code translate=\"no\">html</code>, <code translate=\"no\">atom</code>, <code translate=\"no\">rss</code>, <code translate=\"no\">json</code>, <code translate=\"no\">xml</code>, etc.<br>\nYou can define one or more formats in an array.</p>\n<p>It’s not required to define an output format, but if you do, it must be one of the available formats defined in the <a href=\"../configuration/8-output.md#output-formats\"><em>Configuration</em></a>.</p>\n<p><em>Example:</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\">output:</span> <span class=\"hljs-string\">[html,</span> <span class=\"hljs-string\">atom]</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h2 id=\"uglyurl\">uglyurl<a class=\"heading-anchor\" href=\"#uglyurl\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Set <code translate=\"no\">uglyurl</code> to <code translate=\"no\">true</code> to publish the page as a file named after its path (e.g.: <code translate=\"no\">blog/post-1.html</code>) instead of an <code translate=\"no\">index.html</code> file in a folder (e.g.: <code translate=\"no\">blog/post-1/index.html</code>).</p>\n<p><em>Example:</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\">uglyurl:</span> <span class=\"hljs-literal\">true</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h2 id=\"external\">external<a class=\"heading-anchor\" href=\"#external\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>A page with an <code translate=\"no\">external</code> variable tries to fetch the content of the pointed resource, and uses it as the page body.</p>\n<p><em>Example:</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\">external:</span> <span class=\"hljs-string\">\"https://raw.githubusercontent.com/Cecilapp/Cecil/main/README.md\"</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<p>The resource can be:</p>\n<ul>\n<li>a remote file, with an <code translate=\"no\">http://</code> or <code translate=\"no\">https://</code> URL (other schemes, like <code translate=\"no\">file://</code> or <code translate=\"no\">php://</code>, are not allowed);</li>\n<li>a local file, with a path relative to the site directory (e.g.: <code translate=\"no\">../README.md</code>), that must be inside the parent directory of the site.</li>\n</ul>\n<h2 id=\"excluded\">excluded<a class=\"heading-anchor\" href=\"#excluded\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Set <code translate=\"no\">excluded</code> to <code translate=\"no\">true</code> to hide a page from list pages (e.g.: <em>Home page</em>, <em>Section</em>, <em>Sitemap</em>, etc.).</p>\n<p><em>Example:</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\">excluded:</span> <span class=\"hljs-literal\">true</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<aside class=\"note note-info\"><p><code translate=\"no\">excluded</code> is different from <a href=\"#predefined-variables\"><code translate=\"no\">published</code></a>: an excluded page is published but hidden from list pages.</p></aside>\n<aside class=\"note note-warning\"><p>Since version 8.49.0, the previous <code translate=\"no\">exclude</code> variable has been renamed <code translate=\"no\">excluded</code> (<code translate=\"no\">exclude</code> is still supported for backward compatibility).</p></aside>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/content/markdown/",
      "url": "https://cloudflare.cecil.app/documentation/content/markdown/",
      "title": "Markdown",
      "summary": "Markdown syntax and extensions: attributes, links, images, table of contents, notes, syntax highlight, etc.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-24T00:00:00+00:00","content_text": "Markdown\nCecil supports Markdown format, but also Markdown Extra.\nCecil also provides extra features to enhance your content, see below.\nAttributes\nWith Markdown Extra you can set an id, class and custom attributes on certain elements using an attribute block.\nFor instance, put the desired attribute(s) after a heading, a fenced code block, a link or an image at the end of the line inside curly brackets, like this:\n## Header {#id .class attribute=value}\nFor an inline element, like a link, you must use a line break after the closing brace:\nLorem ipsum [dolor](url){attribute=value} \nsit amet.\nLinks\nYou can create a link with the syntax [Text](url), where url can be a path, a relative path to a Markdown file, an external URL, etc.\nExample:\n[Link to a path](\/about\/)\n[Link to a Markdown file](about.md)\n[Link to Cecil website](https:\/\/cecil.app)\nA relative link to a Markdown file is resolved from the folder of the current file (as on GitHub), then replaced by the URL of the targeted page.\nLink to a page\nYou can easily create a link to a page with the syntax [Page title](page:page-id).\nExample:\n[Link to a blog post](page:blog\/post-1)\nExternal\nBy default external links have the following value for rel attribute: noopener noreferrer.\nA link is considered external if its URL starts with http but not with the baseurl: baseurl must be defined.\nExample:\n&lt;a href=\"&lt;url&gt;\" rel=\"noopener noreferrer\"&gt;Link to another website&lt;\/a&gt;\nYou can change this behavior with pages.body.links.external options.\nEmbedded links\nCecil can try to turn a link into embedded content by using the {embed} attribute or by setting the global configuration option pages.body.links.embed.enabled to true.\nOnly YouTube, Vimeo, Dailymotion, and GitHub Gists links are supported.\nExample:\n[CECIL : LE générateur de SITES STATIQUES en PHP](https:\/\/www.youtube.com\/watch?v=ur8koU0iYvc){embed}\n\n\n\nLocal video\/audio files\nCecil can also create &lt;video&gt; and &lt;audio&gt; HTML elements, based on the file extension (mp4 and webm for video, mp3, ogg and wav for audio, see pages.body.links.embed).\nExample:\n[Video file](video.mp4){embed controls poster=\/images\/video-test.png}\n[Audio file](song.mp3){embed controls}\nIs converted to:\n&lt;video src=\"\/video.mp4\" controls poster=\"\/images\/video-test.png\" style=\"max-width:100%;height:auto;background-color:#d8d8d8;\"&gt;&lt;\/video&gt;\n&lt;audio src=\"\/song.mp3\" controls&gt;&lt;\/audio&gt;\nWithout the controls attribute, a video gets the autoplay, loop, muted and playsinline attributes.\nWith {embed=false} (or when embedding is disabled), a local video\/audio file stays a link, but its URL points to the published file (fingerprinted if assets.fingerprint is enabled).\nImages\nTo add an image, use an exclamation mark (!) followed by an alternative description in brackets ([]), and the path or URL to the image in parentheses (()).\nYou can optionally add a title in quotation marks.\n![Alternative description](\/image.jpg \"Image title\")\nThe path should be relative to the root of your website (e.g.: \/image.jpg), however Cecil is able to normalize a path relative to assets and static directories (e.g.: ..\/..\/assets\/image.jpg).\nRemote images (e.g.: https:\/\/example.com\/image.jpg) are downloaded and handled as Assets, so they can be resized and converted. You can disable this behavior, or define a fallback image, with the remote option.\nLazy loading\nCecil adds the attribute loading=\"lazy\" to each image.\nExample:\n![](\/image.jpg)\nIs converted to:\n&lt;img src=\"\/image.jpg\" loading=\"lazy\"&gt;\nYou can disable this behavior with the attribute {loading=eager} or with the lazy option.\nDecoding\nCecil adds the attribute decoding=\"async\" to each image.\nExample:\n![](\/image.jpg)\nIs converted to:\n&lt;img src=\"\/image.jpg\" decoding=\"async\"&gt;\nYou can disable this behavior with the attribute {decoding=auto} or with the decoding option.\nResize\nEach image in the body can be resized automatically by setting a smaller width than the original one, with the extra attribute {width=X}.\nExample:\n![](\/image.jpg){width=800}\nIs converted to:\n&lt;img src=\"\/thumbnails\/800\/image.jpg\" width=\"800\" height=\"600\"&gt;\nRatio is preserved (height attribute is calculated automatically), the original file is not altered and the resized version is stored in \/thumbnails\/&lt;width&gt;\/.\nYou can also resize all images to a maximum width with the resize option.\nThis feature requires an image processing library: Imagick is used first if available (and able to read JPEG and PNG), then libvips (through the PHP FFI extension), and finally GD as fallback; otherwise it only adds a width HTML attribute to the img tag.\nlibvips support is optional and is not bundled with cecil.phar. To use it, Cecil must be installed with Composer, and you need:\n\nlibvips installed on your system\nthe PHP FFI extension enabled\nthe intervention\/image-driver-vips package installed alongside Cecil\n\nIf Cecil is a dependency of your project (see Library):\ncomposer require intervention\/image-driver-vips\nIf Cecil is installed globally:\ncomposer global require cecil\/cecil intervention\/image-driver-vips\nFormats\nIf the formats option is defined, alternative images are created and added.\nExample:\n![](\/image.jpg)\nCould be converted to:\n&lt;picture&gt;\n  &lt;source srcset=\"\/image.avif\" type=\"image\/avif\"&gt;\n  &lt;source srcset=\"\/image.webp\" type=\"image\/webp\"&gt;\n  &lt;img src=\"\/image.jpg\"&gt;\n&lt;\/picture&gt;\nPlease note that not all image formats are always included in the PHP image extensions.\nResponsive\nIf the responsive option is enabled, then all images in the body will be made responsive automatically.\nExample:\n![](\/image.jpg){width=800}\nwill be converted to:\n&lt;img src=\"\/thumbnails\/800\/image.jpg\" width=\"800\" height=\"600\"\n  srcset=\"\/thumbnails\/480\/image.jpg 480w,\n          \/thumbnails\/640\/image.jpg 640w,\n          \/thumbnails\/768\/image.jpg 768w,\n          \/thumbnails\/800\/image.jpg 800w\"\n  sizes=\"100vw\"\n&gt;\nBecause a body image is converted into an Asset, the different widths are defined (and can be changed) in the assets.images.responsive.widths option of the assets configuration.\nThe sizes attribute takes the value of the assets.images.responsive.sizes.default configuration option, but it can be changed by creating a new entry named after a class added to the image.\nExample:\nassets:\n  images:\n    responsive:\n      sizes:\n        default: 100vw\n        my_class: \"(max-width: 800px) 768px, 1024px\"\n![](\/image.jpg){.my_class}\nYou can combine formats and responsive options.\nCSS class\nYou can set a default value to the class attribute of each image with the class option.\nCaption\nThe optional title can be used to create a caption (figcaption) automatically by enabling the caption option.\nExample:\n![](\/image.jpg \"Title\")\nIs converted to:\n&lt;figure&gt;\n  &lt;img src=\"\/image.jpg\" title=\"Title\"&gt;\n  &lt;figcaption&gt;Title&lt;\/figcaption&gt;\n&lt;\/figure&gt;\nCaption supports Markdown content.\nLocalized image\nFor translated pages, Cecil first looks for a language-suffixed file when resolving Markdown image paths.\nExample:\n![](\/images\/cecil-logo.png)\nWith a French page (fr), Cecil tries \/images\/cecil-logo.fr.png first, then falls back to \/images\/cecil-logo.png.\nDark and mobile variants\nIf the dark_suffix option is defined (e.g.: .dark), Cecil looks for a dark variant of each image (e.g.: image.dark.jpg alongside image.jpg) and adds it as a &lt;source media=\"(prefers-color-scheme: dark)\"&gt; in a &lt;picture&gt; element.\nIn the same way, if the mobile_suffix option is defined (e.g.: .mobile), Cecil looks for a mobile variant of each image (e.g.: image.mobile.jpg) and adds it as a &lt;source&gt; with the mobile_media_query media query.\nPlaceholder\nAs images are typically heavier and slower resources, and they don’t block rendering, we should attempt to give users something to look at while they wait for the image to arrive.\nThe placeholder attribute accepts two options:\n\ncolor: display a colored background (based on image dominant color)\nlqip: Low-Quality Image Placeholder\n\nExamples:\n![](\/images\/img.jpg){placeholder=color}\n![](\/images\/img.jpg){placeholder=lqip}\nYou can set a value to the placeholder attribute for each image with the placeholder option.\nPlaceholders are only applied to JPEG, PNG and GIF images, and the lqip option is not compatible with animated GIF.\nHeading anchors\nAn anchor link is added at the end of h2 and h3 headings (see the pages.body.anchors option), to link to a heading of a page:\n&lt;h2 id=\"heading\"&gt;Heading&lt;a class=\"heading-anchor\" href=\"#heading\" aria-hidden=\"true\" tabindex=\"-1\"&gt;&lt;\/a&gt;&lt;\/h2&gt;\nThe link is empty: the default templates display a # on hover.\nTable of contents\nYou can add a table of contents with the following Markdown syntax:\n[toc]\nBy default, the ToC extracts H2 and H3 headings. You can change this behavior with body options.\nExcerpt\nAn excerpt can be defined in the body with one of the following HTML comments: &lt;!-- excerpt --&gt; or &lt;!-- break --&gt; (see the pages.body.excerpt option).\nExample:\nIntroduction.\n&lt;!-- excerpt --&gt;\nMain content.\nThen use the excerpt_html filter in your template.\nNotes\nCreate a Note block (info, tip, important, etc.).\nExample:\n:::tip\n**Tip:** This is advice.\n:::\nIs converted to:\n&lt;aside class=\"note note-tip\"&gt;\n  &lt;p&gt;\n    &lt;strong&gt;Tip:&lt;\/strong&gt; This is advice.\n  &lt;\/p&gt;\n&lt;\/aside&gt;\nTip: This is advice.\nAny type name can be used: it is added to the class attribute as note-&lt;type&gt; (e.g.: :::danger gives class=\"note note-danger\").\nOther examples:\nempty\ninfo\ntip\nimportant\nwarning\ncaution\nNested notes\nA note is closed by a line made of at least as many : as its opening line: to nest notes, use a longer fence for the parent note (::::, then ::::: for a third level, etc.).\n::::info\nBefore.\n\n:::tip\n**Tip:** This is advice.\n:::\n\nAfter.\n::::\nBefore.\nTip: This is advice.\nAfter.\nA longer fence also lets you show the note syntax in a code block, inside a note.\nTemplates\nA note is rendered with the partials\/notes\/&lt;type&gt;.html.twig template, if it exists (in the site layouts\/, in a theme or built-in), instead of the &lt;aside&gt; element.\nCecil provides templates for the following types, rendered without JavaScript: a theme can style them, override them and add interactivity. Unlike other notes, their root element is a &lt;div class=\"note note-&lt;type&gt;\"&gt; (not an &lt;aside&gt;), as their content is part of the main content.\n\n\n\nType\nItems\nRendering\n\n\n\n\ntabs\none per #### heading\nstacked panels (&lt;section class=\"note-tab\"&gt;)\n\n\ncode-group\none per #### heading, or one per code block (titled with its language)\nsame as tabs\n\n\nsteps\none per #### heading\nordered list (&lt;ol class=\"note-steps-list\"&gt;)\n\n\naccordion\none per #### heading\n&lt;details class=\"note-accordion-item\"&gt;\n\n\ncards\none per list entry (a leading link is the card title), or per #### heading\nlist (&lt;ul class=\"note-cards-list\"&gt;)\n\n\n\nThe examples below are themselves nested notes: a tabs note (with a :::: fence) shows the Markdown source and its rendering.\nTabs\nAlternative contents, one per #### heading (e.g.: per operating system).\n\n  \n    Markdown\n    :::tabs\n#### macOS and Linux\n\n```bash\nbrew install cecilapp\/tap\/cecil\n```\n\n#### Windows\n\n```bash\nscoop install https:\/\/cecil.app\/scoop\/cecil.json\n```\n:::\n  \n  \n    Result\n    \n  \n    macOS and Linux\n    brew install cecilapp\/tap\/cecil\n  \n  \n    Windows\n    scoop install https:\/\/cecil.app\/scoop\/cecil.json\n  \n\n  \n\nCode group\nLike tabs, with code blocks only: without heading, each code block is titled with its language.\n\n  \n    Markdown\n    :::code-group\n```bash\ncurl -LO https:\/\/cecil.app\/cecil.phar\n```\n\n```powershell\nInvoke-WebRequest https:\/\/cecil.app\/cecil.phar -OutFile cecil.phar\n```\n:::\n  \n  \n    Result\n    \n  \n    bash\n    curl -LO https:\/\/cecil.app\/cecil.phar\n  \n  \n    powershell\n    Invoke-WebRequest https:\/\/cecil.app\/cecil.phar -OutFile cecil.phar\n  \n\n  \n\nSteps\nA numbered procedure, one step per #### heading.\n\n  \n    Markdown\n    :::steps\n#### Create a site\n\n```bash\nphp cecil.phar new:site\n```\n\n#### Preview it\n\n```bash\nphp cecil.phar serve\n```\n:::\n  \n  \n    Result\n    \n  \n    \n      Create a site\n      php cecil.phar new:site\n    \n    \n      Preview it\n      php cecil.phar serve\n    \n  \n\n  \n\nAccordion\nCollapsible items, one per #### heading (e.g.: a FAQ).\n\n  \n    Markdown\n    :::accordion\n#### Is PHP required?\n\nNo: the standalone binary embeds PHP.\n\n#### Where is the generated site?\n\nIn the `_site` directory.\n:::\n  \n  \n    Result\n    \n  \n    Is PHP required?\n    \n      No: the standalone binary embeds PHP.\n    \n  \n  \n    Where is the generated site?\n    \n      In the _site directory.\n    \n  \n\n  \n\nCards\nLinks to other pages, one card per list entry: a leading link is the card title.\n\n  \n    Markdown\n    :::cards\n- [Installation](..\/getting-started\/2-installation.md): download and install Cecil.\n- [Configuration](..\/configuration\/index.md): configure your site.\n:::\n  \n  \n    Result\n    \n  \n    \n      Installation\n      download and install Cecil.\n    \n    \n      Configuration\n      configure your site.\n    \n  \n\n  \n\nCustom template\nThe template receives a note variable:\n\nnote.type: note type (e.g.: tabs)\nnote.id: unique ID in the page (e.g.: note-tabs-1)\nnote.content: HTML of the whole note\nnote.intro: HTML of the content before the first #### heading\nnote.items: list of items, each with:\ntitle: title (HTML)\nheading: heading element (HTML), with its id attribute\nid: heading ID, if any\nlink: leading link element (HTML) of a list entry\nurl: leading link URL of a list entry\nlanguage: language of a code block\ncontent: content (HTML)\n\n\n\nTo override the rendering of a note type, create the template in your site (or theme), for example layouts\/partials\/notes\/tip.html.twig:\n&lt;div class=\"callout callout-{{ note.type }}\"&gt;\n  {{ note.content|raw }}\n&lt;\/div&gt;\nNotes are rendered when Markdown is converted, before pages rendering: a note template has access to the note variable and to translations (in the page language), but not to page or site.\nSyntax highlight\nCode block syntax highlighting is enabled by default with the pages.body.highlight option.\nIf needed, you can disable it with:\npages:\n  body:\n    highlight: false\nExample:\n\n```php\necho \"Hello world\";\n```\n\nIs rendered to:\necho \"Hello world\";\nYou can customize the syntax highlighting style by creating your own theme. See the Highlight.js Theme Guide.\nYou can also use tempest\/highlight instead of highlight.js with the pages.body.highlight.engine option. It's faster, but supports fewer languages. It uses hl-* CSS classes: see the tempest\/highlight themes.\nThe language of a code block is added to the data-lang attribute of the &lt;pre&gt; element (e.g.: &lt;pre data-lang=\"php\"&gt;): the default templates display it as a label.\nInserted text\nRepresents a range of text that has been added.\n++text++\nIs converted to:\n&lt;ins&gt;text&lt;\/ins&gt;",
      "content_html": "<h1>Markdown</h1>\n<p>Cecil supports <a href=\"https://daringfireball.net/projects/markdown/syntax\" target=\"_blank\" rel=\"noopener noreferrer\">Markdown</a> format, but also <a href=\"https://michelf.ca/projects/php-markdown/extra/\" target=\"_blank\" rel=\"noopener noreferrer\">Markdown Extra</a>.</p>\n<p>Cecil also provides <strong>extra features</strong> to enhance your content, see below.</p>\n<h2 id=\"attributes\">Attributes<a class=\"heading-anchor\" href=\"#attributes\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>With <a href=\"https://michelf.ca/projects/php-markdown/extra/\" target=\"_blank\" rel=\"noopener noreferrer\">Markdown Extra</a> you can set an id, class and custom attributes on certain elements using an attribute block.<br>\nFor instance, put the desired attribute(s) after a heading, a fenced code block, a link or an image at the end of the line inside curly brackets, like this:</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\"><span class=\"hljs-section\">## Header {#id .class attribute=value}</span></code></pre>\n<aside class=\"note note-warning\"><p>For an inline element, like a link, you must use a line break after the closing brace:</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">Lorem ipsum [<span class=\"hljs-string\">dolor</span>](<span class=\"hljs-link\">url</span>){attribute=value} \nsit amet.</code></pre></aside>\n<h2 id=\"links\">Links<a class=\"heading-anchor\" href=\"#links\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>You can create a link with the syntax <code translate=\"no\">[Text](url)</code>, where <code translate=\"no\">url</code> can be a path, a relative path to a Markdown file, an external URL, etc.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">[<span class=\"hljs-string\">Link to a path</span>](<span class=\"hljs-link\">/about/</span>)\n[<span class=\"hljs-string\">Link to a Markdown file</span>](<span class=\"hljs-link\">about.md</span>)\n[<span class=\"hljs-string\">Link to Cecil website</span>](<span class=\"hljs-link\">https://cecil.app</span>)</code></pre>\n<aside class=\"note note-info\"><p>A relative link to a Markdown file is resolved from the folder of the current file (as on GitHub), then replaced by the URL of the targeted page.</p></aside>\n<h3 id=\"link-to-a-page\">Link to a page<a class=\"heading-anchor\" href=\"#link-to-a-page\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>You can easily create a link to a page with the syntax <code translate=\"no\">[Page title](page:page-id)</code>.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">[<span class=\"hljs-string\">Link to a blog post</span>](<span class=\"hljs-link\">page:blog/post-1</span>)</code></pre>\n<h3 id=\"external\">External<a class=\"heading-anchor\" href=\"#external\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>By default external links have the following value for <code translate=\"no\">rel</code> attribute: <code translate=\"no\">noopener noreferrer</code>.</p>\n<aside class=\"note note-info\"><p>A link is considered external if its URL starts with <code translate=\"no\">http</code> but not with the <a href=\"../configuration/1-site.md#baseurl\"><code translate=\"no\">baseurl</code></a>: <code translate=\"no\">baseurl</code> must be defined.</p></aside>\n<p><em>Example:</em></p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">\"&lt;url&gt;\"</span> <span class=\"hljs-attr\">rel</span>=<span class=\"hljs-string\">\"noopener noreferrer\"</span>&gt;</span>Link to another website<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">a</span>&gt;</span></code></pre>\n<p>You can change this behavior with <a href=\"../configuration/4-pages.md#pages-body-links\"><code translate=\"no\">pages.body.links.external</code> options</a>.</p>\n<h3 id=\"embedded-links\">Embedded links<a class=\"heading-anchor\" href=\"#embedded-links\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Cecil can try to turn a link into embedded content by using the <code translate=\"no\">{embed}</code> attribute or by setting the global configuration option <code translate=\"no\">pages.body.links.embed.enabled</code> to <code translate=\"no\">true</code>.</p>\n<aside class=\"note note-important\"><p>Only <strong>YouTube</strong>, <strong>Vimeo</strong>, <strong>Dailymotion</strong>, and <strong>GitHub Gists</strong> links are supported.</p></aside>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">[<span class=\"hljs-string\">CECIL : LE générateur de SITES STATIQUES en PHP</span>](<span class=\"hljs-link\">https://www.youtube.com/watch?v=ur8koU0iYvc</span>){embed}</code></pre>\n<p><div style=\"position:relative;padding-bottom:56.25%;height:0;overflow:hidden;\">\n<iframe src=\"https://www.youtube-nocookie.com/embed/ur8koU0iYvc\" loading=\"lazy\" width=\"640\" height=\"360\" title=\"CECIL : LE générateur de SITES STATIQUES en PHP\" frameborder=\"0\" allow=\"accelerometer;autoplay;encrypted-media;gyroscope;picture-in-picture;fullscreen;web-share;\" allowfullscreen=\"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;border:0;background-color:#d8d8d8;\"></iframe>\n</div></p>\n<h4 id=\"local-video-audio-files\">Local video/audio files</h4>\n<p>Cecil can also create <code translate=\"no\">&lt;video&gt;</code> and <code translate=\"no\">&lt;audio&gt;</code> HTML elements, based on the file extension (<code translate=\"no\">mp4</code> and <code translate=\"no\">webm</code> for video, <code translate=\"no\">mp3</code>, <code translate=\"no\">ogg</code> and <code translate=\"no\">wav</code> for audio, see <a href=\"../configuration/4-pages.md#pages-body-links\"><code translate=\"no\">pages.body.links.embed</code></a>).</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">[<span class=\"hljs-string\">Video file</span>](<span class=\"hljs-link\">video.mp4</span>){embed controls poster=/images/video-test.png}\n[<span class=\"hljs-string\">Audio file</span>](<span class=\"hljs-link\">song.mp3</span>){embed controls}</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">video</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/video.mp4\"</span> <span class=\"hljs-attr\">controls</span> <span class=\"hljs-attr\">poster</span>=<span class=\"hljs-string\">\"/images/video-test.png\"</span> <span class=\"hljs-attr\">style</span>=<span class=\"hljs-string\">\"max-width:100%;height:auto;background-color:#d8d8d8;\"</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">video</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">audio</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/song.mp3\"</span> <span class=\"hljs-attr\">controls</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">audio</span>&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>Without the <code translate=\"no\">controls</code> attribute, a video gets the <code translate=\"no\">autoplay</code>, <code translate=\"no\">loop</code>, <code translate=\"no\">muted</code> and <code translate=\"no\">playsinline</code> attributes.</p></aside>\n<p>With <code translate=\"no\">{embed=false}</code> (or when embedding is disabled), a local video/audio file stays a link, but its URL points to the published file (fingerprinted if <a href=\"../configuration/6-assets.md\"><code translate=\"no\">assets.fingerprint</code></a> is enabled).</p>\n<h2 id=\"images\">Images<a class=\"heading-anchor\" href=\"#images\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>To add an image, use an exclamation mark (<code translate=\"no\">!</code>) followed by an alternative description in brackets (<code translate=\"no\">[]</code>), and the path or URL to the image in parentheses (<code translate=\"no\">()</code>).<br>\nYou can optionally add a title in quotation marks.</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![<span class=\"hljs-string\">Alternative description</span>](<span class=\"hljs-link\">/image.jpg \"Image title\"</span>)</code></pre>\n<aside class=\"note note-info\"><p>The path should be relative to the root of your website (e.g.: <code translate=\"no\">/image.jpg</code>), however Cecil is able to normalize a path relative to <em>assets</em> and <em>static</em> directories (e.g.: <code translate=\"no\">../../assets/image.jpg</code>).</p></aside>\n<aside class=\"note note-info\"><p>Remote images (e.g.: <code translate=\"no\">https://example.com/image.jpg</code>) are downloaded and handled as <em>Assets</em>, so they can be resized and converted. You can disable this behavior, or define a fallback image, with the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">remote</code> option</a>.</p></aside>\n<h3 id=\"lazy-loading\">Lazy loading<a class=\"heading-anchor\" href=\"#lazy-loading\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Cecil adds the attribute <code translate=\"no\">loading=\"lazy\"</code> to each image.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg)</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/image.jpg\"</span> <span class=\"hljs-attr\">loading</span>=<span class=\"hljs-string\">\"lazy\"</span>&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>You can disable this behavior with the attribute <code translate=\"no\">{loading=eager}</code> or with the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">lazy</code> option</a>.</p></aside>\n<h3 id=\"decoding\">Decoding<a class=\"heading-anchor\" href=\"#decoding\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Cecil adds the attribute <code translate=\"no\">decoding=\"async\"</code> to each image.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg)</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/image.jpg\"</span> <span class=\"hljs-attr\">decoding</span>=<span class=\"hljs-string\">\"async\"</span>&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>You can disable this behavior with the attribute <code translate=\"no\">{decoding=auto}</code> or with the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">decoding</code> option</a>.</p></aside>\n<h3 id=\"resize\">Resize<a class=\"heading-anchor\" href=\"#resize\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>Each image in the <em>body</em> can be resized automatically by setting a smaller width than the original one, with the extra attribute <code translate=\"no\">{width=X}</code>.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg){width=800}</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/thumbnails/800/image.jpg\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"800\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"600\"</span>&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>Ratio is preserved (<code translate=\"no\">height</code> attribute is calculated automatically), the original file is not altered and the resized version is stored in <code translate=\"no\">/thumbnails/&lt;width&gt;/</code>.</p></aside>\n<aside class=\"note note-tip\"><p>You can also resize all images to a maximum width with the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">resize</code> option</a>.</p></aside>\n<aside class=\"note note-important\"><p>This feature requires an image processing library: <a href=\"https://www.php.net/manual/book.imagick.php\" target=\"_blank\" rel=\"noopener noreferrer\">Imagick</a> is used first if available (and able to read JPEG and PNG), then <a href=\"https://www.libvips.org/\" target=\"_blank\" rel=\"noopener noreferrer\">libvips</a> (through the PHP <a href=\"https://www.php.net/manual/book.ffi.php\" target=\"_blank\" rel=\"noopener noreferrer\">FFI</a> extension), and finally <a href=\"https://www.php.net/manual/book.image.php\" target=\"_blank\" rel=\"noopener noreferrer\">GD</a> as fallback; otherwise it only adds a <code translate=\"no\">width</code> HTML attribute to the <code translate=\"no\">img</code> tag.</p></aside>\n<aside class=\"note note-info\"><p>libvips support is optional and is not bundled with <code translate=\"no\">cecil.phar</code>. To use it, Cecil must be installed with <a href=\"https://getcomposer.org\" target=\"_blank\" rel=\"noopener noreferrer\">Composer</a>, and you need:</p>\n<ol>\n<li><a href=\"https://www.libvips.org/install.html\" target=\"_blank\" rel=\"noopener noreferrer\">libvips</a> installed on your system</li>\n<li>the PHP <a href=\"https://www.php.net/manual/book.ffi.php\" target=\"_blank\" rel=\"noopener noreferrer\">FFI</a> extension enabled</li>\n<li>the <code translate=\"no\">intervention/image-driver-vips</code> package installed alongside Cecil</li>\n</ol>\n<p>If Cecil is a dependency of your project (see <a href=\"../developers/2-library.md#libvips-support\">Library</a>):</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">composer require intervention/image-driver-vips</code></pre>\n<p>If Cecil is installed globally:</p>\n<pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">composer global require cecil/cecil intervention/image-driver-vips</code></pre></aside>\n<h3 id=\"formats\">Formats<a class=\"heading-anchor\" href=\"#formats\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>If the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">formats</code> option</a> is defined, alternative images are created and added.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg)</code></pre>\n<p>Could be converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">picture</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">source</span> <span class=\"hljs-attr\">srcset</span>=<span class=\"hljs-string\">\"/image.avif\"</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"image/avif\"</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">source</span> <span class=\"hljs-attr\">srcset</span>=<span class=\"hljs-string\">\"/image.webp\"</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"image/webp\"</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/image.jpg\"</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">picture</span>&gt;</span></code></pre>\n<aside class=\"note note-important\"><p>Please note that <strong>not all image formats</strong> are always included in the PHP image extensions.</p></aside>\n<h3 id=\"responsive\">Responsive<a class=\"heading-anchor\" href=\"#responsive\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>If the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">responsive</code> option</a> is enabled, then all images in the <em>body</em> will be made responsive automatically.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg){width=800}</code></pre>\n<p>will be converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/thumbnails/800/image.jpg\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"800\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"600\"</span>\n  <span class=\"hljs-attr\">srcset</span>=<span class=\"hljs-string\">\"/thumbnails/480/image.jpg 480w,\n          /thumbnails/640/image.jpg 640w,\n          /thumbnails/768/image.jpg 768w,\n          /thumbnails/800/image.jpg 800w\"</span>\n  <span class=\"hljs-attr\">sizes</span>=<span class=\"hljs-string\">\"100vw\"</span>\n&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>Because a body image is converted into an <a href=\"../assets/index.md#asset\">Asset</a>, the different widths are defined (and can be changed) in the <code translate=\"no\">assets.images.responsive.widths</code> option of the <a href=\"../configuration/6-assets.md\">assets configuration</a>.</p></aside>\n<p>The <code translate=\"no\">sizes</code> attribute takes the value of the <code translate=\"no\">assets.images.responsive.sizes.default</code> configuration option, but it can be changed by creating a new entry named after a <em>class</em> added to the image.</p>\n<p><em>Example:</em></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\">responsive:</span>\n      <span class=\"hljs-attr\">sizes:</span>\n        <span class=\"hljs-attr\">default:</span> <span class=\"hljs-string\">100vw</span>\n        <span class=\"hljs-attr\">my_class:</span> <span class=\"hljs-string\">\"(max-width: 800px) 768px, 1024px\"</span></code></pre>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg){.my_class}</code></pre>\n<aside class=\"note note-info\"><p>You can combine <code translate=\"no\">formats</code> and <code translate=\"no\">responsive</code> options.</p></aside>\n<h3 id=\"css-class\">CSS class<a class=\"heading-anchor\" href=\"#css-class\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>You can set a default value to the <code translate=\"no\">class</code> attribute of each image with the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">class</code> option</a>.</p>\n<h3 id=\"caption\">Caption<a class=\"heading-anchor\" href=\"#caption\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>The optional title can be used to create a caption (<code translate=\"no\">figcaption</code>) automatically by enabling the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">caption</code> option</a>.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/image.jpg \"Title\")</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">figure</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"/image.jpg\"</span> <span class=\"hljs-attr\">title</span>=<span class=\"hljs-string\">\"Title\"</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">figcaption</span>&gt;</span>Title<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">figcaption</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">figure</span>&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>Caption supports Markdown content.</p></aside>\n<h3 id=\"localized-image\">Localized image<a class=\"heading-anchor\" href=\"#localized-image\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>For translated pages, Cecil first looks for a language-suffixed file when resolving Markdown image paths.</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/images/cecil-logo.png)</code></pre>\n<p>With a French page (<code translate=\"no\">fr</code>), Cecil tries <code translate=\"no\">/images/cecil-logo.fr.png</code> first, then falls back to <code translate=\"no\">/images/cecil-logo.png</code>.</p>\n<h3 id=\"dark-and-mobile-variants\">Dark and mobile variants<a class=\"heading-anchor\" href=\"#dark-and-mobile-variants\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>If the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">dark_suffix</code> option</a> is defined (e.g.: <code translate=\"no\">.dark</code>), Cecil looks for a dark variant of each image (e.g.: <code translate=\"no\">image.dark.jpg</code> alongside <code translate=\"no\">image.jpg</code>) and adds it as a <code translate=\"no\">&lt;source media=\"(prefers-color-scheme: dark)\"&gt;</code> in a <code translate=\"no\">&lt;picture&gt;</code> element.</p>\n<p>In the same way, if the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">mobile_suffix</code> option</a> is defined (e.g.: <code translate=\"no\">.mobile</code>), Cecil looks for a mobile variant of each image (e.g.: <code translate=\"no\">image.mobile.jpg</code>) and adds it as a <code translate=\"no\">&lt;source&gt;</code> with the <code translate=\"no\">mobile_media_query</code> media query.</p>\n<h3 id=\"placeholder\">Placeholder<a class=\"heading-anchor\" href=\"#placeholder\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>As images are typically heavier and slower resources, and they don’t block rendering, we should attempt to give users something to look at while they wait for the image to arrive.</p>\n<p>The <code translate=\"no\">placeholder</code> attribute accepts two options:</p>\n<ol>\n<li><code translate=\"no\">color</code>: display a colored background (based on image dominant color)</li>\n<li><code translate=\"no\">lqip</code>: <a href=\"https://www.guypo.com/introducing-lqip-low-quality-image-placeholders\" target=\"_blank\" rel=\"noopener noreferrer\">Low-Quality Image Placeholder</a></li>\n</ol>\n<p><em>Examples:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">![](/images/img.jpg){placeholder=color}\n![](/images/img.jpg){placeholder=lqip}</code></pre>\n<aside class=\"note note-tip\"><p>You can set a value to the <code translate=\"no\">placeholder</code> attribute for each image with the <a href=\"../configuration/4-pages.md#pages-body-images\"><code translate=\"no\">placeholder</code> option</a>.</p></aside>\n<aside class=\"note note-warning\"><p>Placeholders are only applied to JPEG, PNG and GIF images, and the <code translate=\"no\">lqip</code> option is not compatible with animated GIF.</p></aside>\n<h2 id=\"heading-anchors\">Heading anchors<a class=\"heading-anchor\" href=\"#heading-anchors\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>An anchor link is added at the end of <code translate=\"no\">h2</code> and <code translate=\"no\">h3</code> headings (see the <a href=\"../configuration/4-pages.md#pages-body-anchors\"><code translate=\"no\">pages.body.anchors</code></a> option), to link to a heading of a page:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">h2</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"heading\"</span>&gt;</span>Heading<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"heading-anchor\"</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">\"#heading\"</span> <span class=\"hljs-attr\">aria-hidden</span>=<span class=\"hljs-string\">\"true\"</span> <span class=\"hljs-attr\">tabindex</span>=<span class=\"hljs-string\">\"-1\"</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">a</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">h2</span>&gt;</span></code></pre>\n<p>The link is empty: the default templates display a <code translate=\"no\">#</code> on hover.</p>\n<h2 id=\"table-of-contents\">Table of contents<a class=\"heading-anchor\" href=\"#table-of-contents\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>You can add a table of contents with the following Markdown syntax:</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">[toc]</code></pre>\n<aside class=\"note note-info\"><p>By default, the ToC extracts H2 and H3 headings. You can change this behavior with <a href=\"../configuration/4-pages.md#pages-body\">body options</a>.</p></aside>\n<h2 id=\"excerpt\">Excerpt<a class=\"heading-anchor\" href=\"#excerpt\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>An excerpt can be defined in the <em>body</em> with one of the following HTML comments: <code translate=\"no\">&lt;!-- excerpt --&gt;</code> or <code translate=\"no\">&lt;!-- break --&gt;</code> (see the <a href=\"../configuration/4-pages.md#pages-body-excerpt\"><code translate=\"no\">pages.body.excerpt</code> option</a>).</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\">Introduction.\n<span class=\"hljs-comment\">&lt;!-- excerpt --&gt;</span>\nMain content.</code></pre>\n<p>Then use the <a href=\"../templates/reference/3-filters.md#excerpt-html\"><code translate=\"no\">excerpt_html</code> filter</a> in your template.</p>\n<h2 id=\"notes\">Notes<a class=\"heading-anchor\" href=\"#notes\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Create a <em>Note</em> block (info, tip, important, etc.).</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">:::tip\n<span class=\"hljs-strong\">**Tip:**</span> This is advice.\n:::</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">aside</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"note note-tip\"</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p</span>&gt;</span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">strong</span>&gt;</span>Tip:<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">strong</span>&gt;</span> This is advice.\n  <span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">p</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">aside</span>&gt;</span></code></pre>\n<aside class=\"note note-tip\"><p><strong>Tip:</strong> This is advice.</p></aside>\n<aside class=\"note note-info\"><p>Any type name can be used: it is added to the <code translate=\"no\">class</code> attribute as <code translate=\"no\">note-&lt;type&gt;</code> (e.g.: <code translate=\"no\">:::danger</code> gives <code translate=\"no\">class=\"note note-danger\"</code>).</p></aside>\n<p><em>Other examples:</em></p>\n<aside class=\"note\"><p>empty</p></aside>\n<aside class=\"note note-info\"><p>info</p></aside>\n<aside class=\"note note-tip\"><p>tip</p></aside>\n<aside class=\"note note-important\"><p>important</p></aside>\n<aside class=\"note note-warning\"><p>warning</p></aside>\n<aside class=\"note note-caution\"><p>caution</p></aside>\n<h3 id=\"nested-notes\">Nested notes<a class=\"heading-anchor\" href=\"#nested-notes\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>A note is closed by a line made of at least as many <code translate=\"no\">:</code> as its opening line: to nest notes, use a longer fence for the parent note (<code translate=\"no\">::::</code>, then <code translate=\"no\">:::::</code> for a third level, etc.).</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">::::info\nBefore.\n\n:::tip\n<span class=\"hljs-strong\">**Tip:**</span> This is advice.\n:::\n\nAfter.\n::::</code></pre>\n<aside class=\"note note-info\"><p>Before.</p>\n<aside class=\"note note-tip\"><p><strong>Tip:</strong> This is advice.</p></aside>\n<p>After.</p></aside>\n<p>A longer fence also lets you show the note syntax in a code block, inside a note.</p>\n<h3 id=\"templates\">Templates<a class=\"heading-anchor\" href=\"#templates\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<p>A note is rendered with the <code translate=\"no\">partials/notes/&lt;type&gt;.html.twig</code> template, if it exists (in the site <code translate=\"no\">layouts/</code>, in a theme or built-in), instead of the <code translate=\"no\">&lt;aside&gt;</code> element.</p>\n<p>Cecil provides templates for the following types, rendered without JavaScript: a theme can style them, override them and add interactivity. Unlike other notes, their root element is a <code translate=\"no\">&lt;div class=\"note note-&lt;type&gt;\"&gt;</code> (not an <code translate=\"no\">&lt;aside&gt;</code>), as their content is part of the main content.</p>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Items</th>\n<th>Rendering</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code translate=\"no\">tabs</code></td>\n<td>one per <code translate=\"no\">####</code> heading</td>\n<td>stacked panels (<code translate=\"no\">&lt;section class=\"note-tab\"&gt;</code>)</td>\n</tr>\n<tr>\n<td><code translate=\"no\">code-group</code></td>\n<td>one per <code translate=\"no\">####</code> heading, or one per code block (titled with its language)</td>\n<td>same as <code translate=\"no\">tabs</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">steps</code></td>\n<td>one per <code translate=\"no\">####</code> heading</td>\n<td>ordered list (<code translate=\"no\">&lt;ol class=\"note-steps-list\"&gt;</code>)</td>\n</tr>\n<tr>\n<td><code translate=\"no\">accordion</code></td>\n<td>one per <code translate=\"no\">####</code> heading</td>\n<td><code translate=\"no\">&lt;details class=\"note-accordion-item\"&gt;</code></td>\n</tr>\n<tr>\n<td><code translate=\"no\">cards</code></td>\n<td>one per list entry (a leading link is the card title), or per <code translate=\"no\">####</code> heading</td>\n<td>list (<code translate=\"no\">&lt;ul class=\"note-cards-list\"&gt;</code>)</td>\n</tr>\n</tbody>\n</table>\n<p>The examples below are themselves nested notes: a <code translate=\"no\">tabs</code> note (with a <code translate=\"no\">::::</code> fence) shows the Markdown source and its rendering.</p>\n<h4 id=\"tabs\">Tabs</h4>\n<p>Alternative contents, one per <code translate=\"no\">####</code> heading (e.g.: per operating system).</p>\n<div class=\"note note-tabs\" id=\"note-tabs-1\">\n  <section class=\"note-tab\" id=\"note-tabs-1-1\">\n    <h4 id=\"markdown\">Markdown</h4>\n    <pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">:::tabs\n<span class=\"hljs-section\">#### macOS and Linux</span>\n\n<span class=\"hljs-code\">```bash\nbrew install cecilapp/tap/cecil\n```</span>\n\n<span class=\"hljs-section\">#### Windows</span>\n\n<span class=\"hljs-code\">```bash\nscoop install https://cecil.app/scoop/cecil.json\n```</span>\n:::</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-tabs-1-2\">\n    <h4 id=\"result\">Result</h4>\n    <div class=\"note note-tabs\" id=\"note-tabs-2\">\n  <section class=\"note-tab\" id=\"note-tabs-2-1\">\n    <h4 id=\"macos-and-linux\">macOS and Linux</h4>\n    <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">brew install cecilapp/tap/cecil</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-tabs-2-2\">\n    <h4 id=\"windows\">Windows</h4>\n    <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">scoop install https://cecil.app/scoop/cecil.json</code></pre>\n  </section>\n</div>\n  </section>\n</div>\n<h4 id=\"code-group\">Code group</h4>\n<p>Like <code translate=\"no\">tabs</code>, with code blocks only: without heading, each code block is titled with its language.</p>\n<div class=\"note note-tabs\" id=\"note-tabs-3\">\n  <section class=\"note-tab\" id=\"note-tabs-3-1\">\n    <h4 id=\"markdown-1\">Markdown</h4>\n    <pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">:::code-group\n<span class=\"hljs-code\">```bash\ncurl -LO https://cecil.app/cecil.phar\n```</span>\n\n<span class=\"hljs-code\">```powershell\nInvoke-WebRequest https://cecil.app/cecil.phar -OutFile cecil.phar\n```</span>\n:::</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-tabs-3-2\">\n    <h4 id=\"result-1\">Result</h4>\n    <div class=\"note note-code-group\" id=\"note-code-group-4\">\n  <section class=\"note-tab\" id=\"note-code-group-4-1\">\n    <p class=\"note-tab-title\">bash</p>\n    <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">curl -LO https://cecil.app/cecil.phar</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-code-group-4-2\">\n    <p class=\"note-tab-title\">powershell</p>\n    <pre data-lang=\"powershell\"><code class=\"language-powershell hljs powershell\" translate=\"no\"><span class=\"hljs-built_in\">Invoke-WebRequest</span> https://cecil.app/cecil.phar <span class=\"hljs-literal\">-OutFile</span> cecil.phar</code></pre>\n  </section>\n</div>\n  </section>\n</div>\n<h4 id=\"steps\">Steps</h4>\n<p>A numbered procedure, one step per <code translate=\"no\">####</code> heading.</p>\n<div class=\"note note-tabs\" id=\"note-tabs-5\">\n  <section class=\"note-tab\" id=\"note-tabs-5-1\">\n    <h4 id=\"markdown-2\">Markdown</h4>\n    <pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">:::steps\n<span class=\"hljs-section\">#### Create a site</span>\n\n<span class=\"hljs-code\">```bash\nphp cecil.phar new:site\n```</span>\n\n<span class=\"hljs-section\">#### Preview it</span>\n\n<span class=\"hljs-code\">```bash\nphp cecil.phar serve\n```</span>\n:::</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-tabs-5-2\">\n    <h4 id=\"result-2\">Result</h4>\n    <div class=\"note note-steps\" id=\"note-steps-6\">\n  <ol class=\"note-steps-list\">\n    <li class=\"note-step\">\n      <h4 id=\"create-a-site\">Create a site</h4>\n      <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">php cecil.phar new:site</code></pre>\n    </li>\n    <li class=\"note-step\">\n      <h4 id=\"preview-it\">Preview it</h4>\n      <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">php cecil.phar serve</code></pre>\n    </li>\n  </ol>\n</div>\n  </section>\n</div>\n<h4 id=\"accordion\">Accordion</h4>\n<p>Collapsible items, one per <code translate=\"no\">####</code> heading (e.g.: a FAQ).</p>\n<div class=\"note note-tabs\" id=\"note-tabs-7\">\n  <section class=\"note-tab\" id=\"note-tabs-7-1\">\n    <h4 id=\"markdown-3\">Markdown</h4>\n    <pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">:::accordion\n<span class=\"hljs-section\">#### Is PHP required?</span>\n\nNo: the standalone binary embeds PHP.\n\n<span class=\"hljs-section\">#### Where is the generated site?</span>\n\nIn the <span class=\"hljs-code\">`_site`</span> directory.\n:::</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-tabs-7-2\">\n    <h4 id=\"result-3\">Result</h4>\n    <div class=\"note note-accordion\" id=\"note-accordion-8\">\n  <details class=\"note-accordion-item\" id=\"is-php-required\">\n    <summary>Is PHP required?</summary>\n    <div class=\"note-accordion-content\">\n      <p>No: the standalone binary embeds PHP.</p>\n    </div>\n  </details>\n  <details class=\"note-accordion-item\" id=\"where-is-the-generated-site\">\n    <summary>Where is the generated site?</summary>\n    <div class=\"note-accordion-content\">\n      <p>In the <code translate=\"no\">_site</code> directory.</p>\n    </div>\n  </details>\n</div>\n  </section>\n</div>\n<h4 id=\"cards\">Cards</h4>\n<p>Links to other pages, one card per list entry: a leading link is the card title.</p>\n<div class=\"note note-tabs\" id=\"note-tabs-9\">\n  <section class=\"note-tab\" id=\"note-tabs-9-1\">\n    <h4 id=\"markdown-4\">Markdown</h4>\n    <pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">:::cards\n<span class=\"hljs-bullet\">- </span>[<span class=\"hljs-string\">Installation</span>](<span class=\"hljs-link\">../getting-started/2-installation.md</span>): download and install Cecil.\n<span class=\"hljs-bullet\">- </span>[<span class=\"hljs-string\">Configuration</span>](<span class=\"hljs-link\">../configuration/index.md</span>): configure your site.\n:::</code></pre>\n  </section>\n  <section class=\"note-tab\" id=\"note-tabs-9-2\">\n    <h4 id=\"result-4\">Result</h4>\n    <div class=\"note note-cards\" id=\"note-cards-10\">\n  <ul class=\"note-cards-list\">\n    <li class=\"note-card\">\n      <p class=\"note-card-title\"><a href=\"../getting-started/2-installation.md\">Installation</a></p>\n      <div class=\"note-card-content\">download and install Cecil.</div>\n    </li>\n    <li class=\"note-card\">\n      <p class=\"note-card-title\"><a href=\"../configuration/index.md\">Configuration</a></p>\n      <div class=\"note-card-content\">configure your site.</div>\n    </li>\n  </ul>\n</div>\n  </section>\n</div>\n<h4 id=\"custom-template\">Custom template</h4>\n<p>The template receives a <code translate=\"no\">note</code> variable:</p>\n<ul>\n<li><code translate=\"no\">note.type</code>: note type (e.g.: <code translate=\"no\">tabs</code>)</li>\n<li><code translate=\"no\">note.id</code>: unique ID in the page (e.g.: <code translate=\"no\">note-tabs-1</code>)</li>\n<li><code translate=\"no\">note.content</code>: HTML of the whole note</li>\n<li><code translate=\"no\">note.intro</code>: HTML of the content before the first <code translate=\"no\">####</code> heading</li>\n<li><code translate=\"no\">note.items</code>: list of items, each with:<ul>\n<li><code translate=\"no\">title</code>: title (HTML)</li>\n<li><code translate=\"no\">heading</code>: heading element (HTML), with its <code translate=\"no\">id</code> attribute</li>\n<li><code translate=\"no\">id</code>: heading ID, if any</li>\n<li><code translate=\"no\">link</code>: leading link element (HTML) of a list entry</li>\n<li><code translate=\"no\">url</code>: leading link URL of a list entry</li>\n<li><code translate=\"no\">language</code>: language of a code block</li>\n<li><code translate=\"no\">content</code>: content (HTML)</li>\n</ul>\n</li>\n</ul>\n<p>To override the rendering of a note type, create the template in your site (or theme), for example <code translate=\"no\">layouts/partials/notes/tip.html.twig</code>:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"callout callout-</span></span></span><span class=\"hljs-template-variable\">{{ note.type }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span>&gt;</span>\n  </span><span class=\"hljs-template-variable\">{{ note.content|<span class=\"hljs-keyword\">raw</span> }}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></span></code></pre>\n<aside class=\"note note-info\"><p>Notes are rendered when Markdown is converted, before pages rendering: a note template has access to the <code translate=\"no\">note</code> variable and to translations (in the page language), but not to <code translate=\"no\">page</code> or <code translate=\"no\">site</code>.</p></aside>\n<h2 id=\"syntax-highlight\">Syntax highlight<a class=\"heading-anchor\" href=\"#syntax-highlight\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Code block syntax highlighting is enabled by default with the <a href=\"../configuration/4-pages.md#pages-body-highlight\"><code translate=\"no\">pages.body.highlight</code></a> option.</p>\n<p>If needed, you can disable it with:</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></code></pre>\n<p><em>Example:</em></p>\n<pre>\n```php\necho \"Hello world\";\n```\n</pre>\n<p>Is rendered to:</p>\n<pre data-lang=\"php\"><code class=\"language-php hljs php\" translate=\"no\"><span class=\"hljs-keyword\">echo</span> <span class=\"hljs-string\">\"Hello world\"</span>;</code></pre>\n<aside class=\"note note-info\"><p>You can customize the syntax highlighting style by creating your own theme. See the <a href=\"https://highlightjs.readthedocs.io/en/latest/theme-guide.html\" target=\"_blank\" rel=\"noopener noreferrer\">Highlight.js Theme Guide</a>.</p></aside>\n<aside class=\"note note-tip\"><p>You can also use <a href=\"https://github.com/tempestphp/highlight\" target=\"_blank\" rel=\"noopener noreferrer\">tempest/highlight</a> instead of highlight.js with the <a href=\"../configuration/4-pages.md#pages-body-highlight\"><code translate=\"no\">pages.body.highlight.engine</code></a> option. It's faster, but supports fewer languages. It uses <code translate=\"no\">hl-*</code> CSS classes: see the <a href=\"https://github.com/tempestphp/highlight/tree/main/src/Themes/Css\" target=\"_blank\" rel=\"noopener noreferrer\">tempest/highlight themes</a>.</p></aside>\n<p>The language of a code block is added to the <code translate=\"no\">data-lang</code> attribute of the <code translate=\"no\">&lt;pre&gt;</code> element (e.g.: <code translate=\"no\">&lt;pre data-lang=\"php\"&gt;</code>): the default templates display it as a label.</p>\n<h2 id=\"inserted-text\">Inserted text<a class=\"heading-anchor\" href=\"#inserted-text\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Represents a range of text that has been added.</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">++text++</code></pre>\n<p>Is converted to:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">ins</span>&gt;</span>text<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">ins</span>&gt;</span></code></pre>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/content/multilingual/",
      "url": "https://cloudflare.cecil.app/documentation/content/multilingual/",
      "title": "Multilingual",
      "summary": "Translate pages through file name or front matter and link translated pages.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-24T00:00:00+00:00","content_text": "Multilingual\nIf your pages are available in multiple languages, there are two ways to define them:\nThrough file name\nThis is the most common way to translate a page from the main language to another language.\nYou just need to duplicate the reference page and add the target language code as a suffix, before the extension (e.g.: about.fr.md). The code must be one of the declared languages (format fr or fr-FR).\nExample:\n├─ about.md    # the reference page\n└─ about.fr.md # the French version (`fr`)\nYou can change the URL of the translated page with the slug variable in its front matter. For example, in about.fr.md:\n---\nslug: a-propos\n---\n# about.md    -&gt; \/about\/\n# about.fr.md -&gt; \/fr\/a-propos\/\nThrough front matter\nIf you want to create a page in a language other than the main language, without it being a translation of an existing page, you can use the language variable in its front matter.\nExample:\n---\nlanguage: fr\n---\nLink translated pages\nEach translated page references its versions in other languages.\nThis collection of pages is available in templates with the following variable:\n{{ page.translations }}\nTranslations are linked by their langref variable: by default, the page path without language (e.g.: about for about.md and about.fr.md).\nYou can change it in the front matter, for example to link translated pages with different file names:\n---\nlangref: my-page-ref\n---\nSearch engines\nThe built-in templates declare translated pages to search engines with hreflang alternates, in the HTML &lt;head&gt; and in the XML sitemap:\n\neach page lists itself and its translations\nx-default points to the version in the default language, and is omitted when the page has no version in the default language\n\nThe XML sitemap lists the pages of all languages, including pages that are not translated into the default language.",
      "content_html": "<h1>Multilingual</h1>\n<p>If your pages are available in multiple <a href=\"../configuration/2-languages.md#languages\">languages</a>, there are two ways to define them:</p>\n<h2 id=\"through-file-name\">Through file name<a class=\"heading-anchor\" href=\"#through-file-name\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>This is the most common way to translate a page from the main <a href=\"../configuration/2-languages.md#language\">language</a> to another language.</p>\n<p>You just need to duplicate the reference page and add the target language <code translate=\"no\">code</code> as a suffix, before the extension (e.g.: <code translate=\"no\">about.fr.md</code>). The code must be one of the declared <a href=\"../configuration/2-languages.md#languages\">languages</a> (format <code translate=\"no\">fr</code> or <code translate=\"no\">fr-FR</code>).</p>\n<p><em>Example:</em></p>\n<pre data-lang=\"plaintext\"><code class=\"language-plaintext hljs plaintext\" translate=\"no\">├─ about.md    # the reference page\n└─ about.fr.md # the French version (`fr`)</code></pre>\n<aside class=\"note note-tip\"><p>You can change the URL of the translated page with the <code translate=\"no\">slug</code> variable in its front matter. For example, in <code translate=\"no\">about.fr.md</code>:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">slug:</span> <span class=\"hljs-string\">a-propos</span>\n<span class=\"hljs-meta\">---</span>\n<span class=\"hljs-comment\"># about.md    -&gt; /about/</span>\n<span class=\"hljs-comment\"># about.fr.md -&gt; /fr/a-propos/</span></code></pre></aside>\n<h2 id=\"through-front-matter\">Through front matter<a class=\"heading-anchor\" href=\"#through-front-matter\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>If you want to create a page in a language other than the main language, without it being a translation of an existing page, you can use the <code translate=\"no\">language</code> variable in its front matter.</p>\n<p><em>Example:</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\">language:</span> <span class=\"hljs-string\">fr</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<h2 id=\"link-translated-pages\">Link translated pages<a class=\"heading-anchor\" href=\"#link-translated-pages\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Each translated page references its versions in other languages.</p>\n<p>This collection of pages is available in <a href=\"../templates/2-variables.md#page\">templates</a> with the following variable:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ page.translations }}</span></code></pre>\n<aside class=\"note note-info\"><p>Translations are linked by their <code translate=\"no\">langref</code> variable: by default, the page path without language (e.g.: <code translate=\"no\">about</code> for <code translate=\"no\">about.md</code> and <code translate=\"no\">about.fr.md</code>).</p>\n<p>You can change it in the front matter, for example to link translated pages with different file names:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">langref:</span> <span class=\"hljs-string\">my-page-ref</span>\n<span class=\"hljs-meta\">---</span></code></pre></aside>\n<h2 id=\"search-engines\">Search engines<a class=\"heading-anchor\" href=\"#search-engines\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The built-in templates declare translated pages to search engines with <code translate=\"no\">hreflang</code> alternates, in the HTML <code translate=\"no\">&lt;head&gt;</code> and in the XML sitemap:</p>\n<ul>\n<li>each page lists itself and its translations</li>\n<li><code translate=\"no\">x-default</code> points to the version in the default language, and is omitted when the page has no version in the default language</li>\n</ul>\n<p>The XML sitemap lists the pages of all languages, including pages that are not translated into the default language.</p>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/content/dynamic-content/",
      "url": "https://cloudflare.cecil.app/documentation/content/dynamic-content/",
      "title": "Dynamic content",
      "summary": "Use variables and Twig expressions inside page content.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "Dynamic content\nBy default, the body of a page is static: Twig syntax written in a Markdown file is output as is.\nYou can create dynamic content in a page by using the template_from_string Twig function, which renders the page content as a Twig template.\n{{ include(template_from_string(page.content, \"dynamic content for page \" ~ page.id)) }}\nWith this, you can use any page variable in the body of the page.\n---\nvar: 'value'\n---\nThe value of `var` is {{ page.var }}.\nEnable dynamic content\nThe recommended way is to create a dedicated layout that overrides the content block, and to use it only for pages that need it.\n{# layouts\/dynamic.html.twig #}\n{% extends '_default\/page.html.twig' %}\n\n{% block content %}\n{{ include(template_from_string(page.content, \"dynamic content for page \" ~ page.id)) }}\n{% endblock content %}\nThen set the layout variable in the front matter of the page:\n---\ntitle: \"My dynamic page\"\nlayout: dynamic\n---\nThe second argument of template_from_string is the name of the template: it is displayed in error messages, so including page.id helps to find the page in error.\nAvailable variables\nThe page content is rendered with the same context as the layout, so you can use:\n\npage variables: page.title, page.date, page.&lt;custom variable&gt;, etc.\nsite variables: site.title, site.pages, site.data, etc.\nall functions, filters and sorts available in templates\nTwig tags: {% set %}, {% if %}, {% for %}, {% include %}, etc.\n\nHow it works\nThe Markdown body is converted to HTML first, then the result (page.content) is rendered by Twig. This order has some consequences:\n\nMarkdown escapes the &lt; and &gt; characters, so comparison operators (&gt;, &lt;=) and arrow functions (=&gt;) can’t be used in the body: the build fails with an Unexpected character \"&amp;\" error.\nA Twig expression used in an HTML attribute (e.g.: href=\"{{ url(post) }}\") is URL encoded by the Markdown converter and won’t be evaluated.\nA Twig expression alone on its own line is wrapped in a &lt;p&gt; element.\nTwig syntax written inside a code span or a code block is evaluated too.\n\nKeep the body simple (variables, filters, short conditions) and move complex markup and logic into a partial template or a macro.\nTo display Twig syntax as is, wrap it in a verbatim tag:\n{% verbatim %}`{{ page.title }}`{% endverbatim %}\nTo avoid an extra &lt;p&gt; element around a block of HTML, wrap the expression in an HTML element, separated by line breaks:\n&lt;div&gt;\n{{ include('partials\/latest-posts.html.twig') }}\n&lt;\/div&gt;\nExample: variables, data and partial template\nThis example shows a page displaying site and page variables, data from a data file, and the latest blog posts through a reusable partial template.\nData file:\n# data\/team.yml\n- name: Alice\n  role: Developer\n- name: Bob\n  role: Designer\nPartial template, which receives section and limit as parameters:\n{# layouts\/partials\/latest-posts.html.twig #}\n{% set posts = site.pages.showable|filter_by('section', section|default('blog'))|sort_by_date|slice(0, limit|default(5)) %}\n{% if posts|length &gt; 0 %}\n&lt;ul class=\"latest-posts\"&gt;\n  {% for post in posts %}\n  &lt;li&gt;&lt;a href=\"{{ url(post) }}\"&gt;{{ post.title }}&lt;\/a&gt; &lt;time datetime=\"{{ post.date|date('Y-m-d') }}\"&gt;{{ post.date|format_date('long') }}&lt;\/time&gt;&lt;\/li&gt;\n  {% endfor %}\n&lt;\/ul&gt;\n{% else %}\n&lt;p&gt;No posts yet.&lt;\/p&gt;\n{% endif %}\nPage:\n---\ntitle: About\nlayout: dynamic\n---\nWelcome to **{{ site.title }}**! This page was published on {{ page.date|format_date('long') }}.\n\nOur team has {{ site.data.team|length }} members: {{ site.data.team|column('name')|join(', ') }}.\n\n## Latest posts\n\n&lt;div&gt;\n{{ include('partials\/latest-posts.html.twig', {section: 'blog', limit: 3}) }}\n&lt;\/div&gt;\nOutput:\n&lt;p&gt;Welcome to &lt;strong&gt;My site&lt;\/strong&gt;! This page was published on October 9, 2026.&lt;\/p&gt;\n&lt;p&gt;Our team has 2 members: Alice, Bob.&lt;\/p&gt;\n&lt;h2 id=\"latest-posts\"&gt;Latest posts&lt;\/h2&gt;\n&lt;div&gt;\n&lt;ul class=\"latest-posts\"&gt;\n  &lt;li&gt;&lt;a href=\"\/blog\/post-3\/\"&gt;Post 3&lt;\/a&gt; &lt;time datetime=\"2026-03-01\"&gt;March 1, 2026&lt;\/time&gt;&lt;\/li&gt;\n  &lt;li&gt;&lt;a href=\"\/blog\/post-2\/\"&gt;Post 2&lt;\/a&gt; &lt;time datetime=\"2026-02-01\"&gt;February 1, 2026&lt;\/time&gt;&lt;\/li&gt;\n  &lt;li&gt;&lt;a href=\"\/blog\/post-1\/\"&gt;Post 1&lt;\/a&gt; &lt;time datetime=\"2026-01-01\"&gt;January 1, 2026&lt;\/time&gt;&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/div&gt;\nThe &gt; operator and the href=\"{{ … }}\" attribute work here because they are written in the partial template, not in the Markdown body.\nExample: shortcodes with macros\nTwig macros can be used as shortcodes to insert rich HTML snippets in the body of a page.\nCreate the macros:\n{# layouts\/macros\/shortcodes.html.twig #}\n{% macro youtube(id, title = 'YouTube video') %}\n&lt;iframe src=\"https:\/\/www.youtube-nocookie.com\/embed\/{{ id }}\" title=\"{{ title }}\" width=\"560\" height=\"315\" loading=\"lazy\" allowfullscreen&gt;&lt;\/iframe&gt;\n{% endmacro %}\n\n{% macro alert(message, type = 'info') %}\n&lt;div class=\"alert alert-{{ type }}\" role=\"alert\"&gt;{{ message }}&lt;\/div&gt;\n{% endmacro %}\nCreate a layout that imports the macros before rendering the content:\n{# layouts\/shortcodes.html.twig #}\n{% extends '_default\/page.html.twig' %}\n\n{% block content %}\n{% set imports = \"{% import 'macros\/shortcodes.html.twig' as sc %}\" %}\n{{ include(template_from_string(imports ~ page.content, \"dynamic content for page \" ~ page.id)) }}\n{% endblock content %}\nUse the shortcodes in a page:\n---\ntitle: \"Demo video\"\nlayout: shortcodes\n---\n&lt;div&gt;\n  {{ sc.alert('This video is in English.', 'warning') }}\n&lt;\/div&gt;\n\n## Demo\n\n&lt;div&gt;\n  {{ sc.youtube('NaB8JBfE7DY', 'Cecil demo') }}\n&lt;\/div&gt;\nOutput:\n&lt;div&gt;\n  &lt;div class=\"alert alert-warning\" role=\"alert\"&gt;This video is in English.&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;h2 id=\"demo\"&gt;Demo&lt;\/h2&gt;\n&lt;div&gt;\n  &lt;iframe src=\"https:\/\/www.youtube-nocookie.com\/embed\/NaB8JBfE7DY\" title=\"Cecil demo\" width=\"560\" height=\"315\" loading=\"lazy\" allowfullscreen&gt;&lt;\/iframe&gt;\n&lt;\/div&gt;\nTo reuse UI elements across templates and pages, see also components.",
      "content_html": "<h1>Dynamic content</h1>\n<p>By default, the body of a page is static: Twig syntax written in a Markdown file is output as is.</p>\n<p>You can create dynamic content in a page by using the <a href=\"https://twig.symfony.com/doc/3.x/functions/template_from_string.html\" target=\"_blank\" rel=\"noopener noreferrer\"><code translate=\"no\">template_from_string</code></a> Twig function, which renders the page content as a Twig template.</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\">(template_from_string(page.content, \"dynamic content for page \" ~ page.id)</span>) }}</span></code></pre>\n<p>With this, you can use any page variable in the <em>body</em> of the page.</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">---\n<span class=\"hljs-section\">var: 'value'\n---</span>\nThe value of <span class=\"hljs-code\">`var`</span> is {{ page.var }}.</code></pre>\n<h2 id=\"enable-dynamic-content\">Enable dynamic content<a class=\"heading-anchor\" href=\"#enable-dynamic-content\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The recommended way is to create a dedicated layout that overrides the <code translate=\"no\">content</code> block, and to use it only for pages that need it.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-comment\">{# layouts/dynamic.html.twig #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">extends</span></span> '_default/page.html.twig' %}</span><span class=\"xml\">\n\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">block</span></span> content %}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ <span class=\"hljs-name\">include</span><span class=\"hljs-params\">(template_from_string(page.content, \"dynamic content for page \" ~ page.id)</span>) }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endblock</span></span> content %}</span></code></pre>\n<p>Then set the <a href=\"2-front-matter.md#predefined-variables\"><code translate=\"no\">layout</code></a> variable in the front matter of the page:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-meta\">---</span>\n<span class=\"hljs-attr\">title:</span> <span class=\"hljs-string\">\"My dynamic page\"</span>\n<span class=\"hljs-attr\">layout:</span> <span class=\"hljs-string\">dynamic</span>\n<span class=\"hljs-meta\">---</span></code></pre>\n<aside class=\"note note-tip\"><p>The second argument of <code translate=\"no\">template_from_string</code> is the name of the template: it is displayed in error messages, so including <code translate=\"no\">page.id</code> helps to find the page in error.</p></aside>\n<h2 id=\"available-variables\">Available variables<a class=\"heading-anchor\" href=\"#available-variables\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The page content is rendered with the same context as the layout, so you can use:</p>\n<ul>\n<li>page variables: <code translate=\"no\">page.title</code>, <code translate=\"no\">page.date</code>, <code translate=\"no\">page.&lt;custom variable&gt;</code>, etc.</li>\n<li>site variables: <code translate=\"no\">site.title</code>, <code translate=\"no\">site.pages</code>, <a href=\"../templates/2-variables.md#site-data\"><code translate=\"no\">site.data</code></a>, etc.</li>\n<li>all <a href=\"../templates/reference/1-functions.md\">functions</a>, <a href=\"../templates/reference/3-filters.md\">filters</a> and <a href=\"../templates/reference/2-sorts.md\">sorts</a> available in templates</li>\n<li>Twig tags: <code translate=\"no\">{% set %}</code>, <code translate=\"no\">{% if %}</code>, <code translate=\"no\">{% for %}</code>, <code translate=\"no\">{% include %}</code>, etc.</li>\n</ul>\n<h2 id=\"how-it-works\">How it works<a class=\"heading-anchor\" href=\"#how-it-works\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>The Markdown body is <strong>converted to HTML first</strong>, then the result (<code translate=\"no\">page.content</code>) is rendered by Twig. This order has some consequences:</p>\n<ul>\n<li>Markdown escapes the <code translate=\"no\">&lt;</code> and <code translate=\"no\">&gt;</code> characters, so comparison operators (<code translate=\"no\">&gt;</code>, <code translate=\"no\">&lt;=</code>) and arrow functions (<code translate=\"no\">=&gt;</code>) can’t be used in the body: the build fails with an <code translate=\"no\">Unexpected character \"&amp;\"</code> error.</li>\n<li>A Twig expression used in an HTML attribute (e.g.: <code translate=\"no\">href=\"{{ url(post) }}\"</code>) is URL encoded by the Markdown converter and won’t be evaluated.</li>\n<li>A Twig expression alone on its own line is wrapped in a <code translate=\"no\">&lt;p&gt;</code> element.</li>\n<li>Twig syntax written inside a code span or a code block <strong>is</strong> evaluated too.</li>\n</ul>\n<aside class=\"note note-tip\"><p>Keep the body simple (variables, filters, short conditions) and move complex markup and logic into a <a href=\"#example-include-a-partial-template\">partial template</a> or a <a href=\"#example-shortcodes-with-macros\">macro</a>.</p></aside>\n<p>To display Twig syntax as is, wrap it in a <code translate=\"no\">verbatim</code> tag:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">verbatim</span></span> %}</span><span class=\"xml\">`</span><span class=\"hljs-template-variable\">{{ page.title }}</span><span class=\"xml\">`</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endverbatim</span></span> %}</span></code></pre>\n<p>To avoid an extra <code translate=\"no\">&lt;p&gt;</code> element around a block of HTML, wrap the expression in an HTML element, separated by line breaks:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span>\n</span><span class=\"hljs-template-variable\">{{ <span class=\"hljs-name\">include</span><span class=\"hljs-params\">('partials/latest-posts.html.twig')</span> }}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></span></code></pre>\n<h2 id=\"example-include-a-partial-template\">Example: variables, data and partial template<a class=\"heading-anchor\" href=\"#example-include-a-partial-template\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>This example shows a page displaying site and page variables, data from a <a href=\"../templates/2-variables.md#site-data\">data file</a>, and the latest blog posts through a reusable partial template.</p>\n<p>Data file:</p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-comment\"># data/team.yml</span>\n<span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">Alice</span>\n  <span class=\"hljs-attr\">role:</span> <span class=\"hljs-string\">Developer</span>\n<span class=\"hljs-bullet\">-</span> <span class=\"hljs-attr\">name:</span> <span class=\"hljs-string\">Bob</span>\n  <span class=\"hljs-attr\">role:</span> <span class=\"hljs-string\">Designer</span></code></pre>\n<p>Partial template, which receives <code translate=\"no\">section</code> and <code translate=\"no\">limit</code> as parameters:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-comment\">{# layouts/partials/latest-posts.html.twig #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">set</span></span> posts = site.pages.showable|filter_by('section', section|<span class=\"hljs-keyword\">default</span>('blog'))|sort_by_date|<span class=\"hljs-keyword\">slice</span>(0, limit|<span class=\"hljs-keyword\">default</span>(5)) %}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">if</span></span> posts|<span class=\"hljs-keyword\">length</span> &gt; 0 %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">ul</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"latest-posts\"</span>&gt;</span>\n  </span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">for</span></span> post in posts %}</span><span class=\"xml\">\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">li</span>&gt;</span><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ url(post) }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span>&gt;</span></span><span class=\"hljs-template-variable\">{{ post.title }}</span><span class=\"xml\"><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">a</span>&gt;</span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">time</span> <span class=\"hljs-attr\">datetime</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ post.<span class=\"hljs-name\">date</span>|<span class=\"hljs-keyword\">date</span>('Y-m-d') }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span>&gt;</span></span><span class=\"hljs-template-variable\">{{ post.<span class=\"hljs-name\">date</span>|format_date('long') }}</span><span class=\"xml\"><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">time</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">li</span>&gt;</span>\n  </span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endfor</span></span> %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">ul</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\">else</span> %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p</span>&gt;</span>No posts yet.<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">p</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endif</span></span> %}</span></code></pre>\n<p>Page:</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">---\ntitle: About\n<span class=\"hljs-section\">layout: dynamic\n---</span>\nWelcome to <span class=\"hljs-strong\">**{{ site.title }}**</span>! This page was published on {{ page.date|format_date('long') }}.\n\nOur team has {{ site.data.team|length }} members: {{ site.data.team|column('name')|join(', ') }}.\n\n<span class=\"hljs-section\">## Latest posts</span>\n\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span></span>\n{{ include('partials/latest-posts.html.twig', {section: 'blog', limit: 3}) }}\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></span></code></pre>\n<p>Output:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p</span>&gt;</span>Welcome to <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">strong</span>&gt;</span>My site<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">strong</span>&gt;</span>! This page was published on October 9, 2026.<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">p</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p</span>&gt;</span>Our team has 2 members: Alice, Bob.<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">p</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">h2</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"latest-posts\"</span>&gt;</span>Latest posts<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">h2</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">ul</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"latest-posts\"</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">li</span>&gt;</span><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">\"/blog/post-3/\"</span>&gt;</span>Post 3<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">a</span>&gt;</span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">time</span> <span class=\"hljs-attr\">datetime</span>=<span class=\"hljs-string\">\"2026-03-01\"</span>&gt;</span>March 1, 2026<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">time</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">li</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">li</span>&gt;</span><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">\"/blog/post-2/\"</span>&gt;</span>Post 2<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">a</span>&gt;</span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">time</span> <span class=\"hljs-attr\">datetime</span>=<span class=\"hljs-string\">\"2026-02-01\"</span>&gt;</span>February 1, 2026<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">time</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">li</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">li</span>&gt;</span><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">a</span> <span class=\"hljs-attr\">href</span>=<span class=\"hljs-string\">\"/blog/post-1/\"</span>&gt;</span>Post 1<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">a</span>&gt;</span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">time</span> <span class=\"hljs-attr\">datetime</span>=<span class=\"hljs-string\">\"2026-01-01\"</span>&gt;</span>January 1, 2026<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">time</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">li</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">ul</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></code></pre>\n<aside class=\"note note-info\"><p>The <code translate=\"no\">&gt;</code> operator and the <code translate=\"no\">href=\"{{ … }}\"</code> attribute work here because they are written in the partial template, not in the Markdown body.</p></aside>\n<h2 id=\"example-shortcodes-with-macros\">Example: shortcodes with macros<a class=\"heading-anchor\" href=\"#example-shortcodes-with-macros\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://twig.symfony.com/doc/3.x/tags/macro.html\" target=\"_blank\" rel=\"noopener noreferrer\">Twig macros</a> can be used as <em>shortcodes</em> to insert rich HTML snippets in the body of a page.</p>\n<p>Create the macros:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-comment\">{# layouts/macros/shortcodes.html.twig #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">macro</span></span> youtube(id, title = 'YouTube video') %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">iframe</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"https://www.youtube-nocookie.com/embed/</span></span></span><span class=\"hljs-template-variable\">{{ id }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">title</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ title }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"560\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"315\"</span> <span class=\"hljs-attr\">loading</span>=<span class=\"hljs-string\">\"lazy\"</span> <span class=\"hljs-attr\">allowfullscreen</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">iframe</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endmacro</span></span> %}</span><span class=\"xml\">\n\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">macro</span></span> alert(message, type = 'info') %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"alert alert-</span></span></span><span class=\"hljs-template-variable\">{{ type }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">role</span>=<span class=\"hljs-string\">\"alert\"</span>&gt;</span></span><span class=\"hljs-template-variable\">{{ message }}</span><span class=\"xml\"><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endmacro</span></span> %}</span></code></pre>\n<p>Create a layout that imports the macros before rendering the content:</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-comment\">{# layouts/shortcodes.html.twig #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">extends</span></span> '_default/page.html.twig' %}</span><span class=\"xml\">\n\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">block</span></span> content %}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">set</span></span> imports = \"{% import 'macros/shortcodes.html.twig' as sc %}</span><span class=\"xml\">\" %}\n</span><span class=\"hljs-template-variable\">{{ <span class=\"hljs-name\">include</span><span class=\"hljs-params\">(template_from_string(imports ~ page.content, \"dynamic content for page \" ~ page.id)</span>) }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endblock</span></span> content %}</span></code></pre>\n<p>Use the shortcodes in a page:</p>\n<pre data-lang=\"markdown\"><code class=\"language-markdown hljs markdown\" translate=\"no\">---\ntitle: \"Demo video\"\n<span class=\"hljs-section\">layout: shortcodes\n---</span>\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span></span>\n  {{ sc.alert('This video is in English.', 'warning') }}\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></span>\n\n<span class=\"hljs-section\">## Demo</span>\n\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span></span>\n  {{ sc.youtube('NaB8JBfE7DY', 'Cecil demo') }}\n<span class=\"xml\"><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></span></code></pre>\n<p>Output:</p>\n<pre data-lang=\"html\"><code class=\"language-html hljs xml\" translate=\"no\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"alert alert-warning\"</span> <span class=\"hljs-attr\">role</span>=<span class=\"hljs-string\">\"alert\"</span>&gt;</span>This video is in English.<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">h2</span> <span class=\"hljs-attr\">id</span>=<span class=\"hljs-string\">\"demo\"</span>&gt;</span>Demo<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">h2</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div</span>&gt;</span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">iframe</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"https://www.youtube-nocookie.com/embed/NaB8JBfE7DY\"</span> <span class=\"hljs-attr\">title</span>=<span class=\"hljs-string\">\"Cecil demo\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"560\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"315\"</span> <span class=\"hljs-attr\">loading</span>=<span class=\"hljs-string\">\"lazy\"</span> <span class=\"hljs-attr\">allowfullscreen</span>&gt;</span><span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">iframe</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">div</span>&gt;</span></code></pre>\n<aside class=\"note note-tip\"><p>To reuse UI elements across templates and pages, see also <a href=\"../templates/4-components.md\">components</a>.</p></aside>",
      "language": "en"
    }
  ]
}
