Problem to blogdown::new_site

My version of blogdown is 0.12, hugo_version is 0.55.5.
I have created a empty document nameed “website” and i’m trying to run

"

setwd(“D:/website”)
blogdown::new_site(theme = “gcushen/hugo-academic”)
"
But error:"

Building sites 鈥?ERROR 2019/05/06 20:53:26 Could not find an author page at /authors/authors%5Cadmin%5C. Please check the value of author in your About widget and create an associated author page if one does not already exist. See sourcethemes.com - This website is for sale! - sourcethemes Resources and Information. Total in 4579 ms Error: Error building site: logged 1 error(s) Building sites 鈥?ERROR 2019/05/06 20:53:31 Could not find an author page at /authors/authors%5Cadmin%5C. Please check the value of author in your About widget and create an associated author page if one does not already exist. See sourcethemes.com - This website is for sale! - sourcethemes Resources and Information. Total in 711 ms Error: Error building site: logged 1 error(s) 系统找不到指定的路径。 Error in shell(cmd, mustWork = TRUE, intern = intern) : ‘“C:\Users\ASUS\AppData\Roaming\Hugo\hugo.exe” -b / -D -F -d “public” --themesDir themes -t hugo-academic’ execution failed with error code 1

"

I have check the home->about, and the value of author in my About widget already existed like this.

Thanks for your help!!

You can find the official installation guide at: https://sourcethemes.com/academic/docs/install/#install-with-rstudio

I was having the exactly same problem, a hacky approach I used was themes\academic\layouts\partials\widgets\about.html going into the about.html file and hardcoding the author path. Might be a hugo issue or cause the hugo version changed or something like that.

Original Code

{{ $person_page_path := (printf "/authors/%s" (urlize $author)) }}
{{ $person_page := site.GetPage $person_page_path }}
{{ if not $person_page }}
  {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://sourcethemes.com/academic/docs/page-builder/#about " $person_page_path }}
{{end}}
{{ $person := $person_page.Params }}

New Version

{{ $person_page_path := (printf "/authors/%s" (urlize $author)) }}
{{ $person_page := site.GetPage "/authors/grandfleet" }}
{{ if not $person_page }}
  {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://sourcethemes.com/academic/docs/page-builder/#about " $person_page_path }}
{{end}}
{{ $person := $person_page.Params }}

Thanks for your help! I have followed the steps and tried to install it already, but it didn’t work. i’ll try it again!

I think it’s an error with hugo academic.

Thanks!t’m trying to do as you say. Can i hardcoding about.html in notepad?

i know how to change the html now!

i have done this step:

{{ $person_page := site.GetPage “/authors/grandfleet” }}
Should i
blogdown::new_site(theme = “gcushen/hugo-academic”)
again?

Try rebuilding the site? I never used blogdown, but noticed the error, I think it will get fixed later. You should be able to build the site now.

i got it! Thanks for your help!

For anyone else who is receiving this error message (where “%5C” occurs in the path within the error message) - this was an issue which affected Windows users and has now been fixed:

If you update to the latest master version of Academic you’ll pick up the fix :slight_smile:

Gei it! i 'll try it!
Thank you!:slight_smile: