提交 d36e4dd6 编写于 作者: A astaxie

Merge pull request #463 from anthonyfok/fix-en-build-with-gitbook-2.0.1

Remove trailing whitespaces in en/13.5.md
...@@ -22,7 +22,7 @@ Our blog's directory structure can be seen below: ...@@ -22,7 +22,7 @@ Our blog's directory structure can be seen below:
/delete.go /delete.go
/edit.go /edit.go
``` ```
## Blog routing ## Blog routing
...@@ -73,7 +73,6 @@ func (this *IndexController) Get() { ...@@ -73,7 +73,6 @@ func (this *IndexController) Get() {
``` ```
ViewController: ViewController:
``` ```
...@@ -112,9 +111,9 @@ func (this *NewController) Post() { ...@@ -112,9 +111,9 @@ func (this *NewController) Post() {
blog.Created = time.Now() blog.Created = time.Now()
models.SaveBlog(blog) models.SaveBlog(blog)
this.Ctx.Redirect(302, "/") this.Ctx.Redirect(302, "/")
} }
``` ```
EditController EditController
...@@ -142,7 +141,7 @@ func (this *EditController) Post() { ...@@ -142,7 +141,7 @@ func (this *EditController) Post() {
this.Ctx.Redirect(302, "/") this.Ctx.Redirect(302, "/")
} }
``` ```
DeleteController DeleteController
``` ```
...@@ -155,7 +154,7 @@ func (this *DeleteController) Get() { ...@@ -155,7 +154,7 @@ func (this *DeleteController) Get() {
this.Data["Post"] = models.DelBlog(id) this.Data["Post"] = models.DelBlog(id)
this.Ctx.Redirect(302, "/") this.Ctx.Redirect(302, "/")
} }
``` ```
## Model layer ## Model layer
...@@ -237,7 +236,7 @@ layout.tpl ...@@ -237,7 +236,7 @@ layout.tpl
</body> </body>
</html> </html>
``` ```
index.tpl index.tpl
``` ```
...@@ -262,7 +261,7 @@ view.tpl ...@@ -262,7 +261,7 @@ view.tpl
{{.Post.Created}}<br/> {{.Post.Created}}<br/>
{{.Post.Content}} {{.Post.Content}}
``` ```
new.tpl new.tpl
...@@ -276,7 +275,7 @@ Content<textarea name="content" colspan="3" rowspan="10"></textarea> ...@@ -276,7 +275,7 @@ Content<textarea name="content" colspan="3" rowspan="10"></textarea>
``` ```
edit.tpl edit.tpl
``` ```
<h1>Edit {{.Post.Title}}</h1> <h1>Edit {{.Post.Title}}</h1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册