mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
b31da911b5
commit
6650fae7ad
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func (t *TemplateAdapter) Tree() string {
|
|||
panic("Unknown template")
|
||||
}
|
||||
|
||||
if tree.Root == nil {
|
||||
if tree == nil || tree.Root == nil {
|
||||
return ""
|
||||
}
|
||||
s := tree.Root.String()
|
||||
|
|
Loading…
Reference in a new issue