Websites
Slides
Exercises
Exercise 1
Get the starter template. If you’re using Posit Cloud, skip this step and instead open the
whr-website
project. If you’re using Codespaces, follow the instructions here, but go to this repo instead.Open
index.qmd
and click Render/Preview.Edit
title
index.qmd
YAML to better reflect the site and add asubtitle
. Preview.Add some text to
index.qmd
explaining the plot. Preview.
Exercise 2
- Add some information to
about.qmd
. - Edit
_quarto.yml
so that the navbar includes the about page. - How do you think you change the position of the links in the navbar? Change them to appear on the right.
Exercise 3
Publish your website to Quarto Pub.
- From the Terminal, run
quarto publish
, then selectQuarto Pub
. - Follow the prompts to set up an account and publish.
If you have time, publish to Connect Cloud. Note: if you’re using R, you will need an renv.lock
file (learn how here) if publishing from Positron or VS Code, or a manifest.json
file (learn how here) if publishing from GitHub.