尽管在RStudio中工作,但在Netlify中未呈现blogdown

时间:2019-05-07 01:06:14

标签: r netlify blogdown

这是我的GitHub存储库:https://github.com/millerchangym/mathstatsblog

您可以在下面看到,我可以在RStudio右下角的查看器中看到该帖子:

enter image description here

在推送到GitHub之前,我确实运行过blogdown::serve_site()

blogdown::hugo_version()
[1] ‘0.55.5’

通过Netlify部署后,我得到以下部署日志:

7:54:47 PM: Build ready to start
7:55:03 PM: build-image version: d5d16c91ca3e1e5a990086daa8a1d5bd8564d12a
7:55:03 PM: build-image tag: v3.2.2
7:55:03 PM: buildbot version: 93c10be3dc42bccef2b5600a7e10ec1d4a1c7051
7:55:03 PM: Fetching cached dependencies
7:55:04 PM: Starting to download cache of 255.1KB
7:55:04 PM: Finished downloading cache in 161.833458ms
7:55:04 PM: Starting to extract cache
7:55:04 PM: Failed to fetch cache, continuing with build
7:55:04 PM: Starting to prepare the repo for build
7:55:04 PM: No cached dependencies found. Cloning fresh repo
7:55:04 PM: git clone https://github.com/millerchangym/mathstatsblog
7:55:06 PM: Preparing Git Reference refs/heads/master
7:55:07 PM: Starting build script
7:55:07 PM: Installing dependencies
7:55:08 PM: v10.15.3 is already installed.
7:55:09 PM: Now using node v10.15.3 (npm v6.4.1)
7:55:09 PM: Attempting ruby version 2.6.2, read from environment
7:55:11 PM: Using ruby version 2.6.2
7:55:11 PM: Using PHP version 5.6
7:55:11 PM: Installing Hugo 0.55.5
7:55:13 PM: Hugo Static Site Generator v0.55.5-A83256B9C/extended linux/amd64 BuildDate: 2019-05-02T14:12:43Z
7:55:13 PM: Started restoring cached go cache
7:55:13 PM: Finished restoring cached go cache
7:55:13 PM: unset GOOS;
7:55:13 PM: unset GOARCH;
7:55:13 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
7:55:13 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
7:55:13 PM: go version >&2;
7:55:13 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
7:55:13 PM: go version go1.12 linux/amd64
7:55:13 PM: Installing missing commands
7:55:13 PM: Verify run directory
7:55:13 PM: Executing user command: hugo
7:55:13 PM: Building sites …
7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
7:55:13 PM:                    | EN
7:55:13 PM: +
7:55:13 PM: ------------------+----+
7:55:13 PM:   Pages            |  3
7:55:13 PM:   Paginator pages  |  0
7:55:13 PM:   Non-page files   |  0
7:55:13 PM:   Static files     |  3
7:55:13 PM:   Processed images |  0
7:55:13 PM:   Aliases          |  0
7:55:13 PM:   Sitemaps         |  1
7:55:13 PM:   Cleaned          |  0
7:55:13 PM: Total in 10 ms
7:55:13 PM: Build script success
7:55:13 PM: Starting cache prep script
7:55:13 PM: Caching artifacts
7:55:13 PM: Started saving pip cache
7:55:13 PM: Finished saving pip cache
7:55:13 PM: Started saving emacs cask dependencies
7:55:13 PM: Finished saving emacs cask dependencies
7:55:13 PM: Started saving maven dependencies
7:55:13 PM: Finished saving maven dependencies
7:55:13 PM: Started saving boot dependencies
7:55:13 PM: Finished saving boot dependencies
7:55:13 PM: Started saving go dependencies
7:55:13 PM: Finished saving go dependencies
7:55:15 PM: Cache script success
7:55:15 PM: Starting to deploy site from 'public'
7:55:15 PM: Creating deploy tree 
7:55:15 PM: 0 new files to upload
7:55:15 PM: 0 new functions to upload
7:55:17 PM: Starting post processing
7:55:17 PM: Post processing done
7:55:17 PM: Site is live
7:55:26 PM: Finished processing build request in 23.212737452s
7:55:27 PM: Shutting down logging, 0 messages pending

点击Netlify中的“预览部署”,我得到

enter image description here

我发现这些行特别奇怪,但是搜索并没有使我对这些行的含义有任何进一步的了解:

7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
    7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
    7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
    7:55:13 PM: WARN 2019/05/07 00:55:13 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

1 个答案:

答案 0 :(得分:0)

您必须先构建该站点,然后再将其推送到您的github存储库。尝试blogdown::build_site(),然后添加,提交并推送到github,看看它是否有效

看看here。如果您有.Rmd个文件,则在构建网站时可能需要使用参数method = "html"