Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

User Interface Components

This page documents site-level UI components that appear on every page. use the same configuration pattern through site.parts or project.parts in myst.yml.

Configuration via parts

Many of the UI areas below allow users to insert custom content or interface elements using parts. These are documented below, and in each case they use the same configuration pattern through site.parts or project.parts in myst.yml.

Control the logo with the following configuration:

myst.yml
site:
  options:
    logo: path-to-logo.png
    logo_dark: path-to-dark-theme-logo.pnd
    logo_text: text to display just after the logo
    logo_url: clicking the logo will take users here
    logo_alt: alternative text for the site logo

Display an announcement bar at the top of your site.

Configuration

Create a markdown file with your banner content and add it to myst.yml:

site:
  parts:
    banner: _site/banner.md

or directly as text:

site:
  parts:
    banner: My banner [content](https://mystmd.org)!

Behavior

Display custom content at the bottom of every page.

Configuration

Create a markdown file with your footer content and add it to myst.yml:

site:
  parts:
    footer: _site/footer.md

Behavior

Display custom content at the bottom of the primary sidebar (table of contents).

Configuration

Create a markdown file with your sidebar footer content and add it to myst.yml:

site:
  parts:
    primary_sidebar_footer: _site/primary_sidebar_footer.md

Behavior

Hiding Elements

Control the visibility of various page elements. All options can be set site-wide or per-page.

Hide Authors

Hide the author and affiliations list from the frontmatter block.

site:
  options:
    hide_authors: true

Hide Table of Contents

Hide the left sidebar table of contents.

site:
  options:
    hide_toc: true

Hide Outline

Hide the right sidebar document outline.

site:
  options:
    hide_outline: true

Hide Title Block

Hide the entire frontmatter block (title, authors, date, etc.).

site:
  options:
    hide_title_block: true

Hide the previous/next navigation links at the bottom of each page.

site:
  options:
    hide_footer_links: true

Disable the search functionality.

site:
  options:
    hide_search: true

Page-level Overrides

Any of these options can be set on individual pages to override site-wide settings:

---
site:
  hide_authors: true
  hide_outline: true
---