Use custom footer on all pages
Remove static footer
This commit is contained in:
parent
baf65d886f
commit
d4ed30ad80
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
"""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user