Skip to content

Instantly share code, notes, and snippets.

@daijiang
Last active February 20, 2017 17:36
Show Gist options
  • Save daijiang/2d314b5ebf67466ad8b8ea6c8c223510 to your computer and use it in GitHub Desktop.
Save daijiang/2d314b5ebf67466ad8b8ea6c8c223510 to your computer and use it in GitHub Desktop.
if(!require(devtools)) install.packages("devtools")
devtools::install_github('rstudio/blogdown')
library(blogdown)
options(servr.daemon = TRUE)
install_hugo() # install Hugo
new_site() # create folders
# install_theme("gcushen/hugo-academic")
# install_theme('jbub/ghostwriter')
blogdown:::serve_site() # or Addins
# https://www.dropbox.com/sh/tm0eloi7jt5lmu6/AAAQPQrcGhXH2SvQ3TE_EI15a?dl=0
# new_post(title = "Markdown post", rmd = FALSE)
new_post(title = "Rmarkdown post", rmd = TRUE)
blogdown::new_content(path = "_index.md")
blogdown::new_content(path = "research.md")
blogdown::new_content(path = "publications.md")
# servr::daemon_stop("4498428528")
# blogdown::build_site()
# corss-reference: https://bookdown.org/yihui/bookdown/cross-references.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment