hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit cc3f52b9c1c942047c47bffd2080af03ecc38403
parent fe2a9fa21d2b9b67bdc31369ee743dcc3c31965b
Author: digitalcraftsman <digitalcraftsman@users.noreply.github.com>
Date:   Fri, 20 Nov 2015 18:13:43 +0100

Add shortcode for speakerdeck

Diffstat:
Mtpl/template_embedded.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go
@@ -41,6 +41,7 @@ func (t *GoHTMLTemplate) EmbedShortcodes() {
     {{ end }}
 </figure>
 <!-- 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>")
 }
 
 func (t *GoHTMLTemplate) EmbedTemplates() {
@@ -215,5 +216,4 @@ ga('create', '{{ . }}', 'auto');
 ga('send', 'pageview');
 </script>
 {{ end }}`)
-
 }