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 https://sourcethemes.com/academic/docs/page-builder/#about 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 https://sourcethemes.com/academic/docs/page-builder/#about 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.
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 }}
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