Title Blocks
Overview
HTML pages rendered with Quarto include a formatted title block at the start of the article. The title block gathers metadata from the document front matter — the title, subtitle, authors and their affiliations, publication and modification dates, DOI, abstract, description, keywords, and category labels — and lays it out in stylized groups.
For example, this front matter:
---
title: Summarizing Output for Reproducible Documents
description: A summary of best practices
author:
- name: Norah Jones
affiliations:
- name: Spacely Sprockets
date: 2018-05-04
---produces a title block with the title and description at the top, followed by a metadata grid with the author, affiliation, and publication date.
The title block lays out these elements automatically. If you’d like, you can control its behavior using title-block-style. Three options are available:
default— The default treatment gathers the title elements into stylized groups and styles them with a smaller font face.plain— The plain treatment does all of the title element processing (gathering and organizing the elements) but does not apply the default title block styling.none—nonedisables title block processing altogether. The title block is emitted in Pandoc’s plain form: an unstyled header containing the title, authors, date, and abstract.
Quarto 1’s fourth style, manuscript, is not currently supported. Documents that specify it fall back to default.
Categories
When the front matter lists categories, the title block renders them as labeled chips under the title (inside the banner, when a banner is active). To suppress the chips while keeping the categories available to listings, set:
---
title-block-categories: false
---Date
Quarto includes the document’s date (and date-modified, when present) in the title block. In addition to writing a standard date, you may use a few special keywords that generate the date for you: today provides the current date with the time set to 0, now provides the current date and time, and last-modified provides the modification date and time of the document file itself.
Formatting
When the title block uses the default or plain styles, Quarto formats the date in a readable long form (e.g. “May 4, 2018”). You can control the formatting by specifying a date-format in the document front matter. For example:
---
title: Summarizing Output for Reproducible Documents
date: 2018-05-04
date-format: short
---For the available named styles and format strings, see the date format reference.
Metadata Labels
The metadata labels in the title block (“Author”, “Published”, and so on) have default values that you may want to replace with your own. The following options customize them:
| Option | Default label |
|---|---|
author-title
|
Author / Authors |
affiliation-title
|
Affiliation / Affiliations |
published-title
|
Published |
modified-title
|
Modified |
abstract-title
|
Abstract |
description-title
|
Description |
doi-title
|
Doi |
The author and affiliation labels pluralize automatically, according to how many authors and affiliations the document declares.
Label defaults are currently English-only. Localized labels (Quarto 1’s lang-based label system) are planned as part of a broader localization effort.
Custom Title Blocks
To replace the built-in title block entirely, provide your own version of the title-block.html template partial via template-partials. Quarto 2 uses the same partial names as Quarto 1 (title-block.html, title-metadata.html, _title-meta-author.html), so partials written for Quarto 1 continue to work. See Templates for details.