2022-04-20 21:08:29 +00:00
|
|
|
{% if jekyll.environment == "local"
|
|
|
|
%}{% assign suffix = 'index.html'
|
|
|
|
%}{% else
|
|
|
|
%}{% assign suffix = ''
|
|
|
|
%}{% endif
|
|
|
|
%}{% assign base = ''
|
|
|
|
%}{% assign depth = page.url | split: '/' | size
|
|
|
|
%}{% if depth <= 1
|
|
|
|
%}{% assign base = '.'
|
|
|
|
%}{% elsif depth == 2
|
|
|
|
%}{% assign base = '..'
|
|
|
|
%}{% elsif depth == 3
|
|
|
|
%}{% assign base = '../..'
|
|
|
|
%}{% elsif depth == 4
|
|
|
|
%}{% assign base = '../../..'
|
|
|
|
%}{% endif
|
|
|
|
%}<!DOCTYPE html>
|
2022-04-20 17:20:52 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
{% if page.url != "/" %}
|
|
|
|
<title>Lsyncd - {{ page.title }}</title>
|
|
|
|
{% else %}
|
|
|
|
<title>{{ page.title }}</title>
|
|
|
|
{% endif %}
|
|
|
|
<!-- link to main stylesheet -->
|
2022-04-20 21:08:29 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ base }}/css/main.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ base }}/css/syntax.css">
|
2022-04-20 17:20:52 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="pillar">
|
|
|
|
<nav>
|
|
|
|
<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 %}
|
2022-04-20 21:08:29 +00:00
|
|
|
<li><a {% if doc_url == page.url or doc_url == tab %}class="current"{% endif %} href="{{ base| append: p.url | append: suffix }}">{{ title }}</a></li>
|
2022-04-20 17:20:52 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
|
|
|
<div id="menufooter"></div>
|
|
|
|
</div>
|
2022-04-20 21:08:29 +00:00
|
|
|
<div id="ribbonwrap"><a href="https://github.com/lsyncd/lsyncd" id="ribbon"></a></div>
|
2022-04-20 17:20:52 +00:00
|
|
|
</nav>
|
|
|
|
<div id="container">
|
2022-04-20 21:08:29 +00:00
|
|
|
<a href="https://github.com/lsyncd/lsyncd/edit/master/docs{{ page.url }}index.md" id="improvethis"></a>
|
2022-04-20 17:20:52 +00:00
|
|
|
<h1>{{ page.title }}</h1>
|
|
|
|
{{ content }}
|
|
|
|
|
|
|
|
{% 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 %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|