Learn R Programming

blogdown (version 0.0.68)

install_theme: Install a Hugo theme from Github

Description

Download the specified theme from Github and install to the themes directory. Available themes are listed at http://themes.gohugo.io.

Usage

install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE)

Arguments

theme

A Hugo theme on Github (a chararacter string of the form user/repo, and you can optionally sepecify a GIT branch or tag name after @, i.e. theme can be of the form user/repo@branch). If theme = NA, no themes will be installed, and you have to manually install a theme.

theme_example

Whether to copy the example in the exampleSite directory if it exists in the theme. Not all themes provide example sites.

update_config

Whether to update the theme option in the site configurations.

force

Whether to override the existing theme of the same name. If you have made changes to this existing theme, your changes will be lost when force = TRUE! Please consider backing up the theme by renaming it before you try force = TRUE.