From 3f7dcaa2ec7fea5985e6986cde7ec170d398adc4 Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Fri, 6 Sep 2013 01:59:22 +0200 Subject: [PATCH 1/3] Make navigation menu reusable --- site/_includes/docs_contents.html | 93 ++---------------------- site/_includes/docs_contents_mobile.html | 31 ++------ 2 files changed, 12 insertions(+), 112 deletions(-) diff --git a/site/_includes/docs_contents.html b/site/_includes/docs_contents.html index 57b6b32c..0df6c0a4 100644 --- a/site/_includes/docs_contents.html +++ b/site/_includes/docs_contents.html @@ -1,97 +1,16 @@
diff --git a/site/_includes/docs_contents_mobile.html b/site/_includes/docs_contents_mobile.html index 18be2227..fe2a09ef 100644 --- a/site/_includes/docs_contents_mobile.html +++ b/site/_includes/docs_contents_mobile.html @@ -2,41 +2,22 @@ From 102d83f78da74cef20a54ea7f93ec3b310928adf Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Fri, 6 Sep 2013 02:00:23 +0200 Subject: [PATCH 2/3] Make navigation menus reusable --- site/_includes/docs_option.html | 11 +++++++++++ site/_includes/docs_ul.html | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 site/_includes/docs_option.html create mode 100644 site/_includes/docs_ul.html diff --git a/site/_includes/docs_option.html b/site/_includes/docs_option.html new file mode 100644 index 00000000..8284ed96 --- /dev/null +++ b/site/_includes/docs_option.html @@ -0,0 +1,11 @@ +{% assign items = include.items | split: ' ' %} + +{% for item in items %} + {% assign item_url = item | prepend:'/docs/' | append:'/' %} + + {% for p in site.pages %} + {% if p.url == item_url %} + + {% endif %} + {% endfor %} +{% endfor %} diff --git a/site/_includes/docs_ul.html b/site/_includes/docs_ul.html new file mode 100644 index 00000000..fa7b9f60 --- /dev/null +++ b/site/_includes/docs_ul.html @@ -0,0 +1,20 @@ +{% assign items = include.items | split: ' ' %} + + From eb29209c24366b74259923694651e83589992327 Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Fri, 6 Sep 2013 20:40:00 +0200 Subject: [PATCH 3/3] Expand URL --- site/_includes/docs_ul.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_includes/docs_ul.html b/site/_includes/docs_ul.html index fa7b9f60..4ba82479 100644 --- a/site/_includes/docs_ul.html +++ b/site/_includes/docs_ul.html @@ -12,7 +12,7 @@ {% for p in site.pages %} {% if p.url == item_url %} -
  • {{ p.title }}
  • +
  • {{ p.title }}
  • {% endif %} {% endfor %}