Create a Collection Day 02 Using blogdown
Using blogdown
Pre-requisites
First, make sure you have the latest version of the blogdown package installed from CRAN:
install.packages("blogdoown")
Restart your R session. If you use RStudio, use the menu item Session > Restart R or the associated keyboard shortcut:
- Ctrl + Shift + F10 (Windows and Linux) or
- Command + Shift + F10 (Mac OS).
packageVersion("blogdown")
[1] ‘1.0’
Create GitHub repo
Online.
Clone GitHub repo
usethis::create_from_github("https://github.com/apreshill/global-blogdown.git")
✨ Commit & Push! ✨
You should be committing these files:
*.Rproj
.gitignore
Create a new blogdown site
We’ll be using a new Hugo theme that I made for us!
Inside your current blogdown project, use the R console:
library(blogdown)
Let’s start with making the website with the theme:
new_site(dir = ".", theme = "apreshill/blogophonic")
Configure your site
The first stop on this tour of your site is the config.yaml
file.