switch to page variable from hardcoded master

This commit is contained in:
Andrew Chen
2017-08-07 16:24:59 -07:00
parent 0f8447c32b
commit 7d05a7a520
+2 -2
View File
@@ -12,9 +12,9 @@ $( document ).ready(function() {
$("#generalInstructions").hide();
$("#continueEdit").show();
$("#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").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 {
$("#generalInstructions").show();
$("#continueEdit").hide();