Navigation Menu

Skip to content

Commit

Permalink
Fix upper level link
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 15, 2015
1 parent c9f6992 commit 73d8646
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _includes/navbar-content.en.html
Expand Up @@ -37,7 +37,13 @@
{% if page.upper_level != null %}
<li><a href="{{ page.upper_level }}"><i class="fa fa-arrow-circle-up"></i> Up one level</a></li>
{% elsif relative_path != "" %}
<li><a href="../"><i class="fa fa-arrow-circle-up"></i> Up one level</a></li>
{% capture last_component %}{{ page.url | split:"/" | last }}{% endcapture %}
{% if last_component == "index.html" %}
{% assign upper_level = "../" %}
{% else %}
{% assign upper_level = "./" %}
{% endif %}
<li><a href="{{ upper_level }}"><i class="fa fa-arrow-circle-up"></i> Up one level</a></li>
{% endif %}
<li>
<a href="https://github.com/pgroonga/pgroonga"><i class="fa fa-github"></i> GitHub</a>
Expand Down

0 comments on commit 73d8646

Please sign in to comment.