Commit ae9f5fb0 authored by Yohan Jarosz's avatar Yohan Jarosz

nicer header

parent 2d6e9e05
<header class="site-header">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<a class="navbar-brand" href="{{ site.baseurl }}/">R3lab</a>
<a class="navbar-brand" href="{{ site.baseurl }}/projects/{{page.index}}">{{page.index | capitalize}}</a>
<ul class="nav navbar-nav">
{% for navpage in site.pages %}
{% if navpage.title and navpage.type == 'nav' %}
<li class="{% if page.url contains 'projects'%}active{% endif %}"><a href="{{ navpage.url | prepend: site.baseurl }}">{{ navpage.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% if page.nav %}
<ul class="nav navbar-nav navbar-right">
{% assign navs = page.nav | split:"," %}
{% for nav in navs %}
<li class="{% if page.url contains nav %}active{% endif %}"><a href="{{nav}}.html">{{ nav }}</a></li>
<li class="{% if page.url contains nav %}active{% endif %}"><a href="{{nav}}.html">{{ nav | capitalize}}</a></li>
{% endfor %}
</ul>
{% endif %}
......
......@@ -21,4 +21,5 @@
body {
padding-top: 60px;
padding-bottom: 130px;
}
---
layout: default
---
<dl class="dl-horizontal">
{% for project in site.pages %}
{% if project.type == 'project' %}
<dt><a class="project-link" href="{{ project.url | prepend: site.baseurl }}">{{ project.title }}</a><dt>
<dd>{{project.description}}</dd>
{% endif %}
{% endfor %}
</dl>
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