We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2271df commit 4106e2aCopy full SHA for 4106e2a
1 file changed
server/static/static.go
@@ -44,7 +44,8 @@ func replaceStrings(content string, replacements map[string]string) string {
44
func initIndex() {
45
utils.Log.Debug("Initializing index.html...")
46
siteConfig := getSiteConfig()
47
- if conf.Conf.DistDir != "" || (conf.Conf.Cdn != "" && (conf.WebVersion == "" || conf.WebVersion == "beta" || conf.WebVersion == "dev")) {
+ // 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") {
49
utils.Log.Infof("Fetching index.html from CDN: %s/index.html...", conf.Conf.Cdn)
50
resp, err := base.RestyClient.R().
51
SetHeader("Accept", "text/html").
0 commit comments