Week 10: Making documents and websites with Quarto

Reading

Assignment

Activities

  • Discussion: Making History public through the web.
  • Workshop: Making a website with Quarto

Quarto websites

Quarto websites are a collection of Quarto documents using format: html with a set structure and consistent visual style.

  • Create new Quarto website project: File -> New Project… -> Quarto Website.
  • Preview website to see what we have.
    • Preview page with Render button. Use gear button to control how preview works.
    • Render website in build tab -> Render Website
  • Structure: _quarto.yml
    • Configuration file (_quarto.yml) provides the basic structure of the site.
    • Navigation
      • Top navbar
      • Side navbar
      • Combination of top and side navbar
    • Navigation provides skeleton structure of pages in YAML format. Make sure to use proper whitespace in working in _quarto.yml.
  • Pages
    • Homepage: index.qmd
    • Individual quarto documents turned into web pages
    • Shared YAML in _quarto.yml under format:. See HTML Basics for YAML options.
    • Links between pages:
      • [about](about.qmd)
      • Section identifier: # Introduction {#sec-introduction} and [about](about.qmd#sec-introduction).
    • Footer: Add a footer to have text at the bottom of each page with page-footer in _quarto.yml.
  • About page: Add an About page with special formatting.
  • Aesthetics: Themes
  • Website tools: Header, footer, and integration with other services.
  • Website search: Options for having a search field for website.

Resources

Examples of Quarto websites