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://..." >}}`
This commit is contained in:
George Cushen committed 2018-04-22 12:25:51 +01:00
1 parent 99c7074795
commit 7f25b7463e
2 files changed
+7

No files matched your search

+4
View File
@@ -238,6 +238,10 @@ small,
font-size: .75em;
}
.responsive-wrap iframe {
max-width: 100%;
}
/*************************************************
* Modals.
**************************************************/
+3
View File
@@ -0,0 +1,3 @@
<div class="responsive-wrap">
<iframe src="{{ strings.TrimSuffix (index (last 1 (split (.Get 0) "/")) 0) (.Get 0) }}embed?start=false&loop=false&delayms=3000" frameborder="0" width="960" height="569" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
</div>