2017-06-01 3 views
0

私はblogdownにhugo-academicテーマをインストールしようとしています。その後blogdownのテーマ(ヒューゴ学術)について

baseurl = "/" 
relativeurls = true 
languageCode = "en-us" 
title = "A Hugo website" 
theme = "hugo-academic" 
googleAnalytics = "" 
disqusShortname = "" 
ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"] 

を私は blogdown::serve_site()でサイトを提供しようとすると、 :以下に示すように、私はconfig.tomlファイルを編集した私のサイトのディレクトリ内に、私はRを実行し、インストールした後

blogdown::install_theme("gcushen/hugo-academic") 

でインストール

Started building sites ... 
ERROR 2017/06/01 20:02:50 Error while rendering "page": template: theme/_default/single.html:10:7: executing "theme/_default/single.html" at <partial "article_met...>: error calling partial: template: theme/partials/article_metadata.html:7:24: executing "theme/partials/article_metadata.html" at <$.Site.Params.date_f...>: invalid value; expected string 
Started building sites ... 
ERROR 2017/06/01 20:02:50 Error while rendering "page": template: theme/_default/single.html:10:7: executing "theme/_default/single.html" at <partial "article_met...>: error calling partial: template: theme/partials/article_metadata.html:7:24: executing "theme/partials/article_metadata.html" at <$.Site.Params.date_f...>: invalid value; expected string 
The system cannot find the path specified. 
Error in shell(cmd, mustWork = TRUE, intern = intern) : 
    '"C:\Users\Suman\AppData\Roaming\Hugo\hugo.exe" -b/-D -F -d "public" -t hugo-academic' execution failed with error code 1 
In addition: Warning messages: 
1: running command '"C:\Users\Suman\AppData\Roaming\Hugo\hugo.exe" -b/-D -F -d "public" -t hugo-academic' had status 65535 
2: running command '"C:\Users\Suman\AppData\Roaming\Hugo\hugo.exe" -b/-D -F -d "public" -t hugo-academic' had status 65535 
3: running command 'C:\WINDOWS\system32\cmd.exe /c "C:\Users\Suman\AppData\Roaming\Hugo\hugo.exe" -b/-D -F -d "public" -t hugo-academic' had status 1 

これを解決するためにすべてのヘルプ:私は次のエラーを取得しますか?

注:私はWindows 10 64ビットOSを使用しています。

+0

ちょうど推測ですが、私はあなたのbaseurlは ""と思うこのトピックに関する詳細は、こちらをご覧ください:https://gohugo.io/extras/urls/ – sinQueso

+0

@sinQuesoこれは問題ではありません。 –

答えて

2

エラーメッセージから判断すると、config.tomlファイルにdate_formatパラメータを追加する必要があります。最後にこれを追加してみてください:

[params] 
    date_format = "Mon, Jan 2, 2006" 

は、変更することができ、より多くの設定のためのexample config fileを見てみましょう。

+0

うん、私もそれが問題だと思う。 @Sumanあなたはhttps://bookdown.org/yihui/blogdown/other-themes.htmlを読む必要があり、この問題のために 'install_theme()'の代わりに 'new_site()'を勧めました。 –

+0

'[params] date_format =" 2006年1月2日月曜日 ""を追加した後、うまく動作します。ありがとう@ジャックテイラーと@ Yihui。 blogdown/bookdown/pkgdownは素晴らしいです! –

関連する問題