-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
官方教程中存在错误 #26
Comments
Hey, any chance you could translate the issue title and description to english? |
I try my best! In addition, {{title}} is used in both blog.mustache and header.mustache, but in HtmlController Can you see what I mean |
Fixed, thanks for spotting this, and your english is as good as mine ;-) |
在“Implementing the blog engine”这部分。
blog.mustache这个文件中有:
<h2 class="article-title"><a href="/article/{{id}}">{{title}}</a></h2>
然而在后面给出的RenderedArticle代码里面,不存在id这个字段。在github里面blog.mustache的代码则是
<h2 class="article-title"><a href="/article/{{slug}}">{{title}}</a></h2>
其次,blog.mustache和header.mustache文件中都引用了{{title}},但是在HtmlController中却是:
@GetMapping("/") fun blog(model: Model): String { model["articles"] = repository.findAllByOrderByAddedAtDesc().map { it.render() } return "blog" }
没有title。
The text was updated successfully, but these errors were encountered: