mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -119,7 +119,7 @@ Hugo now has:
|
|||||||
|
|
||||||
var templateFuncs = template.FuncMap{
|
var templateFuncs = template.FuncMap{
|
||||||
"isPatch": func(c changeLog) bool {
|
"isPatch": func(c changeLog) bool {
|
||||||
return strings.Count(c.Version, ".") > 1
|
return !strings.HasSuffix(c.Version, "0")
|
||||||
},
|
},
|
||||||
"issue": func(id int) string {
|
"issue": func(id int) string {
|
||||||
return fmt.Sprintf(issueLinkTemplate, id, id)
|
return fmt.Sprintf(issueLinkTemplate, id, id)
|
||||||
|
Reference in New Issue
Block a user