From 7f25b7463edb78b843003f29803701174890fadd Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 22 Apr 2018 12:25:41 +0100 Subject: [PATCH] shortcode: Add Google Docs Enables easily embedding Google Slides. To use, copy and paste the share link from Google Docs in the form: `{{< gdocs "https://..." >}}` --- layouts/partials/css/academic.css | 4 ++++ layouts/shortcodes/gdocs.html | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 layouts/shortcodes/gdocs.html diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index f60fa89a..0ef490dd 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -238,6 +238,10 @@ small, font-size: .75em; } +.responsive-wrap iframe { + max-width: 100%; +} + /************************************************* * Modals. **************************************************/ diff --git a/layouts/shortcodes/gdocs.html b/layouts/shortcodes/gdocs.html new file mode 100644 index 00000000..9b98d48c --- /dev/null +++ b/layouts/shortcodes/gdocs.html @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file