Update README.adoc (#32)
Obvious Fix. "properties.title" is not accessible on this step. It should be updated in the end of the guide when "private val properties: BlogProperties" is defined for HtmlController class.
This commit is contained in:
committed by
Greg Turnquist
parent
3a333e33bf
commit
3d4b305b04
@@ -711,7 +711,7 @@ class HtmlController(private val repository: ArticleRepository) {
|
|||||||
|
|
||||||
@GetMapping("/")
|
@GetMapping("/")
|
||||||
fun blog(model: Model): String {
|
fun blog(model: Model): String {
|
||||||
model["title"] = properties.title
|
model["title"] = "Blog"
|
||||||
model["articles"] = repository.findAllByOrderByAddedAtDesc().map { it.render() }
|
model["articles"] = repository.findAllByOrderByAddedAtDesc().map { it.render() }
|
||||||
return "blog"
|
return "blog"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user