Skip to content

Commit

Permalink
Removed "//" in front of @blog.url helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabukky committed Apr 25, 2015
1 parent 2585cce commit 552dbb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/handlebars.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,7 @@ func atBlogDotTitleFunc(helper *structure.Helper, values *structure.RequestData)

func atBlogDotUrlFunc(helper *structure.Helper, values *structure.RequestData) []byte {
var buffer bytes.Buffer
// Write // in front of url to be protocol agnostic
buffer.WriteString("//")
log.Println(string(values.Blog.Url))
buffer.Write(values.Blog.Url)
return evaluateEscape(buffer.Bytes(), helper.Unescaped)
}
Expand Down

0 comments on commit 552dbb7

Please sign in to comment.