- Install the blogdown package from Github: https://github.com/rstudio/blogdown . If you have devtools installed you can type: devtools::install_github('rstudio/blogdown').
- Install Hugo: blogdown::install_hugo()
- Clone the website repository from Github.
- Make changes / content.
- Static pages should go in /content/page/
- Blog posts should go in /content/post/
- Note that there’s a date / time stamp for blog posts. I guess if the actual time is after that date / time it’ll “go live”.
- Content can be .Rmd or .md pages, although watch that the header format is different for both! You can embed R code (or other coding language) in .Rmd files. Markdown .md files should not have executable code. With .Rmd, the code is run and code with output is embedded in the .md file before rendering. So eventually everything goes .md to .html.
- Save changes.
- Test changes via blogdown::serve_site() or alternatively blogdown::build_site()
- You can make changes to config.toml in the top directory to change the baseurl, theme, author list, add Google Analytics, change the top navigation pane etc. BUT DO SO CAREFULLY!
- Add new content to git.
- Commit with commit message.
- Push to Github.