From 68bca5a02c9b8489fd44c94bdb3d0490bfefb110 Mon Sep 17 00:00:00 2001 From: Vincevrp Date: Fri, 18 Jan 2019 17:17:56 +0100 Subject: [PATCH] Move navigation to an include --- _includes/nav.html | 95 ++++++++++++++++ _layouts/default.html | 257 +++++++++++++----------------------------- 2 files changed, 173 insertions(+), 179 deletions(-) create mode 100644 _includes/nav.html diff --git a/_includes/nav.html b/_includes/nav.html new file mode 100644 index 00000000..0bcef1df --- /dev/null +++ b/_includes/nav.html @@ -0,0 +1,95 @@ + diff --git a/_layouts/default.html b/_layouts/default.html index 0df05187..a47b20f6 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,17 +3,17 @@ - + - - - - - - + + + + + + - - + + {% if page.title %} @@ -22,188 +22,87 @@ {{ site.title }} {% endif %} - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - + + - + + + + + + + + + - - - - - - - - - + - - + {% include nav.html %} - - -
-
-{{ content }} -
+ + + + + + - - - - - $('.navbar a').not(".dropdown-toggle").click(function (e) { - if ($(".navbar-toggler").is(":visible")) { - $('.navbar-collapse').collapse('toggle'); - } - }); - - - - - - - + + + +