aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/links.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-05-06 06:44:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-05-06 06:44:18 +0300
commit4c917fc60d4dec2151c83237cacecf604c0a9242 (patch)
tree2056f967b09bef1f13fd61e9379c79463d0e4331 /_includes/links.html
downloadjekyll-theme-4c917fc60d4dec2151c83237cacecf604c0a9242.tar.gz
jekyll-theme-4c917fc60d4dec2151c83237cacecf604c0a9242.zip
initial commit
Diffstat (limited to '_includes/links.html')
-rw-r--r--_includes/links.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/_includes/links.html b/_includes/links.html
new file mode 100644
index 0000000..70e643b
--- /dev/null
+++ b/_includes/links.html
@@ -0,0 +1,11 @@
+{% for node in page_list %}
+ {% if group == null or group == node.group %}
+ {% if page.url == node.url %}
+ <li class="active"><a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.title }}</a></li>
+ {% else %}
+ <li><a href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a></li>
+ {% endif %}
+ {% endif %}
+{% endfor %}
+{% assign page_list = nil %}
+{% assign group = nil %}