blogdown
This is the first blog written by blogdown, and build and published by R studio.
What is the blogdown?
-
It is an R package that can create websites using R Markdown and Hugo.
-
R studio is an Integrated Development Environment with R. Now, it integrates R, git, hugo together, which is very convenient to build, enrich and maintain your website.
-
On git/terminal/shell, we type
hugo sverver --theme=hyde --buildDrafts
to continuously serve our website locally, which makes us to live preview the website locally. Now we can do the same thing in R studio by usingblogdown::serve_site()
, or clicking on Addins–>Serve Site. -
One can click on Addins–>Update Metadata to update the website in R studio. Or on the terminal embedded in R studio, we can use
hugo --theme=hyde --baseUrl="https://xliusufe.gitee.io/" --buildDrafts
to update the website for the currently writting blog. -
One can refer to the blogdown for more details.