Background

One of the great features of Quarto is using it to create websites. What is really cool is the ability to used code chunks you might be already be familiar with. Unique features include callouts and tabs. These websites can be quite simple with only a single page, a blog, or more complex with multiple pages and options, such as the website for this course. Websites created with Quarto can be viewed/hosted directly on GitHub, or copied over to a server such as http://students.washington.edu.


Setup

For this exercise, we’ll create a simple personal blog and host it on GitHub. See also https://quarto.org/docs/websites/website-blog.html

Create RStudio project

Create a new project in RStudio. However, rather than base this new project on an existing repo, as we’ve done in the past, we’ll instead choose New Directory.


Scroll down the options for Project Type and select Quarto Blog.


In the next window, enter your a name for Directory name:

Choose the location where you’d like this new project to live.

When you are finished, check the box next to Open in new session and click the Create Project button.


Prepare for GitHub Publishing

Render to docs

You could also change the theme, blog title, links, etc here.

add a .nojekyll file

Render

Commit and Push

First time needs to be done via command line or GitHub Desktop, then could be done all within RStudio.



Publish with GitHub Pages

Now we can go to the repo in GitHub and set source for deployment.

Everthing should be live.



Creating a new post

Add a new post to your blog by creating a sub-directory within posts, and adding an index.qmdfile to the directory. That qmd file is the new blog post and when you render that, the blog home page will automatically update to include the newest post at the top of the listing. For more options see https://quarto.org/docs/websites/website-blog.html#posts-directory