mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -1001,15 +1001,7 @@ func (c *commandeer) isThemeVsHugoVersionMismatch() (mismatch bool, requiredMinV
|
||||
config := tomlMeta.(map[string]interface{})
|
||||
|
||||
if minVersion, ok := config["min_version"]; ok {
|
||||
switch minVersion.(type) {
|
||||
case float32:
|
||||
return helpers.HugoVersionNumber < minVersion.(float32), fmt.Sprint(minVersion)
|
||||
case float64:
|
||||
return helpers.HugoVersionNumber < minVersion.(float64), fmt.Sprint(minVersion)
|
||||
default:
|
||||
return
|
||||
}
|
||||
|
||||
return helpers.CompareVersion(minVersion) > 0, fmt.Sprint(minVersion)
|
||||
}
|
||||
|
||||
return
|
||||
|
@@ -314,7 +314,7 @@ description = ""
|
||||
homepage = "http://siteforthistheme.com/"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = 0.19
|
||||
min_version = "0.19"
|
||||
|
||||
[author]
|
||||
name = ""
|
||||
|
Reference in New Issue
Block a user