Skip to content
Snippets Groups Projects
Verified Commit d9a899af authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: missing template throw exeption

parent c9018d0a
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,9 @@ func extractTemplate(env *BuildHtmlEnvironment, doc *html.Node, id string) {
checkError(err)
node := cascadia.Query(doc, sel)
if node == nil {
return
}
node.Parent.RemoveChild(node)
container := html.Node{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment