DEV Community

Cover image for Embeded Speakerdeck Slide in Gatsby Post
Bryan Liu
Bryan Liu

Posted on • Edited on

2 1

Embeded Speakerdeck Slide in Gatsby Post

There are many ways to embeded different media type contents in Gatsby, here is the easiest one which just leverages the iframe wrapper.

Step 1. Install gatsby-remark-responsive-iframe official plugin

Check here for instruction.

Step 2. Get url of your Speakerdeck slide which you want to share

Step 3. Get embeded html code from iframely

Step 4. Paste the generated code in your index.md

<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.1972%;">
  <iframe src="https://speakerdeck.com/player/cf04f08b30f54c41ad76d0b180effd0b?slide=9"
    style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;"
    allowfullscreen scrolling="no" allow="encrypted-media">
  </iframe>
</div>

Step 5. Run your site in Gatsby develop mode and check the result!

  $ gatsby develop

P.S. This is not for publishing Speakerdeck slide to dev.to!!

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution 4.0 International License.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post