Creating basic websites
Slides
Open slides in new window Download PDF of slides
Exercises
Anatomy of a Quarto website
TipYour turn
Create a new website project somewhere on your computer.
We’ll use this as a playground throughout the course.
Open the project in RStudio and explore what the different files look like.
Workflow
TipYour turn
Open your playground website.
Open
index.qmd
and click Render/Preview.Edit the
title
entry inindex.qmd
’s YAML metadata to something different and add asubtitle
entry. Preview.Add some text to
index.qmd
. Preview.Add an R code chunk to
about.qmd
. Preview.
_quarto.yml
TipYour turn
Edit your
_quarto.yml
to make the following changes:- Change the preview port to 5555
- Enable a cookie consent dialog
- Add a site description
Bonus tasks!
- Add a footer that says “© 2025, Myself”
- Add an announcement bar that says something
Advice:
- Don’t try to make all these changes at once! Remember the workflow: edit, save, preview, repeat.
- Use the documentation at Quarto.org > Reference > Websites
Special pages
TipYour turn
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
- 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
Advice:
- Don’t try to make all these changes at once! Remember the workflow: edit, save, preview, repeat.
- Use the documentation at Quarto.org > Guide > Websites > About Pages