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,
|
in: site,
|
||||||
language: language,
|
language: language,
|
||||||
sectionItemCount: sectionItemCount)
|
sectionItemCount: sectionItemCount)
|
||||||
content[.footer] = SiteGenerator.pageFooter
|
content[.footer] = try site.customFooterContent()
|
||||||
try factory.page.generate(content, to: url)
|
try factory.page.generate(content, to: url)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ struct OverviewPageGenerator {
|
|||||||
content[.contentClass] = "overview"
|
content[.contentClass] = "overview"
|
||||||
content[.header] = makeHeader(metadata: metadata, language: language, backText: backText)
|
content[.header] = makeHeader(metadata: metadata, language: language, backText: backText)
|
||||||
content[.content] = try makeContent(section: section, language: language)
|
content[.content] = try makeContent(section: section, language: language)
|
||||||
content[.footer] = SiteGenerator.pageFooter
|
content[.footer] = try section.customFooterContent()
|
||||||
try factory.page.generate(content, to: url)
|
try factory.page.generate(content, to: url)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,10 +73,4 @@ struct SiteGenerator {
|
|||||||
to: indexPageUrl)
|
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