switch to page variable from hardcoded master
This commit is contained in:
+2
-2
@@ -12,9 +12,9 @@ $( document ).ready(function() {
|
|||||||
$("#generalInstructions").hide();
|
$("#generalInstructions").hide();
|
||||||
$("#continueEdit").show();
|
$("#continueEdit").show();
|
||||||
$("#continueEditButton").text("Edit " + forwarding);
|
$("#continueEditButton").text("Edit " + forwarding);
|
||||||
$("#continueEditButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/edit/master/" + forwarding)
|
$("#continueEditButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/edit/{{ page.docsbranch }}/" + forwarding)
|
||||||
$("#viewOnGithubButton").text("View " + forwarding + " on GitHub");
|
$("#viewOnGithubButton").text("View " + forwarding + " on GitHub");
|
||||||
$("#viewOnGithubButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/tree/master/" + forwarding)
|
$("#viewOnGithubButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/tree/{{ page.docsbranch }}/" + forwarding)
|
||||||
} else {
|
} else {
|
||||||
$("#generalInstructions").show();
|
$("#generalInstructions").show();
|
||||||
$("#continueEdit").hide();
|
$("#continueEdit").hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user