Skip to content

Commit

Permalink
Add note about issue with Instagram shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraftsman authored Nov 2, 2020
1 parent 2a43551 commit 57c1d1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/en/content-management/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ Using the preceding `instagram` with `hidecaption` example above, the following
{{< instagram BWNjjyYFxVx hidecaption >}}



{{% note %}}
The `instagram`-shortcode refers an endpoint of Instagram's API, that's 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).
{{% /note %}}

### `param`

Gets a value from the current `Page's` params set in front matter, with a fall back to the site param value. It will log an `ERROR` if the param with the given key could not be found in either.
Expand Down

3 comments on commit 57c1d1a

@monsieurnebo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@davidsneighbour
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just adding deprecated and removing in later versions?

@digitalcraftsman
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shortcode might be fixed with a different approach. Alternatively, gohugoio/hugo#7893 proposes the removal of such shortscodes because they can break. The future of this shortcode is uncertain. What I can say right now is that it's broken.

Please sign in to comment.