Test waka

This commit is contained in:
Khoa Le
2016-06-15 17:45:15 +07:00
parent a909adcb02
commit 2f4de88bf4
118 changed files with 2978 additions and 339 deletions

23
_includes/nav.html Normal file
View File

@@ -0,0 +1,23 @@
<h1><a href="index.html">{{ site.name }}</a></h1>
<hr class="star-light">
{% for entry in site.data.toc.entries %}
{% for node in entry.pages %}
{% if page.url contains node.url %}
{% assign chapter_title = entry.title %}
{% endif %}
{% endfor %}
{% endfor %}
{% for entry in site.data.toc.entries %}
<h2 {% if chapter_title == entry.title %} class="active" {% endif %}>
{{ entry.title }}
</h2>
<ul class="{{ entry.class }}">
{% for node in entry.pages %}
<li {% if page.url contains node.url %} class="active" {% endif %}>
<a href="{{ node.url }}" target="{{ node.target }}">{{ node.title }}</a>
</li>
{% endfor %}
</ul>
{% endfor %}