ref: ac99ceccac3511f2d4f3c642dfd3b844ba28f900
parent: 35d04671d37e386ea9da376efd44006410157393
author: Nicholas Whittier <[email protected]>
date: Thu Jun 26 10:47:51 EDT 2014
Add shortcode template loading from themes directory.
--- a/hugolib/shortcode.go
+++ b/hugolib/shortcode.go
@@ -150,6 +150,9 @@
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")
}