OHSU-PSU School of Public Health
2025-07-22
File -> New Project...

Knitr
Your new Quarto website project should now open up in RStudio

What files are needed to create a Quarto website?

Note: If you do not have GitHub set up, then you will not have the .gitignore file.
This is the config file that specifies the general structure of the website

This is the home page of the website

This is an extra (optional) webpage where information about the website can be provided



_site folder is created when rendering the website
How to navigate the website?
navbar options in _quarto.ymlleft: and right: to specify which side of the top navigation bar you want the links to appearbackground and foreground colors,search option and logoLearn more: Top Navigation
sidebar options in _quarto.ymlcontents: to specify which pages to link tostyle: options are "docked" and "floating"search option on the sidebar (won’t appear if navigation bar already has one)collapse-level:) sidebar:
style: "docked"
search: true
collapse-level: 2
contents:
- href: index.qmd
text: Home
- href: slides.qmd
text: Workshop slides as "blog"
- section: "Section for slides"
contents:
- href: slides/part0_installation.qmd
text: 0 Installation
- href: slides/part1_overview.qmd
text: 1 Overview
- href: slides/part2_intro.qmd
text: 2 Intro to Quarto
- href: slides/part3_presentations.qmd
text: 3 Presentations
- href: slides/part4_websites.qmd
text: 4 WebsitesLearn more: Side Navigation
contents: list, sections of related pages can be grouped together with section:section:, list the contents:Learn more: Hybrid Navigation
The Workshop Slides link on the left navigation bar of the workshop website is an example of a blog-style webpage
format: html:)listing: contents: foldername)A website’s theme specifies colors, fonts, and much more!
Theme is specified in _quarto.yml
Easy way:
Medium difficulty:
scss files can be downloaded from GitHubChallenge:
cosmo theme was originally chosencosmo_modified.scss overwrite the cosmo theme since it is listed last.cosmo.scss
$green: #08875d !default;$primary: $purple !default;$success: $blue !default;quarto publish quarto-pubLearn more about Quarto Pub
See more options (including Netlify) at Quarto’s Publishing Basics page.
Contact:
Jessica Minnier
minnier@ohsu.edu
Meike Niederhausen
niederha@ohsu.edu