From ac99ceccac3511f2d4f3c642dfd3b844ba28f900 Mon Sep 17 00:00:00 2001 From: Nicholas Whittier Date: Thu, 26 Jun 2014 14:47:51 -0600 Subject: [PATCH] Add shortcode template loading from themes directory. --- hugolib/shortcode.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go index 67204b740..bfbb1efdb 100644 --- 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") }