Add shortcode template loading from themes directory. - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ac99ceccac3511f2d4f3c642dfd3b844ba28f900
 (DIR) parent 35d04671d37e386ea9da376efd44006410157393
 (HTM) Author: Nicholas Whittier <imperialwicket@gmail.com>
       Date:   Thu, 26 Jun 2014 14:47:51 -0600
       
       Add shortcode template loading from themes directory.
       
       Diffstat:
         M hugolib/shortcode.go                |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) 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")
        }