diff --git a/lib/locomotive/import/pages.rb b/lib/locomotive/import/pages.rb index 38722f53..8a73317c 100644 --- a/lib/locomotive/import/pages.rb +++ b/lib/locomotive/import/pages.rb @@ -91,9 +91,10 @@ module Locomotive def build_parent_template(template) # just check if the template contains the extends keyword - fullpath = template.scan(/\{%\s*extends\s*\'([^\']+)\'\s*%\}/).flatten.first + fullpath = template.scan(/\{%\s*extends\s*([^\']+)\s*%\}/).flatten.first if fullpath # inheritance detected + fullpath.gsub!("'", '') return if fullpath == 'parent' self.add_page(fullpath) end