Setup Academic Theme
In this post I recored how I set up this blog using the Hugo Academic Themes and R blogdown.
-
blogdown::new_site()
-
Setup Academic themes following steps at https://sourcethemes.com/academic/docs/
- Adjust layout of the home page
- Update core parameters of the website at config/_default/params.toml file.
- Update the bibliography information located at content/authors/admin/_index.md. By default, you can update your information into the superuser admin, but you can also set up addtional user profiles.
- Adjust menu bar at home page, the file is config/_default/menu.toml.
-
Learn how to add new content at https://sourcethemes.com/academic/docs/managing-content/, such as
hugo new --kind post post/my-article-name
to create a new post. Also you can use R command
blogdown::new_post()
to create a new basic post, andblogdown::new_content()
is a wrapper function for callinghugo
. -
Before editting post from
.Rmd
file, start an Hugo server in the backgroud inR
viablogdown::serve_site()
This will automatically render any modified content in
Rmd
file after it’s been saved. If you’re using a seperatepublic
folder for publicating the website, runblogdown::build_site()
after the modification of the posts.