File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ func replaceStrings(content string, replacements map[string]string) string {
44
44
func initIndex () {
45
45
utils .Log .Debug ("Initializing index.html..." )
46
46
siteConfig := getSiteConfig ()
47
- if conf .Conf .DistDir != "" || (conf .Conf .Cdn != "" && (conf .WebVersion == "" || conf .WebVersion == "beta" || conf .WebVersion == "dev" )) {
47
+ // dist_dir is empty and cdn is not empty add web_version is empty or beta or dev
48
+ if conf .Conf .DistDir == "" && conf .Conf .Cdn != "" && (conf .WebVersion == "" || conf .WebVersion == "beta" || conf .WebVersion == "dev" ) {
48
49
utils .Log .Infof ("Fetching index.html from CDN: %s/index.html..." , conf .Conf .Cdn )
49
50
resp , err := base .RestyClient .R ().
50
51
SetHeader ("Accept" , "text/html" ).
You can’t perform that action at this time.
0 commit comments