mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 02:04:27 +00:00
No block support in shortcodes
So no need to check them.
This commit is contained in:
parent
3a2a4c3b07
commit
58802de313
1 changed files with 2 additions and 1 deletions
|
@ -402,7 +402,8 @@ func (t *GoHTMLTemplate) loadTemplates(absPath string, prefix string) {
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue