Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when serving site #87

Open
Rikagx opened this issue May 20, 2019 · 2 comments
Open

Error when serving site #87

Rikagx opened this issue May 20, 2019 · 2 comments

Comments

@Rikagx
Copy link

Rikagx commented May 20, 2019

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
Copy link

amrrs commented Jul 25, 2019

Is this resolved?

@Tristor
Copy link
Contributor

Tristor commented Feb 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants