Forráskód Böngészése

relative URL, jQuery not necessary

Johann ELSASS 1 éve
szülő
commit
31746f88ff
3 módosított fájl, 6 hozzáadás és 7 törlés
  1. 2 1
      web/config.toml
  2. 1 3
      web/layouts/_default/baseof.html
  3. 3 3
      web/layouts/index.html

+ 2 - 1
web/config.toml

@@ -1,7 +1,8 @@
 baseURL = "https://lazpaint.github.io/"
 baseURL = "https://lazpaint.github.io/"
+relativeURL = true
 defaultContentLanguage = "en"
 defaultContentLanguage = "en"
 title = "download_lazpaint"
 title = "download_lazpaint"
-disableKinds = ["taxonomyTerm"]
+disableKinds = ["taxonomy"]
 
 
 [params]
 [params]
   repo = "https://github.com/bgrabitmap/lazpaint/releases/download/"
   repo = "https://github.com/bgrabitmap/lazpaint/releases/download/"

+ 1 - 3
web/layouts/_default/baseof.html

@@ -1,7 +1,5 @@
 {{ partial "header.html" . }}
 {{ partial "header.html" . }}
     <main id="main">{{ block "main" . }}{{ end }}
     <main id="main">{{ block "main" . }}{{ end }}
     </main>
     </main>
-    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
-        integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
-        crossorigin="anonymous"></script>{{ block "dynamic" . }}{{ end }}
+    {{ block "dynamic" . }}{{ end }}
 {{ partial "footer.html" . }}
 {{ partial "footer.html" . }}

+ 3 - 3
web/layouts/index.html

@@ -69,9 +69,9 @@
 
 
     	if (OSName != "unknown")
     	if (OSName != "unknown")
     	{
     	{
-    	    osHint = $('#os-hint');
-        	osHint.text(osHint.text().replace("%s", OSName));
-        	osHint.css("visibility", "visible");
+    	    osHint = document.getElementById("os-hint");
+        	osHint.innerHTML = osHint.innerHTML.replace("%s", OSName);
+        	osHint.style.visibility = "visible";
     	}
     	}
 	</script>
 	</script>
 {{- end }}
 {{- end }}