From 1a69800752de85d718d6d1aec7c4b56185c3de40 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 7 Mar 2016 18:02:01 +0300 Subject: _includes: merge links.html to navbar.html --- _includes/links.html | 11 ----------- _includes/navbar.html | 12 +++++++++--- index.html | 3 ++- plots.html | 3 ++- 4 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 _includes/links.html diff --git a/_includes/links.html b/_includes/links.html deleted file mode 100644 index ddab348..0000000 --- a/_includes/links.html +++ /dev/null @@ -1,11 +0,0 @@ -{% for node in page_list %} - {% if group == null or group == node.group %} - {% if page.url == node.url %} -
  • {{ node.navbar_link }}
  • - {% else %} -
  • {{ node.navbar_link }}
  • - {% endif %} - {% endif %} -{% endfor %} -{% assign page_list = nil %} -{% assign group = nil %} diff --git a/_includes/navbar.html b/_includes/navbar.html index f052baa..d763c3e 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -11,9 +11,15 @@ diff --git a/index.html b/index.html index a1aae21..8bedd3f 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,8 @@ --- title: Main page layout: main -group: "navigation" +groups: + - navbar navbar_link:  Main page --- {% if site.posts.size == 0 %} diff --git a/plots.html b/plots.html index e0b19cb..a91a7a6 100644 --- a/plots.html +++ b/plots.html @@ -1,7 +1,8 @@ --- title: Plots layout: plots -group: "navigation" +groups: + - navbar navbar_link:  Plots ---

    Plots

    -- cgit v1.2.3