ref: cc3f52b9c1c942047c47bffd2080af03ecc38403
parent: fe2a9fa21d2b9b67bdc31369ee743dcc3c31965b
author: digitalcraftsman <[email protected]>
date: Fri Nov 20 13:13:43 EST 2015
Add shortcode for speakerdeck
--- a/tpl/template_embedded.go
+++ b/tpl/template_embedded.go
@@ -41,6 +41,7 @@
{{ 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('send', 'pageview');
</script>
{{ end }}`)
-
}