Hi, I want to embed Youtube videos and Twitter tweets in my blog posts, how to proceed?
I checked Gatsby MDX but it does not seem to be supported by Novela.
I have the same question... Would like to know
The gatsby-remark-oembed plugin has been added to this theme recently. It supports embedding content like this.
Thank you @aleccool213, so what is the best practice to embed a YouTube video now ? (Maybe without MDX). For example, what about gatsby-remark-embed-video ?
I am new to Gatsby themes so I don鈥檛 know how plug-ins work entirely within that context. If a plugin is defined in your Gatsby site while using Novela, some work, some don鈥檛. I think the ones which do not work are the ones that have to do with creating pages.
I tried gatsby-remark-embed-video and I got an issue (but I am new to Gatsby too): https://github.com/borgfriend/gatsby-remark-embed-video/issues/49
A temporary hack is to simply make a Youtube embed with iframe, and add style="margin:0 auto;", like this:
<iframe style="margin:0 auto;" src="https://www.youtube.com/embed/783ccP__No8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
It was mentioned here: https://github.com/narative/gatsby-theme-novela/issues/195
The remaining issue is then to make the iframe responsive for mobile.
Youtube embedding is very important nowadays, so it should be supported natively.
We've added embed features for social/videos.
@brotzky thanks, how to use this feature?
@mostafachatillon Details on how to embed social content is in this PR.
Most helpful comment
@mostafachatillon Details on how to embed social content is in this PR.