social embedding examples
GitHub gists
Here is a gist I wrote:
Uses the shortcode:
{{< gist sellorm 20525aff669acafb975b7495b8f2066e >}}Gists can be pretty handy.
Loom
To embed a Loom video in your HTML document use this shortcode:
{{< loom <VIDEO_ID> >}}Where <VIDEO_ID> is the loom video ID. For example:
{{< loom 8619b03224f74282b6d56cbedbcd3fc6 >}}Which renders like this:
You can get the VIDEO ID from for the URL of the video. For instance, in the URL https://www.loom.com/share/8619b03224f74282b6d56cbedbcd3fc6 the video ID is 8619b03224f74282b6d56cbedbcd3fc6.
Mastodon
This is a post on mastodon
Uses this shortcode:
{{< mastodon "https://mastodon.social/@sellorm/109376707453406631" >}}You must enclose the Mastodon URL in quotes, or the post will not be displayed.
You can obtain the username and status id of a tweet by clicking the “share tweet” button and choosing “copy URL”.
This will give you a URL like this one: https://twitter.com/juliesquid/status/1557485909486059523. The “user” is the section between twitter.com/ and /status. The status “id” is everything between status/ and the end of the URL or ?, whichever comes first.
Here is a tweet that I tweeted on Twitter:
(Uses the shortcode: https://twitter.com/juliesquid/status/1557485909486059523)
Vimeo
A video from Vimeo:
Uses the shortcode:
{{< vimeo 22439234 >}}It’s very beautiful.
Youtube
This is a video I created for rstudio::conf(2022).
Uses the shortcode:
{{< youtube zk9zHqXm6m0 >}}The video is about my R4Pi project.