Customizing the Home Page

Overview

The home page is generated from your package’s README.md or README.qmd. qrtdown automatically adds a sidebar with package metadata, similar to pkgdown.

Home Page Source

qrtdown looks for your home page content in this order:

  1. README.md - Standard markdown (as pkgdown does)
  2. README.qmd - Quarto markdown, used only when there is no README.md
  3. README.Rmd - R Markdown, used only when neither of the above exists

qrtdown generates index.qmd which includes your README via Quarto’s {{< include >}} directive. Your README stays untouched, and qrtdown adds the sidebar with package metadata.

README.md comes first because a README.qmd usually sets format: gfm, and an included file’s metadata overrides the page that includes it, which would turn the home page into markdown.

If you write your README in README.qmd, build_site() renders it to README.md (with quarto render README.qmd --to gfm) before building the home page, so edits reach the site without a separate step. It only renders when README.qmd is newer than README.md; if README.md is newer, for example because it was edited by hand, it is left alone and you get a warning. Turn this off with build_site(readme = FALSE). A README.Rmd is not rendered for you: re-knit it with devtools::build_readme(). build_site() and qrtdown_sitrep() warn when README.md is older than its source.

Customizing the Sidebar

Control which sections appear in _qrtdown.yml:

home:
  sidebar:
    - links
    - license
    - citation
    - authors

Show Only Specific Sections

home:
  sidebar:
    - license
    - authors

Disable the Sidebar

home:
  sidebar: false

Page Title

By default the home page shows the package name as its title. If your README already opens with its own heading, or you want no title at all, set home: title: in _qrtdown.yml:

home:
  title: false        # no title; the browser tab still shows the package name
home:
  title: "Welcome"    # use this text instead of the package name

Images on the Home Page

Place images in man/figures/ for use in your README:

man/
└── figures/
    ├── logo.png
    └── screenshot.png

Reference them in README.md:

![Package logo](man/figures/logo.png)

Example Home Configuration

# Minimal sidebar - just license and authors
home:
  sidebar:
    - license
    - authors
# Full sidebar with all sections
home:
  sidebar:
    - links
    - license
    - citation
    - authors
# No sidebar
home:
  sidebar: false