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:
Victor Bjorn
2019-04-22 18:20:04 +03:00
committed by Greg Turnquist
parent 3a333e33bf
commit 3d4b305b04

View File

@@ -711,7 +711,7 @@ class HtmlController(private val repository: ArticleRepository) {
@GetMapping("/")
fun blog(model: Model): String {
model["title"] = properties.title
model["title"] = "Blog"
model["articles"] = repository.findAllByOrderByAddedAtDesc().map { it.render() }
return "blog"
}