diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-06 06:44:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-06 06:44:18 +0300 |
commit | 4c917fc60d4dec2151c83237cacecf604c0a9242 (patch) | |
tree | 2056f967b09bef1f13fd61e9379c79463d0e4331 /_includes/links.html | |
download | blog-4c917fc60d4dec2151c83237cacecf604c0a9242.tar.gz blog-4c917fc60d4dec2151c83237cacecf604c0a9242.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | _includes/links.html | 11 |
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 %} |