blogdown Failed to get JSON resource 連接錯(cuò)誤

今天學(xué)習(xí)blogdown建靜態(tài)網(wǎng)頁(yè)、
按照書中的流程走下來:Rstudio--New project--New Directory--Website using blogdown
https://themes.gohugo.io/上看到一個(gè)比較順眼的主題(github地址在https://github.com/CaiJimmy/hugo-theme-stack):

image.png

但是在build website的時(shí)候(可以點(diǎn)擊Build欄Build Website,也可以使用blogdown::build_site()函數(shù))出現(xiàn)了錯(cuò)誤:
批注 2020-12-29 223533.png

可以看到報(bào)錯(cuò)信息的ERROR中是由于連不上twitter的API導(dǎo)致的
再看下面紅色的報(bào)錯(cuò)信息,貌似問題出在content/post/rich-content/index.md 里面,打開看一下:

---
author: Hugo Authors
date: "2019-03-10"
description: A brief description of Hugo Shortcodes
tags:
- shortcodes
- privacy
title: Rich Content
---

Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
<!--more-->
---

## YouTube Privacy Enhanced Shortcode

{{< youtube ZJthWmvUzzc >}}

<br>

---

## Twitter Simple Shortcode

{{< twitter_simple 1085870671291310081 >}}

<br>

---

## Vimeo Simple Shortcode

{{< vimeo_simple 48912912 >}}

里面包含了youtube和twitter的信息,將這個(gè)文件刪除就可以正常bulid website了

blogdown::serve_site()
image.png
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容