}
context(Quote)
-private fun FlowContent.quoteWithAttribution() {
- h1 { +title }
+private fun FlowContent.quoteWithAttribution(pageTitle: String) {
+ h1 { +pageTitle }
blockQuote {
+quote
}
return page(title, standardNavBar(), QuoteOriginSidebar(author, fullPortrait, fullLink)) {
section {
a { id = "page-top" }
- quoteWithAttribution()
+ quoteWithAttribution(title)
}
}
}
context(ApplicationCall)
fun Quote.toRawHtml(title: String): HTML.() -> Unit {
return rawPage(title) {
- quoteWithAttribution()
+ quoteWithAttribution(title)
p {
style = "align:center"
a(href = fullLink) {