hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 3027b15176bd0906de460f9fd8fe91c6c3a73472
parent 4424288d9bbe54011685189a3600f7d876375558
Author: digitalcraftsman <digitalcraftsman@users.noreply.github.com>
Date:   Fri, 20 Nov 2015 18:33:46 +0100

Add shortcode for vimeo

Diffstat:
Mtpl/template_embedded.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go
@@ -43,6 +43,9 @@ func (t *GoHTMLTemplate) EmbedShortcodes() {
 <!-- image -->`)
 	t.AddInternalShortcode("speakerdeck.html", "<script async class='speakerdeck-embed' data-id='{{ index .Params 0 }}' data-ratio='1.33333333333333' src='https://speakerdeck.com/assets/embed.js'></script>")
 	t.AddInternalShortcode("youtube.html", `<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;"><iframe class="youtube-player" type="text/html" src="https://www.youtube.com/embed/{{ index .Params 0 }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" allowfullscreen frameborder="0"></iframe></div>`)
+	t.AddInternalShortcode("vimeo.html", `<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;">
+  <iframe src="//player.vimeo.com/video/{{ index .Params 0 }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
+</div>`)
 }
 
 func (t *GoHTMLTemplate) EmbedTemplates() {