fix(docs): built-in shortcodes instagram and tweet error

This commit is contained in:
Dillon
2022-02-08 19:38:57 +08:00
parent 7754282abf
commit e55256c498
7 changed files with 6220 additions and 71 deletions

View File

@@ -111,15 +111,11 @@ The rendered output looks like this:
[Documentation of `instagram`](https://gohugo.io/content-management/shortcodes#instagram)
Example `instagram` input:
```markdown
{{</* instagram BWNjjyYFxVx hidecaption */>}}
```
The rendered output looks like this:
{{< instagram BWNjjyYFxVx hidecaption >}}
{{< admonition question "Instagrams API was deprecated since October 24th, 2020" >}}
The instagram-shortcode refers an endpoint of Instagrams API, thats deprecated since October 24th, 2020.
Thus, no images can be fetched from this API endpoint, resulting in an error when the instagram-shortcode is used.
For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879).
{{< /admonition >}}
## 5 param
@@ -146,12 +142,12 @@ The rendered output looks like this:
Example `tweet` input:
```markdown
{{</* tweet 877500564405444608 */>}}
{{</* tweet user=GoHugoIO id=917359331535966209 */>}}
```
The rendered output looks like this:
{{< tweet 877500564405444608 >}}
{{< tweet user=GoHugoIO id=917359331535966209 >}}
## 8 vimeo