需要安装 Go 才能使用 Academic Hugo 主题的 blogdown
Need to install Go to use blogdown with Academic Hugo theme
描述
我想用 blogdown
建立个人网站,使用 Academic Hugo theme. I almost read the entire book of blogdown: Creating Websites with R Markdown and several tutorials, like Allison Hill's or Annie Lyu's。
我选择 blogdown 是因为我熟悉 RStudio 和 R 以及 Academic,因为参考资料中有建议选择一个维护的主题,比如 Academic。我按照书中的建议安装了 blogdown
和 Hugo,并尝试通过 RStudio 方式安装主题:单击文件 -> 新项目 -> 新目录 -> 使用 blogdown 的网站。如果我尝试使用 hugo-lithium 主题,一切都很顺利。如果我尝试学术版,则会出现以下消息和错误(指定目录中有一些已安装的文件):
Congratulations! Your new Hugo site is created in C:\Users\HP\Documents\R\website.
Just a few more steps and you're ready to go:
1. Download a theme into the same-named folder.
Choose a theme from https://themes.gohugo.io/ or
create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".
Visit https://gohugo.io/ for quickstart guide and full documentation.
trying URL 'https://github.com/wowchemy/starter-academic/archive/master.tar.gz'
Content length 133 bytes
downloaded 4.8 MB
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" not found; either add it as a Hugo Module or store it in "C:\Users\HP\Documents\R\website\themes".: module does not exist
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" not found; either add it as a Hugo Module or store it in "C:\Users\HP\Documents\R\website\themes".: module does not exist
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" not found; either add it as a Hugo Module or store it in "C:\Users\HP\Documents\R\website\themes".: module does not exist
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"hugo" convert toYAML --unsafe' execution failed with error code 65535
In addition: Warning message:
In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
问题
我需要安装 Go 才能使用这个主题吗? 1.1 安装 没有提及任何关于 Go 的内容(在 2.1 静态站点和 Hugo 部分下方,由我突出显示),也没有提及教程。这与主题的发布有关吗?这本书过时了吗?
We love Hugo for many reasons, but there are a few that stand out. Unlike other static site generators, the installation of Hugo is very simple because it provides a single executable without dependencies for most operating systems.
sessionInfo
:
> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Hungarian_Hungary.1250 LC_CTYPE=Hungarian_Hungary.1250
[3] LC_MONETARY=Hungarian_Hungary.1250 LC_NUMERIC=C
[5] LC_TIME=Hungarian_Hungary.1250
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.0 bookdown_0.18 tools_4.0.0 blogdown_0.20 knitr_1.28
[6] xfun_0.13
遵循学术主题网页上的 Edit your site on your PC 文档:
Before downloading your site, lets first install Hugo Extended and its prerequisites.
在 Windows: Git,OpenSSH 和 Go 必须安装在 Hugo Extended 旁边。因为我已经有 Git,所以我没有安装它,只有 OpenSSH 和 Hugo Extended via Scope(以及之前安装 Scope 的 Powershell 5)。 Go 是通过 the Go documentaion site.
的可执行文件安装的
之后,Academic 主题可以使用问题中指定的RStudio 方法进行部署。也许 blogdown 书需要更新。
注意:另外,在参考文档中:
Convert an old Academic Kickstarter site
If you have an existing site based on the Academic Kickstarter Template that was created before 3rd September 2020, it may need converting to use Hugo’s new modular system.
描述
我想用 blogdown
建立个人网站,使用 Academic Hugo theme. I almost read the entire book of blogdown: Creating Websites with R Markdown and several tutorials, like Allison Hill's or Annie Lyu's。
我选择 blogdown 是因为我熟悉 RStudio 和 R 以及 Academic,因为参考资料中有建议选择一个维护的主题,比如 Academic。我按照书中的建议安装了 blogdown
和 Hugo,并尝试通过 RStudio 方式安装主题:单击文件 -> 新项目 -> 新目录 -> 使用 blogdown 的网站。如果我尝试使用 hugo-lithium 主题,一切都很顺利。如果我尝试学术版,则会出现以下消息和错误(指定目录中有一些已安装的文件):
Congratulations! Your new Hugo site is created in C:\Users\HP\Documents\R\website.
Just a few more steps and you're ready to go:
1. Download a theme into the same-named folder.
Choose a theme from https://themes.gohugo.io/ or
create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".
Visit https://gohugo.io/ for quickstart guide and full documentation.
trying URL 'https://github.com/wowchemy/starter-academic/archive/master.tar.gz'
Content length 133 bytes
downloaded 4.8 MB
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" not found; either add it as a Hugo Module or store it in "C:\Users\HP\Documents\R\website\themes".: module does not exist
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" not found; either add it as a Hugo Module or store it in "C:\Users\HP\Documents\R\website\themes".: module does not exist
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" not found; either add it as a Hugo Module or store it in "C:\Users\HP\Documents\R\website\themes".: module does not exist
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"hugo" convert toYAML --unsafe' execution failed with error code 65535
In addition: Warning message:
In untar2(tarfile, files, list, exdir) :
skipping pax global extended headers
问题
我需要安装 Go 才能使用这个主题吗? 1.1 安装 没有提及任何关于 Go 的内容(在 2.1 静态站点和 Hugo 部分下方,由我突出显示),也没有提及教程。这与主题的发布有关吗?这本书过时了吗?
We love Hugo for many reasons, but there are a few that stand out. Unlike other static site generators, the installation of Hugo is very simple because it provides a single executable without dependencies for most operating systems.
sessionInfo
:
> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Hungarian_Hungary.1250 LC_CTYPE=Hungarian_Hungary.1250
[3] LC_MONETARY=Hungarian_Hungary.1250 LC_NUMERIC=C
[5] LC_TIME=Hungarian_Hungary.1250
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.0 bookdown_0.18 tools_4.0.0 blogdown_0.20 knitr_1.28
[6] xfun_0.13
遵循学术主题网页上的 Edit your site on your PC 文档:
Before downloading your site, lets first install Hugo Extended and its prerequisites.
在 Windows: Git,OpenSSH 和 Go 必须安装在 Hugo Extended 旁边。因为我已经有 Git,所以我没有安装它,只有 OpenSSH 和 Hugo Extended via Scope(以及之前安装 Scope 的 Powershell 5)。 Go 是通过 the Go documentaion site.
的可执行文件安装的之后,Academic 主题可以使用问题中指定的RStudio 方法进行部署。也许 blogdown 书需要更新。
注意:另外,在参考文档中:
Convert an old Academic Kickstarter site If you have an existing site based on the Academic Kickstarter Template that was created before 3rd September 2020, it may need converting to use Hugo’s new modular system.