lsyncd/_layouts/default.html
Axel Kittenberger c0fea4b8bb fixing urls
2016-06-05 19:36:52 +02:00

44 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
<!-- link to main stylesheet -->
<link rel="stylesheet" type="text/css" href="{{ site.url }}/css/main.css">
</head>
<body>
<div id="pillar">
<nav>
{% for section in site.data.docs %}
<h4>{{section.title}}</h4>
<ul>
{% for doc in section.docs %}
{% assign doc_url = doc | prepend:"/" | prepend: section.dir | prepend:"/" | append:"/" %}
{% assign p = site.pages | where:"url", doc_url | first %}
{% if page.tab %}
{% assign tab = page.tab | prepend:"/" | append:"/" %}
{% endif %}
{% if p.short %}
{% assign title = p.short %}
{% else %}
{% assign title = p.title %}
{% endif %}
<li><a {% if doc_url == page.url or doc_url == tab %}class="current"{% endif %} href="{{ p.url }}">{{ title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
</nav>
<div id="container">
<h1>{{ page.title }}</h1>
{{ content }}
</div>
</div>
<!--footer>
<ul>
<li><a href="https://github.com/lsyncd">github.com/lsyncd</a></li>
</ul>
</footer-->
</body>
</html>