diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-08-23 18:27:36 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-08-23 18:27:36 +0300 |
commit | 6ff38b5d87707737741b147d3117c02a6b716dea (patch) | |
tree | e8a0d00da1c5671c23e2dbd586b5fca197dfa0a6 | |
parent | bump dependencies (diff) | |
download | jekyll-theme-6ff38b5d87707737741b147d3117c02a6b716dea.tar.gz jekyll-theme-6ff38b5d87707737741b147d3117c02a6b716dea.zip |
add icons to the navbar
-rw-r--r-- | _includes/links.html | 4 | ||||
-rw-r--r-- | index.html | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/_includes/links.html b/_includes/links.html index 70e643b..ddab348 100644 --- a/_includes/links.html +++ b/_includes/links.html @@ -1,9 +1,9 @@ {% 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> + <li class="active"><a href="{{ site.baseurl }}{{ node.url }}" class="active">{{ node.navbar_link }}</a></li> {% else %} - <li><a href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a></li> + <li><a href="{{ site.baseurl }}{{ node.url }}">{{ node.navbar_link }}</a></li> {% endif %} {% endif %} {% endfor %} @@ -1,7 +1,8 @@ --- -title: C++ tips +title: Main page layout: main group: "navigation" +navbar_link: <span class="glyphicon glyphicon-home"></span> Main page --- {% if site.posts.size == 0 %} <h3>Sorry, there're no posts yet.</h3> |