rename variable custom_css_file to custom_css_link

This commit is contained in:
root
2020-08-04 14:46:45 +00:00
parent 5efadd4896
commit 008c093a3e
9 changed files with 19 additions and 19 deletions

View File

@@ -90,7 +90,7 @@ type Config struct {
TermOfServiceLink string `yaml:"term_of_service_link"`
PrivacyPolicyTitle string `yaml:"privacy_policy_title"`
PrivacyPolicyLink string `yaml:"privacy_policy_link"`
CustomCSSFile string `yaml:"custom_css_file"`
CustomCSSLink string `yaml:"custom_css_link"`
MagicLookup bool `yaml:"magic_lookup"`
} `yaml:"ui"`
}

View File

@@ -12,8 +12,8 @@
<link rel="stylesheet" href="site/style.css">
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -162,8 +162,8 @@
</script>
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -28,8 +28,8 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/styles/a11y-dark.min.css">
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -24,8 +24,8 @@
crossorigin="anonymous"></script>
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -32,8 +32,8 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/7.0.4/jsoneditor.min.js"></script>
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -165,8 +165,8 @@
</script>
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -23,8 +23,8 @@
crossorigin="anonymous"></script>
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>

View File

@@ -27,8 +27,8 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/7.0.4/jsoneditor.min.js"></script>
<script>
conf = loadUIConfiguration();
if (conf["custom_css_file"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_file"] +"' />");
if (conf["custom_css_link"]) {
document.write("<link rel='stylesheet' type='text/css' href='" + conf["custom_css_link"] +"' />");
}
</script>
</head>