yoshiharuyamashita / blackburn

A Hugo theme built using Yahoo's Pure CSS
MIT License
317 stars 170 forks source link

Error when serving site #87

Open Rikagx opened 5 years ago

Rikagx commented 5 years ago

I am trying to create a blogdown site using the Blackburn theme but keep getting an error when I try to serve the site. I am using Hugo version 0.55.5, R-Studio version 1.2.1335, and R version 3.5.3.

My repo is here: https://github.com/Rikagx/personal-website

My code is: library(blogdown) new_site(theme = 'yoshiharuyamashita/blackburn', sample = TRUE, theme_example = TRUE, empty_dirs = TRUE, to_yaml = TRUE) install_hugo() build_site() serve_site() The only other changes I've made are the basic config.toml changes specified such as changing the ignore files and the baseurl to my domain.

The error I get is:

serve_site() Error: unknown command "technical" for "hugo" Run 'hugo --help' for usage. Error: unknown command "technical" for "hugo" Run 'hugo --help' for usage. The system cannot find the path specified. Error in shell(cmd, mustWork = TRUE, intern = intern) : '"C:\Users\Rika\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" --themesDir themes -t A technical blog by Rika Gorn' execution failed with error code 1

amrrs commented 5 years ago

Is this resolved?

Tristor commented 3 years ago

I know this is a very old issue, and I've never used blogdown, but the error listed here and your code should make this pretty straightforward to answer. I am nearly certain that your issue is that you have theme = "A technical blog by Rika Gorn" in your config.toml. The theme attribute needs to be set to the relative path the theme you're using, or to its name if it's within the expected hierarchy for hugo.