1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-04-23 11:05:03 +00:00

releaser: Adjust patch logic

See 
This commit is contained in:
Bjørn Erik Pedersen 2019-02-01 10:09:14 +01:00
parent fab41f42d3
commit 9b619dc023
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -119,7 +119,7 @@ Hugo now has:
var templateFuncs = template.FuncMap{
"isPatch": func(c changeLog) bool {
return strings.Count(c.Version, ".") > 1
return !strings.HasSuffix(c.Version, "0")
},
"issue": func(id int) string {
return fmt.Sprintf(issueLinkTemplate, id, id)