Reference

Reference Frontmatter

Frontmatter

OtherEvergreenPublic

Frontmatter, in both literary and digital contexts, refers to the information preceding the main content of a document. In literature, it's the section at the beginning of a book containing elements like the title page, copyright information, dedications, and the table of contents. In digital contexts, particularly with static site generators and documentation tools, frontmatter is a block of metadata typically written in , , or at the top of a file, used to define attributes like title, date, and layout.

Literary Frontmatter

  • Title Page: The official title of the book and its author.
  • Copyright Information: Details about the book's copyright and publishing rights.
  • Dedication: A personal message from the author to a specific individual or group.
  • Epigraph: A short quote often placed at the beginning of a chapter or section.
  • Table of Contents: A list of the book's chapter headings and page numbers.
  • Preface: An introductory essay by the author.
  • Foreword: An introductory essay by someone other than the author, often providing context or background.
  • Publisher Information: The name and address of the publisher.
  • ISBN: The International Standard Book Number.

Digital Frontmatter:

YAML Frontmatter:

A popular format for defining metadata in Markdown files and static site generators like , Hugo and VitePress.

Key-Value Pairs:

Frontmatter uses key-value pairs to define attributes like title, date, author, layout, and custom variables.

Metadata:

Frontmatter provides a way to add metadata to files without altering the actual content.

Template Control:

Frontmatter can be used to specify which template a page should use when it's being generated.

Dynamic Routing:

Frontmatter can help determine how a page is routed on a website.