YUKI Hiroshi
null+****@clear*****
Mon Feb 17 12:26:19 JST 2014
YUKI Hiroshi 2014-02-17 12:26:19 +0900 (Mon, 17 Feb 2014) New Revision: 9c7b5156aceaa64c4fa0fc69253ed215c45cf026 https://github.com/droonga/droonga.org/commit/9c7b5156aceaa64c4fa0fc69253ed215c45cf026 Message: Don't show "up one level" link in the top page Modified files: _includes/navbar-content.en.html _includes/navbar-content.ja.html _layouts/base.html Modified: _includes/navbar-content.en.html (+3 -1) =================================================================== --- _includes/navbar-content.en.html 2014-02-17 12:14:06 +0900 (a605f76) +++ _includes/navbar-content.en.html 2014-02-17 12:26:19 +0900 (077a36e) @@ -18,7 +18,9 @@ <li><a href="/reference/">Reference manual</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="../"><i class="fa fa-arrow-circle-up "></i> Up one level</a></li> + {% if relative_path != "" %} + <li><a href="../"><i class="fa fa-arrow-circle-up "></i> Up one level</a></li> + {% endif %} <li> <a href="https://github.com/droonga"><i class="fa fa-github"></i> GitHub</a> </li> Modified: _includes/navbar-content.ja.html (+3 -1) =================================================================== --- _includes/navbar-content.ja.html 2014-02-17 12:14:06 +0900 (e6a6283) +++ _includes/navbar-content.ja.html 2014-02-17 12:26:19 +0900 (138b1d0) @@ -18,7 +18,9 @@ <li><a href="/ja/reference/">リファレンスマニュアル</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="../"><i class="fa fa-arrow-circle-up "></i> 1つ上の階層へ戻る</a></li> + {% if relative_path != "" %} + <li><a href="../"><i class="fa fa-arrow-circle-up "></i> 1つ上の階層へ戻る</a></li> + {% endif %} <li> <a href="https://github.com/droonga"><i class="fa fa-github"></i> GitHub</a> </li> Modified: _layouts/base.html (+1 -1) =================================================================== --- _layouts/base.html 2014-02-17 12:14:06 +0900 (8a584e9) +++ _layouts/base.html 2014-02-17 12:26:19 +0900 (bc3556e) @@ -2,6 +2,7 @@ <html lang="{{ page.language }}"> <head> {% capture title %}{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}{% endcapture %} + {% capture relative_path %}{{ page.url | remove_first: page.path_prefix | remove: "index.html" }}{% endcapture %} {% if page.description %} {% assign description = page.description %} @@ -66,7 +67,6 @@ <div class="container"> {% unless page.categories contains "news" %} <ul class="other-languages"> - {% capture relative_path %}{{ page.url | remove_first: page.path_prefix | remove: "index.html" }}{% endcapture %} <li><a href="/{{ relative_path }}">English</a></li> <li><a href="/ja/{{ relative_path }}">日本語</a></li> </ul> -------------- next part -------------- HTML����������������������������... 다운로드