gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.15k stars 7.48k forks source link

Create generic oEmbed shortcode #8046

Closed BasixKOR closed 2 years ago

BasixKOR commented 3 years ago

Problem

In current situation, the users have to create shortcodes for each websites they wanna embed (if they aren't going to paste HTML directly).

Solution

oEmbed allows users to have an uniformed way to embed things. it is widely adopted by:

And so much more. I think supporting oEmbed would cover a lot of use-cases for custom shortcode. And we don't have to keep builtin shortcodes updated unless oEmbed spec changes.

Why not just create your own oEmbed shortcode?

Well it is technically possible. There's already a post about how it can be done. However I think this would be much nice to be supported by Hugo because:

Problems

BasixKOR commented 3 years ago

Note: Facebook and Instagram support is out of scope in this proposal since they require a Facebook Developer Account.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.