Creating basic websites

Slides

 Open slides in new window  Download PDF of slides

Exercises

Anatomy of a Quarto website

  1. Create a new website project somewhere on your computer.

    We’ll use this as a playground throughout the course.

  2. Open the project in RStudio and explore what the different files look like.

Workflow

  1. Open your playground website.

  2. Open index.qmd and click Render/Preview.

  3. Edit the title entry in index.qmd’s YAML metadata to something different and add a subtitle entry. Preview.

  4. Add some text to index.qmd. Preview.

  5. Add an R code chunk to about.qmd. Preview.

_quarto.yml

  1. Edit your _quarto.yml to make the following changes:

    • Change the preview port to 5555
    • Enable a cookie consent dialog
    • Add a site description
  2. Bonus tasks!

    • Add a footer that says “© 2025, Myself”
    • Add an announcement bar that says something

Advice:

Special pages

  1. Create a basic About page for either yourself or some fictional person.

    • Find an image on your computer or from the internet and add it to your project, either in the root of project, or (better!) in a folder just for images, like img/
    • Add links to different websites (with icons!)
    • Try different template options
    • Try different image-shape options

Advice: