03:00
index.qmd
---
title: "My Cool Document"
format: html
---
The `gapminder.csv` dataset contains data from the [**Gapminder foundation**](https://www.gapminder.org/).
```{r}
#| label: fig-neat-plot
library(tidyverse)
library(brand.yml)
df <- read_csv("data/gapminder.csv")
brand <- read_brand_yml("_brand.yml")
ggplot(df, aes(x = gdpPercap, y = lifeExp)) +
geom_point(aes(size = pop, color = continent)) +
scale_x_log10() +
theme_brand_ggplot2("_brand.yml")
```Webpages are like any other Quarto document:
A minimal website has two files: index.qmd and _quarto.yml
index.qmd: Renders to index.html, your home page.
_quarto.yml: Controls project and website properties.
When rendered you will get a _site/ folder. This contains everything needed to serve the site.
_quarto.ymlWebsites are Quarto projects.
All Quarto projects include a _quarto.yml file.
A Quarto project is a directory that provides:
quarto render myproject).Not all Quarto projects are websites (though they’re typically website-like).
File > New Project > New Directory > Quarto Website


Open the Command Palette ( ⌘⇧P | Ctrl + Shift + P)
and start typing “create project”


Create a new website project somewhere on your computer.
You’ll use this as a playground throughout the course.
Open the project in RStudio and explore what the different files look like.
03:00

⌘⇧K
Ctrl + Shift + K
Build > Render Website

Requires Quarto Extension for VS Code
Open your playground website.
Open index.qmd and click Render/Preview.
Edit the title entry in index.qmd’s YAML metadata to something different and add a subtitle entry. Preview.
Add some text to index.qmd. Preview.
Add an R code chunk to about.qmd. Preview.
05:00
_quarto.yml_quarto.ymlConfigure all site-level settings with _quarto.yml:
More on this in a bit!
Edit your _quarto.yml to make the following changes:
Bonus tasks!
Advice:
07:00


href + text to control the link title.qmd filename to use that page’s title as the link title
Create a new file named contact.qmd and paste the content from about.qmd into it. Then change it to something else.
Add contact.qmd to the left section of your top navigation bar.
Add a right section to the navigation bar with icon-based links to a few other websites.
Bonus task! Create a dropdown menu in the top navigation bar, either with links to other websites or links to some new .qmd pages that you create.
Advice:
07:00


Have a different sidebar for different sections!
_quarto.yml
Create a folder named research and create these files in there: index.qmd, project1.qmd, project2.qmd, and project3.qmd
Add an entry for research/index.qmd in your top navigation bar
Make a sidebar that only appears on the research page that contains links to index.qmd, project1.qmd, project2.qmd, and project3.qmd
Advice:
07:00
Some page types are based on special templates that use information from the YAML metadata.
Two main built-in special page types:
(you can make your own special templates too!)
More about these in the advanced section!

Documentation: https://quarto.org/docs/websites/website-listings.html
about.qmd
---
title: "Ada Lovelace"
about:
template: solana
image: img/ada-lovelace.jpg
links:
- icon: wikipedia
text: Wikipedia
href: https://en.wikipedia.org/wiki/Ada_Lovelace
toc: false
---
## Background
Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852), also known as Ada Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine. She was the first to recognise that the machine had applications beyond pure calculation. Ada Lovelace is sometimes considered to be the first computer programmer.
Documentation: https://quarto.org/docs/websites/website-about.html
Create a basic About page for either yourself or some fictional person.
img/template optionsimage-shape optionsAdvice:
07:00