Fix single template not being sourced
This commit is contained in:
parent
6859f3d57c
commit
0a62f8142c
1 changed files with 6 additions and 1 deletions
|
@ -229,9 +229,14 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
var singleTemplate = defaultSingleTemplate
|
||||
if tmpl, hasTmpl := templates["single"]; hasTmpl {
|
||||
singleTemplate = tmpl
|
||||
}
|
||||
|
||||
// render posts to files
|
||||
for fileName, post := range posts {
|
||||
var tmpl = defaultSingleTemplate
|
||||
var tmpl = singleTemplate
|
||||
if pl := post.Metadata.PostLayout; pl != "" {
|
||||
t, ok := templates[pl]
|
||||
if !ok {
|
||||
|
|
Loading…
Reference in a new issue