install_theme | R Documentation |
Download the specified theme from Github and install to the ‘themes’ directory. Available themes are listed at https://themes.gohugo.io.
install_theme(
theme,
hostname = "github.com",
theme_example = FALSE,
update_config = TRUE,
force = FALSE,
update_hugo = TRUE
)
theme |
A Hugo theme on Github (a character string of the form
|
hostname |
Where to find the theme. Defaults to |
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 |
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
|
update_hugo |
Whether to automatically update Hugo if the theme requires a higher version of Hugo than the existing version in your system. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.