Use custom footer on all pages

Remove static footer
This commit is contained in:
Christoph Hagen 2022-08-17 10:35:23 +02:00
parent baf65d886f
commit d4ed30ad80
3 changed files with 2 additions and 8 deletions

View File

@ -43,7 +43,7 @@ struct IndexPageGenerator {
in: site,
language: language,
sectionItemCount: sectionItemCount)
content[.footer] = SiteGenerator.pageFooter
content[.footer] = try site.customFooterContent()
try factory.page.generate(content, to: url)
}

View File

@ -28,7 +28,7 @@ struct OverviewPageGenerator {
content[.contentClass] = "overview"
content[.header] = makeHeader(metadata: metadata, language: language, backText: backText)
content[.content] = try makeContent(section: section, language: language)
content[.footer] = SiteGenerator.pageFooter
content[.footer] = try section.customFooterContent()
try factory.page.generate(content, to: url)
}

View File

@ -73,10 +73,4 @@ struct SiteGenerator {
to: indexPageUrl)
}
}
static let pageFooter: String =
"""
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/global.min.js"></script>
"""
}