hugo

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

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

Add shortcode for github gists

Diffstat:
Mtpl/template_embedded.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go
@@ -46,6 +46,7 @@ func (t *GoHTMLTemplate) EmbedShortcodes() {
 	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>`)
+	t.AddInternalShortcode("gist.html", `<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js"></script>`)
 }
 
 func (t *GoHTMLTemplate) EmbedTemplates() {