mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 08:42:12 +00:00
parent
a2fa3895ee
commit
029cdb68f5
|
@ -278,7 +278,16 @@ func InitializeConfig() {
|
||||||
|
|
||||||
jww.INFO.Println("Using config file:", viper.ConfigFileUsed())
|
jww.INFO.Println("Using config file:", viper.ConfigFileUsed())
|
||||||
|
|
||||||
|
themeDir := helpers.GetThemeDir()
|
||||||
|
if themeDir != "" {
|
||||||
|
if _, err := os.Stat(themeDir); os.IsNotExist(err) {
|
||||||
|
jww.ERROR.Println("Unable to find theme Directory:", themeDir)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
themeVersionMismatch, minVersion := helpers.IsThemeVsHugoVersionMismatch()
|
themeVersionMismatch, minVersion := helpers.IsThemeVsHugoVersionMismatch()
|
||||||
|
|
||||||
if themeVersionMismatch {
|
if themeVersionMismatch {
|
||||||
jww.ERROR.Printf("Current theme does not support Hugo version %s. Minimum version required is %s\n",
|
jww.ERROR.Printf("Current theme does not support Hugo version %s. Minimum version required is %s\n",
|
||||||
helpers.HugoReleaseVersion(), minVersion)
|
helpers.HugoReleaseVersion(), minVersion)
|
||||||
|
|
Loading…
Reference in a new issue