{{ parameters.title }}{{ end }}
{{
if content.extract("heading1").count > 0
for chapter in content.splitBy("heading1")
}}
{{ chapter.head
chapter.body
}}
{{ end
end
if content.extract("heading1").count == 0 }}
{{ content }}
{{ end
for footnote in content.extract('footnote') }}
{{
end }}