Skip to content

Commit

Permalink
Update html-templates.md
Browse files Browse the repository at this point in the history
Fixes an intermediate implementation to pass the test
  • Loading branch information
frozar authored Jan 25, 2025
1 parent 3822d67 commit 76851fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ import (
)

const (
postTemplate = `<h1>{{.Title}}</h1><p>{{.Description}}</p>Tags: <ul>{{range .Tags}}<li>{{.}}</li>{{end}}</ul>`
postTemplate = `<h1>{{.Title}}</h1>
<p>{{.Description}}</p>
Tags: <ul>{{range .Tags}}<li>{{.}}</li>{{end}}</ul>`
)

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

0 comments on commit 76851fe

Please sign in to comment.