Setup Academic Theme
By Fenguoerbian
July 30, 2020
Note: As of 2025/03/09, this blog post is for archive purpose only. This blog is now using Hugo Apéro theme.
In this post I record 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-nameto 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
.Rmdfile, start an Hugo server in the backgroud inRviablogdown::serve_site()This will automatically render any modified content in
Rmdfile after it’s been saved. If you’re using a seperatepublicfolder for publicating the website, runblogdown::build_site()after the modification of the posts.
- Posted on:
- July 30, 2020
- Length:
- 1 minute read, 191 words