lsyncd/_layouts/default.html

78 lines
2.2 KiB
HTML
Raw Normal View History

2016-06-01 07:32:30 +00:00
<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
<!-- link to main stylesheet -->
2016-06-05 17:36:52 +00:00
<link rel="stylesheet" type="text/css" href="{{ site.url }}/css/main.css">
2016-06-01 07:32:30 +00:00
</head>
<body>
2016-06-05 17:30:10 +00:00
<div id="pillar">
2016-06-01 07:32:30 +00:00
<nav>
2016-06-07 07:04:46 +00:00
<div id="menu">
{% for section in site.data.docs %}
<h4>{{section.title}}</h4>
<ul>
{% for doc in section.docs %}
{% assign doc_url = doc %}
{% if doc_url != "/" %}
{% assign doc_url = doc | append: "/" %}
{% endif %}
{% 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="{{ site.url | append: p.url }}">{{ title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
<div id="menufooter"></div>
</div>
<div id="ribbonwrap"><a href="https://github.com/axkibe/lsyncd" id="ribbon"></a></div>
2016-06-01 07:32:30 +00:00
</nav>
2016-06-05 17:30:10 +00:00
<div id="container">
<h1>{{ page.title }}</h1>
2016-06-01 07:32:30 +00:00
{{ content }}
2016-06-07 07:04:46 +00:00
{% assign docs = site.data.docs | map: 'docs' | join: ',' | split: ',' %}
{% for doc in docs %}
{% assign doc_url = doc %}
{% if doc_url != "/" %}
{% assign doc_url = doc_url | append: "/" %}
{% endif %}
{% if doc_url == page.url %}
<div id="footnav" class="prenext">
{% if forloop.first %}
{% else %}
{% assign previous = forloop.index0 | minus: 1 %}
{% assign previous_page = docs[previous] %}
<a href="{{ site.url | append: previous_page }}" class="prev"></a>
{% endif %}
{% if forloop.last %}
{% else %}
{% assign next = forloop.index0 | plus: 1 %}
{% assign next_page = docs[next] %}
<a href="{{ site.url | append: next_page }}" class="next"></a>
{% endif %}
</div>
<div class="clear"></div>
{% break %}
{% endif %}
{% endfor %}
2016-06-01 07:32:30 +00:00
2016-06-05 17:30:10 +00:00
</div>
2016-06-07 07:04:46 +00:00
</div>
2016-06-05 17:30:10 +00:00
<!--footer>
2016-06-01 07:32:30 +00:00
<ul>
<li><a href="https://github.com/lsyncd">github.com/lsyncd</a></li>
</ul>
2016-06-05 17:30:10 +00:00
</footer-->
2016-06-01 07:32:30 +00:00
</body>
</html>