Skip to content

Commit

Permalink
gdocs shortcode: Support all doc types (Slides, Docs, Sheets, etc.)
Browse files Browse the repository at this point in the history
 - Shortcode syntax changed to: {{< gdocs src="https://..." >}}
 - Use with Google Docs `embed` URL rather than `link` URL.

 Close #544
  • Loading branch information
gcushen committed Jul 15, 2018
1 parent 2bc968b commit 11a5d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/gdocs.html
Original file line number Diff line number Diff line change
@@ -1,3 +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>
<iframe src="{{ .Get "src" }}" frameborder="0" width="960" height="569" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
</div>

0 comments on commit 11a5d1b

Please sign in to comment.