- Current version of RStudio
- Current version of R
- Git, Github account
- R-Packages: blogdown, rmarkdown, …
- Hugo 0.55.6 (can also be installed interactively within R Console later)
blogdown::install_hugo()
In Rstudio, create new project
- File -> New Project -> Version Control
- Use the following URL: https://github.com/ViennaR/ViennaR-Blog.git
- Create new Project
- content/post: Posts of the blog
- static: Images, slides, etc
- themes: Theme of the blog, should not be touched
In RStudio: Addins -> Serve Site
Or in the console:
blogdown:::serve_site()
In RStudio: Run Addins -> New Post
To publish site to viennar.org use the following steps:
- Turn off hugo build server, if running using
servr::daemon_stop()
- In case README.Rmd has changed: knit README.Rmd
- Run
blogdown::hugo_build()
- Commit all changes to master
- Run
git push origin master
or simply push Push button