From 6ee35ced8650d65fbdbb5bbbe4575f53ae8fc801 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 29 May 2017 10:52:13 -0700 Subject: [PATCH] move scripts to separate include so we can include them across layouts even if the footer isn't there --- _includes/footer.html | 51 ------------------------------------------ _includes/scripts.html | 50 +++++++++++++++++++++++++++++++++++++++++ _layouts/default.html | 1 + _layouts/docs.html | 2 ++ _layouts/home.html | 1 + 5 files changed, 54 insertions(+), 51 deletions(-) create mode 100644 _includes/scripts.html diff --git a/_includes/footer.html b/_includes/footer.html index a2f74e0707..19b05996f2 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -10,54 +10,3 @@

Currently v{{ site.current_version }}. Code licensed MIT, docs CC BY 3.0.

- - - - - - -{% if site.github %} - -{% else %} - -{% endif %} - -{% if site.github %} - -{% else %} - - - - -{% endif %} - - - - - -{% if page.layout == "docs" %} - - -{% endif %} - - diff --git a/_includes/scripts.html b/_includes/scripts.html new file mode 100644 index 0000000000..a713f81d0f --- /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 %} + + diff --git a/_layouts/default.html b/_layouts/default.html index e3642ac6d1..d5e6b10b43 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -17,5 +17,6 @@ {% include footer.html %} + {% include scripts.html %} diff --git a/_layouts/docs.html b/_layouts/docs.html index 7bbb06b87d..26ba91aae7 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -31,5 +31,7 @@ {% endif %} + + {% include scripts.html %} diff --git a/_layouts/home.html b/_layouts/home.html index 788ecf1dd5..64eabadb11 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -15,5 +15,6 @@ {{ content }} {% include footer.html %} + {% include scripts.html %}