What's on this page
Site options
title
Main title of the site.
title: "<site title>" baseline
Short description (~ 20 characters).
baseline: "<baseline>" baseurl
The base URL.
baseurl: <url> Example:
baseurl: http://localhost:8000/ canonicalurl
If set to true the url() function will return the absolute URL (false by default).
canonicalurl: <true|false> # false by default description
Site description (~ 250 characters).
description: "<description>" menus
Menus are used to create navigation links in templates.
A menu is made up of a unique ID and entry properties (name, URL, weight).
menus:
<name>:
- id: <unique-id> # unique identifier (required)
name: "<name>" # name displayed in templates
url: <url> # relative or absolute URL
weight: <integer> # integer value used to sort entries (lighter first) Example:
menus:
main:
- id: about
name: "About"
url: /about/
weight: 1
footer:
- id: author
name: The author
url: https://arnaudligny.fr
weight: 99 Override an entry
A page menu entry can be overridden: use the page ID as id.
Example:
menus:
main:
- id: index
name: "My amazing homepage!"
weight: 1 Disable an entry
A menu entry can be disabled with enabled: false.
Example:
menus:
main:
- id: about
enabled: false taxonomies
List of vocabularies, paired by plural and singular value.
taxonomies:
<plural>: <singular> Example:
taxonomies:
categories: category
tags: tag Then you can use those vocabularies in your content’s front matter.
theme
The theme to use, or a list of themes.
theme: <theme> # theme name
# or
theme:
- <theme1> # theme name
- <theme2> Examples:
theme: hyde theme:
- serviceworker
- hyde date
Date format and timezone.
date:
format: <format> # date format (optional, `F j, Y` by default)
timezone: <timezone> # date timezone (optional, local time zone by default) Example:
date:
format: 'j F, Y'
timezone: 'Europe/Paris' metatags
metatags are SEO and social helpers that can be automatically injected in the <head>, with the template partials/metatags.html.twig.
This template adds the following meta tags:
- Page title + Site title, or Site title + Site baseline
- Page/Site description
- Page/Site keywords
- Page/Site author
- Search engine crawler directives (robots)
- Favicon links
- Navigation links (first, previous, next, last)
- Canonical URL
- Alternate links (i.e.: RSS feed, others languages)
rel=melinks- Open Graph
- Facebook profile ID
- Twitter/X Card
- Fediverse tag
- Dublin Core
- Structured data (JSON-LD)
metatags options
Cecil uses page front matter to feed meta tags, and falls back to site options when needed.
title: "Page/Site title" # used by title meta
description: "Page/Site description" # used by description meta
tags: [tag1, tag2] # used by keywords meta
keywords: [keyword1, keyword2] # obsolete
author: # used by author meta
name: <name> # author name
url: <url> # author URL
email: <email> # author email
image: image.jpg # used by Open Graph and social networks cards
canonical: # used to override the generated canonical URL
url: <URL> # absolute URL
title: "<URL title>" # optional canonical title
social: # used by social networks meta
twitter: # used by Twitter/X Card
url: <URL> # used for `rel=me` link
site: username # site username
creator: username # page author username
mastodon: # used by Mastodon meta
url: <URL> # used for `rel=me` link
creator: handle # page author account
facebook: # used by Facebook meta
url: <URL> # used for `rel=me` link
id: 123456789 # Facebook profile ID
username: username # page author username metatags configuration
metatags:
title: # title options
divider: " · " # string between page title and site title
only: false # displays page title only (`false` by default)
pagination: # pagination options
shownumber: true # displays page number in title (`true` by default)
label: "Page %s" # how to display page number (`Page %s` by default)
robots: "index,follow" # web crawlers directives (`index,follow` by default)
favicon: # favicon options
enabled: true # includes favicon (`true` by default)
image: favicon.png # path to favicon image
sizes: # sizes by device
- "icon": [32, 57, 76, 96, 128, 192, 228] # web browsers
- "shortcut icon": [196] # Android
- "apple-touch-icon": [120, 152, 180] # iOS
navigation: true # includes previous and next links (`true` by default)
image: true # includes image (`true` by default)
og: true # includes Open Graph meta tags (`true` by default)
articles: "blog" # articles' section (`blog` by default)
twitter: true # includes Twitter/X Card meta tags (`true` by default)
mastodon: true # includes Mastodon meta tags (`true` by default)
dc: false # includes Dublin Core meta tags (`false` by default)
data: false # includes JSON-LD structured data (`false` by default) debug
Enables the debug mode, used to display debug information like very verbose logs, Twig dump, Twig profiler, SCSS sourcemap, etc.
debug: true There are two other ways to enable debug mode:
- Run a command with the
-vvvoption - Set the
CECIL_DEBUGenvironment variable totrue