shithub: hugo

Download patch

ref: 58802de3138b5b72b7600de75636ccee27bb6c0a
parent: 3a2a4c3b07f82527765cbeaa33f53ab7e2314491
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Mar 15 06:22:08 EDT 2016

No block support in shortcodes

So no need to check them.

--- a/tpl/template.go
+++ b/tpl/template.go
@@ -402,7 +402,8 @@
 			var baseTemplatePath string
 
 			// Ace and Go templates may have both a base and inner template.
-			if filepath.Ext(path) != ".amber" && !strings.HasSuffix(filepath.Dir(path), "partials") {
+			pathDir := filepath.Dir(path)
+			if filepath.Ext(path) != ".amber" && !strings.HasSuffix(pathDir, "partials") && !strings.HasSuffix(pathDir, "shortcodes") {
 
 				innerMarkers := goTemplateInnerMarkers
 				baseFileName := fmt.Sprintf("%s.html", baseFileBase)