diff options
author | Valentin Popov <info@valentineus.link> | 2018-05-16 22:36:46 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-05-16 22:36:46 +0300 |
commit | 06a7537535d33a0b6d5dbf31b8b9e26afad4665e (patch) | |
tree | c2c875ed59473b8954ef1791f73ea441b9b7bf7b /_includes/navbar.html | |
parent | 52fc96a460c1fa27b07e18212fd28e93314142ea (diff) | |
download | popov.link-06a7537535d33a0b6d5dbf31b8b9e26afad4665e.tar.xz popov.link-06a7537535d33a0b6d5dbf31b8b9e26afad4665e.zip |
Aesthetic navigation bar
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/navbar.html')
-rw-r--r-- | _includes/navbar.html | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/_includes/navbar.html b/_includes/navbar.html index 752be0a..3f95dfd 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -2,15 +2,21 @@ <nav role="navigation"> <div class="container"> - <ul class="nav nav-pills pull-right"> - <li role="presentation"><a href="/">Home</a></li> - {% for page in pages %} - <li role="presentation"> - <a href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}"> - {{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} - </a> - </li> - {% endfor %} + <ul class="nav nav-pills"> + {% unless page.url == "/index.html" %} + <li role="presentation"><a href="/"><< Home</a></li> + {% endunless %} + + <!-- Right side --> + <ul class="nav nav-pills pull-right"> + {% for page in pages %} + <li role="presentation"> + <a href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}"> + {{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} + </a> + </li> + {% endfor %} + </ul> </ul> </div> </nav> |