AnalyStats Solutions
AnalyStats Solutions

Reputation: 21

Installing syui/hugo-theme-arch theme with blogdown

I am working on creating a website using markdown package from Rstudio. When I run a function:

blogdown::install_theme('syui/hugo-theme-arch',theme_example =TRUE)

Return the error:

Error in find_config(): Cannot find the configuration file config.yaml or config.toml of the website

My code is:

devtools::install_github('rstudio/blogdown')
blogdown::install_hugo()
blogdown::install_theme('syui/hugo-theme-arch',theme_example =TRUE)

Upvotes: 2

Views: 247

Answers (1)

Ben Weiher
Ben Weiher

Reputation: 66

I believe you need to first use blogdown's new_site function. I think it is trying to update a config file that doesn't yet exist, since the install_theme function has update_config argument which defaults to TRUE .

Upvotes: 3

Related Questions