Commit dcd75068 authored by wu-lee's avatar wu-lee

theme/partials/default.hbs - show blog index on posts

Show (currently nonexisting) page index on non-posts.
parent 7c8ce02e
......@@ -34,7 +34,11 @@
<li class="site-nav-item"><a class="js-ajax-link" title="Site Home" href="{{url @root.config.urls.home}}">Home</a></li>
<li class="site-nav-item"><a class="js-ajax-link" title="Wiki Home" href="{{url @root.config.urls.base}}">Wiki</a></li>
<li class="site-nav-item"><a class="js-ajax-link" title="Lastest blog post" href="{{url posts.[0].path}}">Blog</a></li>
{{#is-in 'posts'}}
<li class="site-nav-item"><a class="js-ajax-link js-show-index" title="Post index" href="{{url '/posts/'}}">Posts</a></li>
{{else}}
<li class="site-nav-item"><a class="js-ajax-link js-show-index" title="Wiki index" href="{{url '/index.html'}}">Pages</a></li>
{{/is-in}}
{{> navigation}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment