Dev Notes

Various Cheat Sheets and Resources by David Egan/Carawebs.

Embed Google Slides in Jekyll

David Egan

To embed a Google Slides presentation in a Jekyll post or page, open the presentation and select “Publish to Web” from the “File” menu.

Choose the options you require, then select the “Embed” tab. You’ll be provided with an embed code for an iframe, that you simply paste into your Jekyll post or page. Generate your site as usual, and the iframe with your presentation will be embedded. When Jekyll parses markdown files, it will render any HTML that it finds.

It won’t be responsive out of the box, so you’ll need a bit of CSS. I’ve shown this inline, but you could add the CSS to your stylesheet.

.responsive-wrap iframe{ max-width: 100%;}
<div class="responsive-wrap">
<!-- this is the embed code provided by Google -->
  <iframe src="" frameborder="0" width="960" height="569" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
<!-- Google embed ends -->

Working Example

comments powered by Disqus