hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit ac99ceccac3511f2d4f3c642dfd3b844ba28f900
parent 35d04671d37e386ea9da376efd44006410157393
Author: Nicholas Whittier <imperialwicket@gmail.com>
Date:   Thu, 26 Jun 2014 14:47:51 -0600

Add shortcode template loading from themes directory.

Diffstat:
Mhugolib/shortcode.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go
@@ -150,6 +150,9 @@ func GetTemplate(name string, t Template) *template.Template {
 	if x := t.Lookup("shortcodes/" + name + ".html"); x != nil {
 		return x
 	}
+	if x := t.Lookup("theme/shortcodes/" + name + ".html"); x != nil {
+		return x
+	}
 	return t.Lookup("_internal/shortcodes/" + name + ".html")
 }