Commit 15636f43 authored by Yohan Jarosz's avatar Yohan Jarosz

add imp directory

parent 924b3646
...@@ -10,9 +10,11 @@ ...@@ -10,9 +10,11 @@
{% endif %} {% endif %}
{% if page.type == 'project' or page.type == 'subpage' %} {% if page.type == 'project' or page.type == 'subpage' %}
{% capture prefix %}/web/{{brand[0]}}{% endcapture %} {% capture prefix %}/web/{{brand[0]}}/{% endcapture %}
{% elsif page.type == 'frozen'%} {% elsif page.type == 'frozen'%}
{% capture prefix %}/frozen/{{brand[0]}}{% endcapture %} {% capture prefix %}/frozen/{{brand[0]}}/{% endcapture %}
{% elsif page.type == 'index'%}
{% capture prefix %}{{brand[0]}}{% endcapture %}
{% endif %} {% endif %}
<nav class="navbar navbar-default navbar-static-top"> <nav class="navbar navbar-default navbar-static-top">
...@@ -24,7 +26,7 @@ ...@@ -24,7 +26,7 @@
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
{% if page.nav %} {% if page.nav %}
{% capture indexurl %}{{ site.baseurl }}{{prefix}}{% endcapture %} {% capture indexurl %}{{ site.baseurl }}{{prefix}}{% endcapture %}
{% capture indexurl2 %}{{ site.baseurl }}{{prefix}}/index.html{% endcapture %} {% capture indexurl2 %}{{ site.baseurl }}{{prefix}}index.html{% endcapture %}
{% assign navs = page.nav | split:"," %} {% assign navs = page.nav | split:"," %}
{% for nav in navs %} {% for nav in navs %}
{% assign link = nav | split:"$" %} {% assign link = nav | split:"$" %}
...@@ -32,9 +34,9 @@ ...@@ -32,9 +34,9 @@
{% if myurl contains '://' %} {% if myurl contains '://' %}
<li><a href="{{myurl}}">{{link[1]}}</a></li> <li><a href="{{myurl}}">{{link[1]}}</a></li>
{% elsif myurl == 'index' and (page.url == indexurl or page.url == indexurl2) %} {% elsif myurl == 'index' and (page.url == indexurl or page.url == indexurl2) %}
<li class="active"><a href="{{ site.baseurl }}{{prefix}}/{{myurl}}.html">{{link[1]}}</a></li> <li class="active"><a href="{{ site.baseurl }}{{prefix}}{{myurl}}.html">{{link[1]}}</a></li>
{% else %} {% else %}
<li class="{% if page.url contains myurl and myurl != '/index' and myurl != 'index' %}active{% endif %}"><a href="{{ site.baseurl }}{{prefix}}/{{myurl}}.html">{{link[1]}}</a></li> <li class="{% if page.url contains myurl and myurl != '/index' and myurl != 'index' %}active{% endif %}"><a href="{{ site.baseurl }}{{prefix}}{{myurl}}.html">{{link[1]}}</a></li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
......
--- ---
layout: frozen layout: frozen
index: /frozen/imp.html$Integrated Metaomic Pipeline index: imp$Integrated Metaomic Pipeline
nav: /frozen/imp$Home,/frozen/index$R3Lab frozen pages nav: ../index$Frozen pages
theme: paper theme: paper
type: frozen type: frozen
title: Frozen IMP title: Frozen IMP
......
--- ---
layout: default layout: default
index: /$R3lab index: /$R3lab
nav: /index$Home,/frozen/index$Frozen pages,/web/index$Websites nav: ../index$Home,frozen/index$Frozen pages,web/index$Websites
theme: paper theme: paper
title: Frozen projects title: Frozen projects
type: index
--- ---
......
--- ---
layout: default layout: default
index: /$R3lab index: /$R3lab
nav: /index$Home,/frozen/index$Frozen pages,/web/index$Websites nav: index$Home,frozen/index$Frozen pages,web/index$Websites
theme: paper theme: paper
type: index
--- ---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment