Add break in the moto

This commit is contained in:
Alexander Nozik 2022-05-21 20:10:44 +03:00
parent 120989a333
commit d88036c1bb
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -38,7 +38,8 @@ context(PageContext) internal fun HTML.spcPageContent(
h1 { +title } h1 { +title }
} }
meta["image"]?.let { imageMeta -> meta["image"]?.let { imageMeta ->
val imagePath = imageMeta.value?.string ?: imageMeta["path"].string ?: error("Image path not provided") val imagePath =
imageMeta.value?.string ?: imageMeta["path"].string ?: error("Image path not provided")
val imageClass = imageMeta["position"].string ?: "main" val imageClass = imageMeta["position"].string ?: "main"
span("image $imageClass") { span("image $imageClass") {
img { img {
@ -105,10 +106,10 @@ context(PageContext) private fun HTML.spcHome() {
} }
div("content") { div("content") {
p { p {
+"""Programming in Science""" +"Programming in Science"
br { br{}
} entity(Entities.nbsp)
+"""and Science in Programming""" +"and Science in Programming"
} }
ul("actions") { ul("actions") {
li { li {