Removing duplicate custom-jekyll js
After docsy theme got merged these scripts aren't needed anymore. Confirmed after removing it (and all `<script>` references to it) the tooltip functionality is still there. Also removed the reference in `config.toml` to it, which may have stripped some dangling whitespace.
This commit is contained in:
+2
-3
@@ -153,7 +153,6 @@ css = [
|
|||||||
"custom-jekyll/tags"
|
"custom-jekyll/tags"
|
||||||
]
|
]
|
||||||
js = [
|
js = [
|
||||||
"custom-jekyll/tags",
|
|
||||||
"script"
|
"script"
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -222,7 +221,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
|
|||||||
url = "https://discuss.kubernetes.io"
|
url = "https://discuss.kubernetes.io"
|
||||||
icon = "fa fa-envelope"
|
icon = "fa fa-envelope"
|
||||||
desc = "Discussion and help from your fellow users"
|
desc = "Discussion and help from your fellow users"
|
||||||
|
|
||||||
[[params.links.user]]
|
[[params.links.user]]
|
||||||
name = "Twitter"
|
name = "Twitter"
|
||||||
url = "https://twitter.com/kubernetesio"
|
url = "https://twitter.com/kubernetesio"
|
||||||
@@ -259,7 +258,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
|
|||||||
url = "https://git.k8s.io/community/contributors/guide"
|
url = "https://git.k8s.io/community/contributors/guide"
|
||||||
icon = "fas fa-edit"
|
icon = "fas fa-edit"
|
||||||
desc = "Contribute to the Kubernetes website"
|
desc = "Contribute to the Kubernetes website"
|
||||||
|
|
||||||
[[params.links.developer]]
|
[[params.links.developer]]
|
||||||
name = "Stack Overflow"
|
name = "Stack Overflow"
|
||||||
url = "https://stackoverflow.com/questions/tagged/kubernetes"
|
url = "https://stackoverflow.com/questions/tagged/kubernetes"
|
||||||
|
|||||||
@@ -84,6 +84,5 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<script src="{{ "js/script.js" | relURL }}"></script>
|
<script src="{{ "js/script.js" | relURL }}"></script>
|
||||||
<script src="{{ "js/custom-jekyll/tags.js" | relURL }}"></script>
|
|
||||||
{{ with .Params.js }}{{ range (split . ",") }}<script src="{{ (trim . " ") | relURL }}"></script><!-- custom js added -->
|
{{ with .Params.js }}{{ range (split . ",") }}<script src="{{ (trim . " ") | relURL }}"></script><!-- custom js added -->
|
||||||
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}
|
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
$( document ).ready(function() {
|
|
||||||
// Shows permalink when term name is hovered over
|
|
||||||
$(".glossary-injector").each(function() {
|
|
||||||
var placeholder = $("#" + $(this).data("placeholder-id"));
|
|
||||||
var originalContent = placeholder.html();
|
|
||||||
|
|
||||||
var glossaryDef = $($(this).find(".injector-def")[0]).html();
|
|
||||||
|
|
||||||
$(this).mouseenter(function() {
|
|
||||||
placeholder.html(glossaryDef);
|
|
||||||
}).mouseleave(function(){
|
|
||||||
placeholder.html(originalContent);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user