Skip to content

Commit 76851fe

Browse files
authored
Update html-templates.md
Fixes an intermediate implementation to pass the test
1 parent 3822d67 commit 76851fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

html-templates.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ import (
258258
)
259259

260260
const (
261-
postTemplate = `<h1>{{.Title}}</h1><p>{{.Description}}</p>Tags: <ul>{{range .Tags}}<li>{{.}}</li>{{end}}</ul>`
261+
postTemplate = `<h1>{{.Title}}</h1>
262+
<p>{{.Description}}</p>
263+
Tags: <ul>{{range .Tags}}<li>{{.}}</li>{{end}}</ul>`
262264
)
263265

264266
func Render(w io.Writer, p Post) error {

0 commit comments

Comments
 (0)