From 6ee35ced8650d65fbdbb5bbbe4575f53ae8fc801 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 29 May 2017 10:52:13 -0700 Subject: move scripts to separate include so we can include them across layouts even if the footer isn't there --- _includes/scripts.html | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 _includes/scripts.html (limited to '_includes/scripts.html') diff --git a/_includes/scripts.html b/_includes/scripts.html new file mode 100644 index 000000000..a713f81d0 --- /dev/null +++ b/_includes/scripts.html @@ -0,0 +1,50 @@ + + + + + +{% if site.github %} + +{% else %} + +{% endif %} + +{% if site.github %} + +{% else %} + + + + +{% endif %} + + + + + +{% if page.layout == "docs" %} + + +{% endif %} + + -- cgit v1.2.3 From 86177ac3afcaf79294596d025e400a657b495eed Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 29 May 2017 14:20:03 -0700 Subject: account for new nav structure --- _includes/scripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/scripts.html') diff --git a/_includes/scripts.html b/_includes/scripts.html index a713f81d0..b9a83876b 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -31,7 +31,7 @@ inputSelector: '#search-input', transformData: function (hits) { return hits.map(function (hit) { - hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', ''); + hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', 'http://localhost:9001/docs/4.0'); return hit; }); }, -- cgit v1.2.3