Skip to content
Invisible link to canonical for Microformats Layouts and snippets

Layouts and snippets


Layout, snippet and page-option reference

Use this page to look up a layout, snippet or page setting. For everyday editing, use Create a post, Create a page or Add an image. A layout is a page design; front matter is the settings block between --- lines at the top of a content file.

Moving existing posts or pages? Use the migration front matter mapping.

Browse layouts, page options, snippets, page SEO or advanced customization.

Choose a layout or an optional featurePermalink to Choose a layout or an optional feature

Use default for articles and ordinary pages, Minimal for custom content or Landing page for an introduction. Check the version beside each feature if you use a pinned release or a gem.

A. LayoutsPermalink to A. Layouts

General purposePermalink to General purpose

DefaultPermalink to Default

Set layout: default in page front matter or site defaults.

OptionsPermalink to Options

Additional options you can set on the front matter or via defaults:

Jekyll also accepts these settings in the same front matter block:

Setting Use
layout Choose a layout from this guide.
permalink Set a page’s address, such as /contact/.
published Set false to omit a page or post from the normal build; this does not protect private files.
slug Set the slug used by a post’s address pattern.
categories, tags Group articles and provide the labels used by badges and related cards.
excerpt_separator Override the site’s post excerpt boundary.
sitemap Set false to exclude the page from jekyll-sitemap.
locale Override the site language for this page.

Component switches such as show_date, show_author, show_toc, show_comments and show_breadcrumb are off when unset, unless your site’s defaults enables them. show_header is a separate opt-in for minimal; see Optional header.

  • title, subtitle: Visible heading and subtitle for supported header types; also used when generating metadata.
  • date, last_modified_at: Date of the page and last modification date. See here to learn the accepted format of dates.
  • excerpt: A summary of the content. For posts, Jekyll generates an excerpt using its post excerpt settings. For metadata when no excerpt is available, see description fallbacks.
  • description: Explicit metadata description, independent of the visible subtitle and excerpt. See SEO metadata for precedence.
  • mathjax: Set to true to load MathJax for mathematical notation.
  • mermaid: Set to true to render Mermaid diagrams. Disabled by default; see Mermaid diagrams.
  • og_image: Open Graph image displayed on the web and social networks when sharing the page. This field does not insert an image into the page body.
  • schema_image: A representative image URL or list of image URLs for a post’s BlogPosting JSON-LD. It overrides the article image without changing Open Graph, Twitter cards or the visible header. See Article images.
  • robots: Search engine instructions, such as "noindex, follow". This does not make a page private; see Search crawler directives.

  • header_type: Choose base, post, hero, image or splash. Leave it unset or use an unrecognized value for no header.
  • header_img: Image to be displayed on the header. If og_image is not set, it also supplies the sharing image before site-level fallbacks.

Image previews depend on each social platform’s requirements. Use an accessible image URL and check the resulting preview. You can use a high-resolution image for header_img and a smaller sharing image for og_image.

  • project_links: Add header navigation links styled as buttons, for example links to a project’s source code or documentation. Each entry accepts url, icon and label. Example:
---
title: External project
project_links:
    - url: https://github.com/XXX # url1
      icon: fab fa-github         # Font Awesome icon code1
      label: View on GitHub       # Label on button 1
    - url: https://colab.research.google.com/XXX #url2
      icon: fab fa-python   # Font Awesome icon code2
      label: Open in Colab  # Label on button 2
---
  • show_date: Display the publication date and the last modified date, if provided. In the development version, a blank last_modified_at displays the publication date alone. The date labels use the page locale when set.
  • show_sociallinks: Display sharing links for X and Bluesky. Facebook, WhatsApp and LinkedIn also appear at widths of 576 px and above. In the development version, the Bluesky link displays its name as text with Font Awesome 5.
  • show_author: Set it to true to display the page author. It uses the site author settings unless the page supplies its own author mapping:

    For a guest author, set their own profile URL; it does not inherit the site author’s URL.

    In v2.3.0, show_author: false hides the card while keeping author information available to services that read Microformats2. On narrow screens, the visible card puts the location and links below the name. Long names wrap within the card.

---
title: "Plain post 2"
subtitle: "Example 2"
author:
  name: Another name
  url: /about/another-author/
  location: Santiago de Compostela
  avatar: https://github.com/devdieghernan.png
  links:
    - url: https://twitter.com/jack2
      icon: "fab fa-twitter"
      label: "Twitter"
---
  • show_toc: Displays a table of contents using jekyll-toc. Headings with the no_toc class are excluded, as they are from kramdown content indexes.

  • show_sidetoc: Puts the table of contents in a panel opened by a button on the left. Only headings with IDs appear. Markdown headings get IDs automatically; add an id to each HTML heading you want to include. For an index inside the article body, see Add a table of contents inside an article.

Since v2.2.0, the in-page, sidebar and kramdown TOCs highlight the current visible section with JavaScript, while preserving the sidebar’s Tab order. Their links also work without JavaScript.

Each article heading with an ID shows a link icon you can copy to share that section. In the development version, the theme adds these links when the site is built, so they also work without JavaScript; v2.3.0 and earlier add them with JavaScript. To omit the link from one heading, place this attribute immediately below it:

## Further reading
{:.no_anchor}

Combine it with .no_toc as {:.no_toc .no_anchor} to also omit the heading from the tables of contents.

In the development version, the default and landingpage layouts wrap each table in the content in a <div class="table-responsive">. Tables fill the article column, and a table wider than the column scrolls sideways. A table outside the content, such as one in your own include, shrinks to its content and scrolls on its own. v2.3.0 and earlier display every table as a block, so its rows can be narrower than its box.

  • h_min and h_max: Minimum and maximum heading level to be included in the table of contents. min: 2, max: 4.

  • show_related: Shows up to three other collection documents. A candidate needs two shared tags in the same collection or three across collections. More matches rank first, then newer dates.
  • show_random: Picks up to three documents from the same pool at build time. In v2.2.0, a single match renders on its own and both components respect each candidate’s show_date: false.

  • related_label and random_label: Text or HTML displayed before the related and random cards, respectively. Custom HTML is rendered as supplied. Use headings that fit the page hierarchy, such as <h2 class="h5">Related posts</h2> for a separate section. The h5 class controls its visual size without skipping heading levels.

  • show_bottomnavs: Display previous and next navigation at the bottom of the page when Jekyll supplies page.previous or page.next. This does not create navigation between arbitrary standalone pages. In the development version, each link uses the full destination title. Titles that exceed the available width end with an ellipsis. Only available destinations appear.

  • show_categories and show_tags display badges at the bottom with the categories and tags set for the page. These badges could be set as links to a cloud index, with the destination URL defined by cloudtag_url and cloudcategory_url. See Cloud tags layouts.
  • include_on_search: Set to false to omit a page from the local search indexes. See Search visibility for Algolia, external crawlers and sitemaps.
  • include_on_feed: Set the YAML boolean true on a dated post or collection document to include it in the built-in feeds. Use the jekyll-feed guide to preserve a subscription URL.

  • show_comments: Display the comment widget when a supported comments.provider is configured.
  • show_breadcrumb: Shows breadcrumb navigation on a page. Use with breadcrumb_list.
  • breadcrumb_list: A list of parent breadcrumbs. Give each entry a url. The development version skips entries with a missing or blank URL. Use defaults for paths shared by several pages.
---
title: "Plain post 3"
show_breadcrumb: true
breadcrumb_list:
  - label: Home
    url: /
  - label: Demo
    url: /demo
---

See an example here.

Even if you don’t want to show the breadcrumb, you can still specify the paths. The theme generates breadcrumb JSON-LD independently of show_breadcrumb. Without a list, non-home pages use a home/current-page breadcrumb. Structured data does not guarantee rich results. More information here and test tool here.

Make a post citablePermalink to Make a post citable

Available in v2.3.0. Add citation: true to the front matter of a post using the default layout. At the end of the article, look for How to cite this post. It shows a simplified APA reference in English and a BibTeX disclosure you can open and copy. Set citation: false to disable the block, including when it was enabled through front matter defaults.

See the citation at the end of the Ask Chulapa post. Open BibTeX to view and copy the entry.

To give the citation its own metadata, replace citation: true with a map. For example, add this to the front matter of a post about a journal article:

title: Better hillshading with R
author:
  name: Diego Hernangómez
citation:
  type: article-journal
  id: hillshade-2022
  author:
    - name:
        given: Ana María
        family: García López
    - name:
        literal: Terrain Research Group
  issued: "2022-03"
  container-title: Terrain Studies
  volume: 4
  issue: 2
  page: "15–21"
  doi: "10.1234/hills"
  url: https://example.org/articles/hills/

The citation shows García López, A. M., and BibTeX exports García López, Ana María. Both include the group author. The post’s byline continues to use the top-level author. A plain name string or a list of strings also works. Plain names appear as entered.

Field under citation Behavior and default
type The visible reference defaults to post-weblog for Jekyll posts and webpage for other pages. Set webpage explicitly to cite a post as a standalone page. Web types and unrecognized types use @misc in BibTeX. article-journal uses @article.
author Falls back to the post author and then the site author. With no author, the visible reference starts with the title and BibTeX omits author.
title Falls back to the post title.
issued Falls back to the post date. Use a quoted year, year and month, or full date, such as "2022-03". The visible reference uses n.d. if the date is unavailable. BibTeX exports the year and month when available.
id BibTeX key. Omit it to use the post date and slug, for example post20261111-hillshading. Without a date, the key starts with post-. Use an explicit key if two entries would otherwise share a key.
url Absolute HTTP(S) URL of the cited work. Falls back to the page’s canonical URL.
doi DOI of the cited work, for example 10.1234/hills. Set it under citation when migrating from a Quarto document that sets a top-level doi. The visible reference prefers the DOI link. BibTeX can carry both the DOI and the URL.
container-title Site or publication name. For a web entry it falls back to the site title. For a journal article it is omitted when missing.
volume, issue, page Optional journal details. BibTeX exports the issue as number and the page range as pages.

The visible reference italicizes the blog name for post-weblog, the page title for webpage, and the journal name and volume for article-journal. See the official APA blog post examples and APA webpage examples. One World’s Corona timelapse post shows the blog format in use.

To enable citations and set the type explicitly for every post, add this entry to the existing defaults list in _config.yml:

defaults:
  - scope:
      path: ""
      type: posts
    values:
      citation:
        type: post-weblog
Move citation metadata from QuartoPermalink to Move citation metadata from Quarto

Copy the supported fields from the Quarto citation map. Use author.name for the post byline and citation.author for the full bibliographic author list. Set citation.page for the APA and BibTeX page range. The Google Scholar fields below also accept explicit page endpoints. Without citation.url, the theme uses the Jekyll canonical URL.

The reference uses simplified English APA and BibTeX with separate year and month fields. The theme strips formatting from titles and publication names.

Add Google Scholar metadataPermalink to Add Google Scholar metadata

Add google-scholar: true at the top level of the front matter of a citable post using layout: default. Keep citation: true or your existing citation map.

Use this switch when the post presents the work itself. For a post discussing a work published elsewhere, you can offer a copyable citation on its own.

layout: default
citation: true
google-scholar: true

Use the following fields from Quarto’s citation metadata. The theme omits empty values.

Field under citation HTML tag Value or fallback
title citation_title Title of the work, with the post title as the fallback.
author citation_author One tag per author with their full name. Falls back to the post author and then the site author.
issued citation_publication_date Publication date, with the post date as the fallback. Google Scholar receives YYYY/MM/DD for a complete date or YYYY otherwise.
url citation_fulltext_html_url Absolute URL of the full-text HTML, with the canonical URL as the fallback. The visible reference may still link to the DOI.
container-title citation_journal_title Journal name for article-journal.
volume, issue citation_volume, citation_issue Volume and issue for article-journal.
page citation_firstpage, citation_lastpage Page or page range for article-journal. For a single page the theme emits only the first-page tag.
doi citation_doi DOI for article-journal.
pdf-url citation_pdf_url Absolute URL of the full-text PDF. For Google Scholar, place the PDF in the same subdirectory as the HTML abstract.
available-date citation_online_date Online publication date. Enter a quoted date in the format you want to publish, such as "2022/03/15". The theme passes it through as entered.
abstract, abstract-url citation_abstract, citation_abstract_html_url Plain-text abstract and its HTML URL.
keyword, language citation_keywords, citation_language Comma-separated keywords and the language code of the cited work.
isbn, issn, eissn, pmid citation_isbn, citation_issn, citation_eissn, citation_pmid Identifiers. Quote these values to preserve leading zeros.
container-title-short, collection-title citation_journal_abbrev, citation_series_title Abbreviated journal name and series title.
page-first, page-last citation_firstpage, citation_lastpage Explicit endpoints for article-journal. Each overrides the corresponding endpoint from page in the HTML tags.

Google Scholar requires a title, the first author’s full name and a publication year. For work hosted on your site, use its full-text HTML URL and follow the Google Scholar inclusion guidelines.

Landing pagePermalink to Landing page

This is a version of the default layout that uses a dedicated background and text color. The background defaults to hero-chulapa-bg-color, which defaults to the navbar background color. Set landingpage-chulapa-bg-color and landingpage-chulapa-text-color through chulapa-skin.vars to customize it.

---
layout: landingpage
---

The options are the same as those for the default layout.

MinimalPermalink to Minimal

The minimal layout includes the navbar, footer and an optional header. Shared metadata options such as description, seo_title, og_title, canonical_url and locale remain available, along with: title, subtitle, date, last_modified_at, excerpt, mathjax, mermaid, og_image, schema_image (for posts), robots, author, include_on_search, include_on_feed and show_comments. Content is rendered directly between the navbar and footer; author panels and tables of contents are not added automatically.

Use default if you want article metadata for services such as Bridgy Fed. In v2.3.0, set og_image and og_image_alt to supply an article image and its description. The header or site sharing image can also be used.

---
layout: minimal
---
Optional headerPermalink to Optional header

Minimal pages remain headerless by default, even when header_type is set through global defaults. To reuse a theme header while keeping the content area unrestricted, set the Boolean show_header: true:

---
layout: minimal
title: My wide page
subtitle: Custom content with a theme header
show_header: true
header_type: hero
header_img: /assets/img/banner.jpg
---

Use the existing header types (base, post, hero, image or splash) and project_links options. A missing or unsupported header_type, including none, produces no header. Set show_header: false to disable the optional header on a minimal page, including when overriding front matter defaults. The option does not add a content container; your HTML controls the width and spacing. See the minimal header demo.

show_header controls the optional header in minimal and custom layouts that inherit from it. The existing headers in default and landingpage retain their behavior and render only once. To hide those headers, keep using header_type: none.

If a custom layout already includes its own header, add header_in_content: true to that layout’s front matter before enabling show_header. This prevents the parent minimal layout from adding another header. Custom layouts without an existing header can use show_header: true directly.

Specific purposePermalink to Specific purpose

All these layouts are meant to be used for specific purposes rather than for overall content. These layouts are linked to the default layout, so all the options described above also apply.

ArchivePermalink to Archive

This layout creates a chronological archive of your content. See an example here. Currently you can include any collection (including _posts) or select some. This allows you to have specific archives by collection and an overall archive for all your content.

Options available:

  • include_collection: Collection name or comma-separated collection names, such as posts,demo. Use names without leading underscores and omit spaces around commas. If unset, documents from all collections are included. Standalone pages are not included.
  • include_missdates: Set it to true if you want to include also those pages without a date.
---
layout: archive
---

Cloud tags and categoriesPermalink to Cloud tags and categories

Use layout: cloudtag for tags or layout: cloudcategory for categories. Both work on Jekyll 3 and 4, including the legacy cloudtag2 and cloudcategory2 aliases. Use include_collection as in Archive. Since v2.2.0, show_date: false hides an entry’s date.

In the development version, use the link from the rendered cloud or article badge when linking to a label with spaces or punctuation. Labels such as field notes and field-notes have separate destinations. Existing fragments from space-to-hyphen conversion still work where they identify one section.

Follow Add tag and category indexes to create an index and link article badges to it. See the tag cloud demo.

Index categoryPermalink to Index category

Use layout: indexcategory for a card index of collection documents.

Optional arguments:

  • include_collection: see Archive layout.
  • index_sort: Front matter field used for sorting, such as title, date or a custom field. Defaults to name (the file name).
  • index_sort_asc: Set it to true if you want to have the cards sorted in ascending order. The default order is descending.
  • index_items: Limit the number of items to be displayed. 10.

Filename-order mapping specimen (sorting is by document field, not title):

---
layout: indexcategory
include_collection: demo
index_sort: name
index_sort_asc: true
index_items: 100
---

The demo index sorts by path. For a paginated blog, see the starter index.

Search layoutPermalink to Search layout

Create a page with layout: search and a permalink matching search.landing_page (default /search). For a complete file and provider setup, see Search engines.

A note on defaultsPermalink to A note on defaults

Defaults mapping specimen for shared post settings in _config.yml:

defaults:
  - scope:
      path: ""
      type: posts
    values:
      layout: default
      header_type: post
      show_date: true

A setting in an individual post overrides its default. Use true and false without quotes for switches such as show_date. See Jekyll’s defaults guide for other content types.

B. SnippetsPermalink to B. Snippets

Look up content snippet parameters here. For setup, use the gallery, carousel, PhotoSwipe, video or Mermaid how-to guide.

Pass these parameters in Liquid include calls. For defaults and constraints, follow the linked reference.

Snippet Purpose
snippets/masonry.html Display a masonry gallery.
snippets/carousel.html Display a slideshow.
snippets/video.html Embed a video file or hosted player.
snippets/youtube.html Embed a deferred YouTube player. Requires id and accepts name, video_res and the optional video metadata.
snippets/spotify.html Embed a Spotify track, album or playlist.
snippets/datetranslate.html Format an English date string in a supported language.
snippets/bootstrapdemo.html Displays the component sampler. The skin previews pass a chapter as series_example and its series ID as series_id to show working series navigation.

Use unquoted booleans in snippets. Write controls=true or random=false. Quoted "false" can enable a feature; PhotoSwipe specifically requires photoswipe=true. These are include parameters, not new configuration options.

Series navigationPermalink to Series navigation

Available in v2.3.0. A series orders pages, posts and collection documents independently of their tags or categories. Readers see the current part, progress, Previous and Next links and a collapsible index. Try the Kitchen Sink demo or see the site details guide for an example with two series.

Add a top-level map to _config.yml and give each series a visible label:

series:
  first-site:
    label: First-site guide
  publishing:
    label: Publishing guides
  newsletter:
    label: Monthly newsletter
    part_label: Issue
    index_label: Issues

Use a short label with meaningful text. The visible name renders Markdown and HTML from your site configuration. For example, use label: '<span class="chulapa">Chulapa</span> and Jekyll' for the theme’s brand styling. Only include markup you trust. Accessible names and JSON-LD use the text of the label. A label made up only of an image has no text.

Set part_label and index_label on any series to customize its counter prefix and collapsed index label. For example, the newsletter displays Issue 1 of 3 and Issues when it has three entries. Omitted or blank values use Part and Series index. The progress bar also uses the configured counter prefix in its accessible name.

In each member’s front matter, list the series IDs and assign a unique integer order within each series. The displayed part number follows the sorted position, so you can leave gaps when assigning orders.

series:
  - id: first-site
    order: 20
  - id: publishing
    order: 10

Add this include where you want the index to appear, either in the page body or in a shared layout:

{% include snippets/series-chapters.html %}

The index appears when a configured series has at least two published members with integer orders. A chapter without a title is identified by its filename. Pages, including the home page, and posts declare their configured series in JSON-LD when they have an integer order and the series has a text label. This also works for a series with one published member or for a chapter that omits the widget.

List each series ID once per chapter. If an ID appears twice, the first entry with an integer order is used. Chapters with the same order are sorted by URL. Repeated IDs and orders are reported in comments in the generated HTML. The index works without JavaScript or additional Jekyll plugins.

Setup: Add a photo gallery.

Parameter Default Values and constraints
internal Unset Group name assigned to static files through image_col in configuration defaults. Takes precedence over external.
external Unset Comma-separated image URLs, optionally held in a Liquid variable.
index_sort modified_time Internal galleries only; a static-file property such as basename. Static files have a limited set of properties.
index_sort_asc false Internal galleries only; boolean true for ascending order.
index_items 100 Maximum images displayed.
random false Boolean true shuffles at build time, overriding the sort order.
photoswipe false Boolean true enables the optional viewer; see PhotoSwipe.

Version constraint: applying the selected index_sort field to internal galleries and carousels is fixed in v2.2.0. It does not work correctly in v2.1.0; the filename-order guides require the fix.

External-source specimen:

{% assign externalgallery = "https://picsum.photos/seed/10/600/1200,https://picsum.photos/seed/20/800/500,https://picsum.photos/seed/30/900/1200" %}
{% include_cached snippets/masonry.html external=externalgallery %}
Masonry Item #1
Masonry Item #2
Masonry Item #3

Internal-source specimen, for a configured gallery image group:

{% include_cached snippets/masonry.html internal="gallery" index_sort="basename" index_sort_asc=true index_items=5 %}
Masonry Item #1
Masonry Item #2
Masonry Item #3
Masonry Item #4
Masonry Item #5

Setup: Add a manual slideshow. All masonry parameters also apply. Additional parameters:

Parameter Default Values and constraints
interval 5000 Milliseconds between automatic slide changes. 0 disables automatic cycling.
indicators false Boolean true displays slide indicators.
controls false Boolean true displays previous/next controls.

In v2.2.0, a multi-image slideshow has a play/pause icon button with an action-specific accessible name and a symbol fallback if Font Awesome is missing. Reduced-motion visitors start paused. Keyboard control use pauses cycling; Enter and Space activate controls. Hovering pauses temporarily. Custom layouts must load Bootstrap’s scripts for controls and automatic cycling.

Control colors are Sass variables under the existing chulapa-skin.vars mapping in _config.yml: carousel-control-color and carousel-indicator-active-bg. See Change a color for editing steps.

Automatic-cycling specimen, for a configured gallery group:

{% include_cached snippets/carousel.html internal="gallery" interval=2000 random=true controls=true indicators=true %}

PhotoSwipe lightboxPermalink to PhotoSwipe lightbox

Setup: Enable PhotoSwipe on a gallery.

Available in v2.2.0, not in v2.1.0. photoswipe is a boolean include parameter on masonry and carousel snippets, not a page YAML setting. Default: false; only photoswipe=true enables it. It accepts internal image groups and external image lists; each gallery opens its own sequence.

{% include_cached snippets/masonry.html internal="gallery" photoswipe=true %}
{% include_cached snippets/carousel.html internal="gallery" photoswipe=true controls=true interval=0 %}

The viewer loads on image activation from https://cdn.jsdelivr.net; a Content Security Policy must allow its scripts and styles. It supports zoom, swipes, arrow keys and Escape, returns focus to the image and respects reduced motion. If loading fails, the link opens the original image. Gallery snippets use generic image descriptions; custom image markup needs descriptive alternative text.

Live specimen: PhotoSwipe demo.

Video supportPermalink to Video support

Setup: Embed a video.

Input Default Values and constraints
fileurl Unset Local or external video-file URL. Takes precedence over provider. Local paths use the site URL and baseurl.
provider Unset youtube, vimeo, dailymotion, google-drive or bilibili; used with id.
id Unset Provider-specific identifier, not a full watch URL.
name Generic player name if absent Actual video title; also supplies metadata and the player’s accessible name.
nolazy Off YouTube only; boolean true creates an iframe without activation. The browser may still defer the iframe through loading="lazy".
video_res maxresdefault Deferred YouTube preview resolution; see preview behavior.

The accessible player and play-button names derived from name require v2.2.0; v2.1.0 supports name in video metadata but does not use it for those accessible names.

For fileurl, browser-supported formats include MP4, Ogg and WebM. Playback also depends on the codec and browser; the extension alone is insufficient. The development version skips the player when the file URL is blank, the provider is unsupported, or the provider’s video ID is missing.

The YouTube setup guide has a copyable example and explains where to find the video ID.

Local-file specimen:

{% include snippets/video.html fileurl="/assets/mp4/sample.mp4" name="Aerial lagoon sample" %}

For a remote video file, pass its absolute URL to fileurl.

Deferred (lazy) loading of YouTube videosPermalink to Deferred (lazy) loading of YouTube videos

Default: a preview loads first; activation loads the player. In v2.2.0, a link opens YouTube when JavaScript is disabled; v2.1.0 does not provide that fallback link. Autoplay remains subject to browser policy. The iframe uses https://www.youtube-nocookie.com, which must be allowed by a restrictive Content Security Policy.

nolazy=true on video.html removes the activation requirement. Direct youtube.html calls are always deferred and have no nolazy parameter.

{% include snippets/video.html provider="youtube" id="1hXYuWTWVww" name="Menorca - Isla Bonita" nolazy=true %}

If the default maxresdefault preview is unavailable, set video_res="hqdefault" in the include. This controls the visible preview.

Optional video metadataPermalink to Optional video metadata

Set these fields on each video.html or youtube.html include to describe the video to search engines. Structured video data is generated automatically in v2.3.0.

Input What to supply
name The video’s actual title.
thumbnail_url A representative, accessible image URL. Relative URLs use the site’s URL and baseurl.
upload_date The video’s original publication date in ISO 8601 format, preferably with time and time zone.
description A description of the video.
duration An ISO 8601 duration, such as PT1M30S for 90 seconds.

Supply values on each include. The snippets omit blank inputs and use dates and durations as entered. thumbnail_url supplies metadata. For the visible YouTube preview, use video_res.

Replace the sample values with your video’s metadata.

{% include snippets/video.html provider="youtube" id="YOUR_VIDEO_ID" nolazy=true
   name="Your video's title" thumbnail_url="/assets/img/your-video.jpg"
   upload_date="2024-01-02T10:00:00+01:00"
   description="What your video shows." duration="PT1M30S" %}

Deferred YouTube embeds can use their preview as a thumbnail. For immediate YouTube embeds and other providers, supply thumbnail_url explicitly.

Video structured data limitationsPermalink to Video structured data limitations

Supply the actual title, original publication date and a working thumbnail. On a page dedicated to watching a video, consider nolazy=true for YouTube so the player is available without activation. See Google’s video requirements for indexing criteria.

Spotify embedsPermalink to Spotify embeds

Available in the development version. Sites pinned to v2.3.0 or earlier can paste the iframe provided by Spotify.

Copy the track, album or playlist link from Spotify. The ID is the part after /track/, /album/ or /playlist/ and before any ?. Add the include on its own line in your post or page, with a blank line before and after it. Pass the ID as id and give the player a descriptive title for screen readers. Without a title, the player is named “Spotify track,” “Spotify album” or “Spotify playlist.”

The snippet also adds a direct Spotify link. On your site, screen readers can find it and it becomes visible when it receives keyboard focus. Feed readers that display the full article without the theme stylesheet show the link even if they remove the iframe.

{% include snippets/spotify.html id="51UMKmK4msZFxtUhOu06zs" title="Belief by John Mayer on Spotify" %}

{% include snippets/spotify.html type="album" id="5Dgqy4bBg09Rdw7CQM545s" title="Unknown Pleasures by Joy Division on Spotify" %}

{% include snippets/spotify.html type="playlist" id="5tr0xVMrZnw7PLC9Kpkr3E" title="One World playlist on Spotify" %}

The player fills its container and uses browser lazy loading. Tracks use type="track" by default and are 152 pixels tall. Albums (type="album") and playlists (type="playlist") are 352 pixels tall. Preview your page on a narrow screen to check that the player has enough room. Spotify recommends a container at least 280 pixels wide for audio embeds. See the track example in the Kitchen Sink demo, or see all three examples in the skin preview.

Localization of datesPermalink to Localization of dates

Reference for snippets/datetranslate.html. For editing and publishing, use Display an article date in another language.

Parameter Value and behavior
date An English date string, usually formatted with Liquid’s date filter before passing it to the snippet.
lang Optional language code. Defaults to site locale, then en; a page-level locale is not read automatically. Only the first two lowercase characters are used.

Supported translations are French (fr), Spanish (es), German (de) and Italian (it). English is the default/fallback. In the development version, English and unsupported languages keep the input unchanged, and German capitalizes weekday and month names. Translated names otherwise use lowercase. In v2.3.0 and earlier, all output is lowercase. Order and punctuation come from the input format, not a locale-specific pattern. Format specifiers: Liquid date filter.

Site locale controls language metadata, not complete interface translation. Labels such as search.label, related_label and random_label are separately configurable; some interface and accessibility labels remain in English.

See the date guide for a copyable example and expected output.

Mermaid diagramsPermalink to Mermaid diagrams

Available in v2.2.0 and later. Set the YAML boolean mermaid: true in front matter or defaults for pages with fenced mermaid blocks. Layouts based on minimal, including default and landingpage, support diagrams.

Use Add a Mermaid diagram for a copyable example with accTitle and accDescr. Explain complex diagrams in prose. If rendering fails, visitors can read the diagram’s source. Use a modern browser (Safari 17.4 or later). See the live demo.

Copying codePermalink to Copying code

Code blocks have a copy button. Use HTTPS on your published website so the browser can copy text. If copying fails or permission is denied, visitors can still select and copy the code themselves. In v2.2.0, the button confirms success or reports failure. Rendered Mermaid diagrams have no code copy button.

In v2.3.0, if optional tooltips cannot initialize, copying and its accessible success or failure message still work without tooltip errors.

Advanced page settingsPermalink to Advanced page settings

These settings change how search engines and sharing services describe a page. They are optional: start with accurate titles, descriptions and photographs. Use the reference below if you need different sharing titles, translated metadata or instructions for republished content.

SEO metadataPermalink to SEO metadata

For republished content, set canonical_url to the original address. Use an absolute HTTP(S) URL or a site-relative path beginning with /. To leave the copy out of your sitemap, also set sitemap: false. Follow Point a republished article to its original URL.

Use seo_title to replace the complete browser and structured-data title without changing the visible heading. Use og_title to replace the social title; it defaults to the generated browser title. Leave these settings empty to use the normal titles.

Optional og_image_alt, og_image_width, og_image_height and og_image_type fields describe the selected social image. Width and height are pixels; type is a MIME type such as image/jpeg. Alt text describes the image’s contents.

seo_title: A custom browser title
og_title: A custom social title
og_image: /assets/img/article.jpg
og_image_alt: A street in Madrid
og_image_width: 1200
og_image_height: 630
og_image_type: image/jpeg

The image fallback order remains page og_image, page header_img, site og_image, site author avatar, then GitHub avatar. If no image is available, image and thumbnail tags are omitted. Page image metadata applies to the selected image. Site image metadata is used only when the site og_image is selected and neither page image field is set; it is never inherited by a page image or avatar. Supply accurate metadata for the selected image; the theme does not inspect image files. These options also support front matter defaults. See the Open Graph protocol for image properties.

Social locales and articlesPermalink to Social locales and articles

Set page locale to override the HTML language in both the minimal and search layouts. Other built-in layouts inherit the minimal layout. Use a language tag such as fr, es-MX or zh-Hant. Underscores are converted to hyphens for HTML.

Open Graph uses language_TERRITORY. The precedence is page og_locale, page locale, site og_locale, then site locale (default en-US). Hyphens are accepted and values are normalized, for example es-mx becomes es_MX. Language-only or script-based values do not identify a territory, so the theme omits og:locale for them. Supply og_locale explicitly when needed:

locale: zh-Hant
og_locale: zh_TW
og_locale_alternate:
  - en_GB
  - es_ES

og_locale_alternate is an optional list on the page or site. A page list replaces the site list; [] disables inherited alternates. Entries must contain a two- or three-letter language and a two-letter territory. Invalid shapes, duplicates and the primary locale are omitted. Codes are not checked against an ISO registry. Only list locales in which the page is actually available; these tags do not create translations or hreflang links.

Posts use og:type: article; other pages use website. Set og_type: article for an article in another collection, or og_type: website to suppress article metadata on a post. This changes Open Graph only; JSON-LD retains its existing page classification.

For article, the theme emits these properties when values are available:

Property Source
article:published_time Page date, including the date in a post filename.
article:modified_time Page last_modified_at; no modification date is invented.
article:author og_article_author, then page author.url, or site author.url when no page author is set.
article:section og_article_section, then the first page category.
article:tag One tag per nonempty entry in page tags.

Dates use Jekyll’s ISO 8601 output. Author URLs may be absolute or site-relative; relative paths use url and baseurl. A guest author without a profile URL does not inherit the site author’s URL. Use a profile page that identifies the author.

JSON-LD uses a page’s date for datePublished. In v2.3.0, dateModified is included only when last_modified_at is set; the publication date is no longer used as a fallback.

og_type: article
og_article_author: /about/guest/
og_article_section: Mapping
date: 2024-02-03T12:00:00Z
last_modified_at: 2024-03-04T13:00:00Z
tags:
  - maps
  - open data

The generated tags precede custom head hooks. Configure these fields instead of adding duplicate properties in a hook. See the Open Graph protocol.

description is optional page metadata independent of visible content. Procedure: Set a post’s sharing text and images. Specimen:

---
title: My page
subtitle: A visible subtitle
description: A concise description for search and social previews.
---

The description uses page description, then excerpt, then site description on the home page, then the content fallback. An explicit page description is used without a subtitle. For the other sources, the subtitle is prepended when its text is missing. Blank values are skipped and formatting is stripped for metadata. HTML, Open Graph, Twitter/X and JSON-LD share this text. Search engines can show a different snippet.

Use the search visibility guide to exclude a published page from crawlers, sitemaps or site search.

Article imagesPermalink to Article images

schema_image identifies post illustrations for BlogPosting structured data. A single URL or YAML list is accepted. Procedure: Set a post’s sharing text and images. Relative URLs resolve using the site’s url and baseurl; absolute URLs remain unchanged.

---
title: My article
schema_image: /assets/img/article.jpg
---

Multi-image mapping specimen (each URL identifies an existing article image):

schema_image:
  - /assets/img/article-16x9.jpg
  - /assets/img/article-4x3.jpg
  - /assets/img/article-1x1.jpg

Use working URLs for relevant images. Upload each crop you want to use. The theme chooses schema_image, then the post’s og_image, then header_img. Set og_image separately to control the social preview. The Welcome post shows an explicit schema_image.

Search crawler directivesPermalink to Search crawler directives

Set robots: "noindex, follow" in page front matter or defaults if the page should stay out of external search results. By default, pages use index, follow. Let crawlers reach the page so they can read the directive. For sitemap and site search options, see Keep an auxiliary page out of search.

Advanced customization referencePermalink to Advanced customization reference

Use this reference when creating a custom layout or maintaining local overrides.

Layout structure and componentsPermalink to Layout structure and components

Custom layouts can build on minimal. The archive, tag, category and card index layouts build on default. When updating a local copy of default to v2.2.0, preserve the single main landmark and keep theme-generated TOCs and the sidebar outside e-content. Preserve h-feed on article lists. See the layout sources and component sources.

Advanced include specimen for up to two post cards inside a custom page:

{% include_cached components/indexcards.html cacheddocs=site.posts  cachedlimit=2 %}

In v2.3.0, each card uses the entry’s og_image, falling back to its header_img. With neither field set, the text uses the full card width. See the card index demo for the resulting layout.

JavaScript assets and local overridesPermalink to JavaScript assets and local overrides

The built-in layouts already load the scripts needed for menus, search and content features. Use _includes/custom/custom_bottomscripts.html to add your own scripts without copying a theme layout.

In v2.3.0, _includes/components/scripts.html loads jQuery Slim 3.5.1, Popper.js 1.16.1 and Bootstrap 4.6.2 in that order. If your site has a local copy of this include or hardcoded script tags, update the URLs and their integrity hashes together. The built-in layouts use the updated include.

The development version serves chulapa_navigation.min.js and chulapa_script.min.js from assets/js/. If you override either shared script, match the filename in your layout or script include. The theme ships both readable and minified copies.

If you have copied a layout or search page into your site, review it when updating the theme. Your copy takes precedence and will not receive updates automatically. For working search-page examples, see Lunr or Fuse.js.

Use the custom hooks reference to add markup or scripts. For custom layouts, consult the theme’s snippet sources.