mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
1 file changed
+1
-1
@@ -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