View source: R/new_portfolio.R
new_portfolio_site | R Documentation |
Generates the default hugo template skeleton for a Portfolio-Based Data Scientist Website
Provides 2 starter portfolio templates: raditian
and kross
.
new_portfolio_site(
dir = ".",
force = NA,
install_hugo = TRUE,
sample = FALSE,
format = "yaml",
theme = c("raditian", "kross"),
theme_example = TRUE,
netlify = TRUE,
...
)
dir |
The directory of the new site. |
force |
Whether to create the site in a directory even if it is not
empty. By default, |
install_hugo |
Whether to install Hugo automatically if it is not found. |
sample |
Whether to add sample content. Hugo creates an empty site by default, but this function adds sample content by default. |
format |
The format of the configuration file, e.g., |
theme |
The theme can be defined in several ways. Preset themes
A Hugo theme on Github
No Theme If |
theme_example |
Whether to copy the example in the ‘exampleSite’ directory if it exists in the theme. Not all themes provide example sites. |
netlify |
Whether to create a Netlify config file ‘netlify.toml’. |
... |
Additional arguments can be passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.