[Groonga-commit] droonga/droonga.org at 221c1c7 [gh-pages] Hide other-languages on news

Back to archive index

Yoji Shidara null+****@clear*****
Thu Feb 13 19:05:11 JST 2014


Yoji Shidara	2014-02-13 19:05:11 +0900 (Thu, 13 Feb 2014)

  New Revision: 221c1c7d064babfad0d1cf5a676eefbdc681bc75
  https://github.com/droonga/droonga.org/commit/221c1c7d064babfad0d1cf5a676eefbdc681bc75

  Message:
    Hide other-languages on news
    
    Because news do not have translated articles.

  Modified files:
    _layouts/base.html

  Modified: _layouts/base.html (+7 -5)
===================================================================
--- _layouts/base.html    2014-02-13 19:00:37 +0900 (d5b7bb0)
+++ _layouts/base.html    2014-02-13 19:05:11 +0900 (8a584e9)
@@ -64,11 +64,13 @@
     <footer>
       <hr>
       <div class="container">
-        <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>
+        {% 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>
+        {% endunless %}
         <p class="contribute">
           {% assign source_path = page.path %}
           {% if page.language != "en" %}
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index