Kouhei Sutou
null+****@clear*****
Mon Dec 5 15:24:01 JST 2016
Kouhei Sutou 2016-12-05 15:24:01 +0900 (Mon, 05 Dec 2016) New Revision: 639f2baaea936154519742caed57bbcf44737181 https://github.com/pgroonga/pgroonga.github.io/commit/639f2baaea936154519742caed57bbcf44737181 Message: Fix upper level link Modified files: _includes/navbar-content.ja.html Modified: _includes/navbar-content.ja.html (+7 -1) =================================================================== --- _includes/navbar-content.ja.html 2016-12-05 12:56:11 +0900 (71d7e71) +++ _includes/navbar-content.ja.html 2016-12-05 15:24:01 +0900 (862e2d4) @@ -39,7 +39,13 @@ {% if page.upper_level != null %} <li><a href="{{ page.upper_level }}"><i class="fa fa-arrow-circle-up"></i> 1階層上へ</a></li> {% elsif relative_path != "" %} - <li><a href="../"><i class="fa fa-arrow-circle-up"></i> 1階層上へ</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> 1階層上へ</a></li> {% endif %} <li> <a href="https://github.com/pgroonga/pgroonga"><i class="fa fa-github"></i> GitHub</a> -------------- next part -------------- HTML����������������������������... Télécharger