Fix documentation inconsistencies
Closes gh-26
This commit is contained in:
@@ -665,7 +665,7 @@ We update the "blog" Mustache templates.
|
||||
{{#articles}}
|
||||
<section>
|
||||
<header class="article-header">
|
||||
<h2 class="article-title"><a href="/article/{{id}}">{{title}}</a></h2>
|
||||
<h2 class="article-title"><a href="/article/{{slug}}">{{title}}</a></h2>
|
||||
<div class="article-meta">By <strong>{{author.firstname}}</strong>, on <strong>{{addedAt}}</strong></div>
|
||||
</header>
|
||||
<div class="article-description">
|
||||
@@ -711,6 +711,7 @@ class HtmlController(private val repository: ArticleRepository) {
|
||||
|
||||
@GetMapping("/")
|
||||
fun blog(model: Model): String {
|
||||
model["title"] = properties.title
|
||||
model["articles"] = repository.findAllByOrderByAddedAtDesc().map { it.render() }
|
||||
return "blog"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user