YUKI Hiroshi
null+****@clear*****
Fri Sep 26 13:08:23 JST 2014
YUKI Hiroshi 2014-09-26 13:08:23 +0900 (Fri, 26 Sep 2014) New Revision: b0b59eb1b7ea44bb1dd8c36c4a2dd9ad8fa4c0fc https://github.com/droonga/droonga.org/commit/b0b59eb1b7ea44bb1dd8c36c4a2dd9ad8fa4c0fc Message: Show only news topics for the language Modified files: _po/ja/index.po index.md ja/index.md ja/news/_posts/2014-09-26-test-entry.md ja/news/index.md news/index.md Modified: _po/ja/index.po (+4 -2) =================================================================== --- _po/ja/index.po 2014-09-26 13:07:48 +0900 (036a047) +++ _po/ja/index.po 2014-09-26 13:08:23 +0900 (d91d022) @@ -84,7 +84,8 @@ msgstr "## 最新情報" msgid "" "<ul class=\"posts\">\n" " {% for post in site.posts %}\n" -" {% if post.language == \"en\" %}\n" +" {% if post.path contains \"ja/news/\" %}\n" +" {% else %}\n" " <li>\n" " <a href=\"{{ post.url }}\">{{ post.title }}</a>\n" " <span class=\"date\">({{ post.date | date: \"%Y-%m-%d\" }})</span>\n" @@ -95,11 +96,12 @@ msgid "" msgstr "" "<ul class=\"posts\">\n" " {% for post in site.posts %}\n" -" {% if post.language == \"ja\" %}\n" +" {% if post.path contains \"ja/news/\" %}\n" " <li>\n" " <a href=\"{{ post.url }}\">{{ post.title }}</a>\n" " <span class=\"date\">({{ post.date | date: \"%Y-%m-%d\" }})</span>\n" " </li>\n" +" {% else %}\n" " {% endif %}\n" " {% endfor %}\n" "</ul>" Modified: index.md (+2 -1) =================================================================== --- index.md 2014-09-26 13:07:48 +0900 (460de7a) +++ index.md 2014-09-26 13:08:23 +0900 (dfd1395) @@ -34,7 +34,8 @@ The following documentations will help you to use Droonga more effectively: <ul class="posts"> {% for post in site.posts %} - {% if post.language == "en" %} + {% if post.path contains "ja/news/" %} + {% else %} <li> <a href="{{ post.url }}">{{ post.title }}</a> <span class="date">({{ post.date | date: "%Y-%m-%d" }})</span> Modified: ja/index.md (+2 -1) =================================================================== --- ja/index.md 2014-09-26 13:07:48 +0900 (3b054b4) +++ ja/index.md 2014-09-26 13:08:23 +0900 (f27d28b) @@ -39,11 +39,12 @@ Droongaをより効果的に使うために、以下のドキュメントが役 <ul class="posts"> {% for post in site.posts %} - {% if post.language == "ja" %} + {% if post.path contains "ja/news/" %} <li> <a href="{{ post.url }}">{{ post.title }}</a> <span class="date">({{ post.date | date: "%Y-%m-%d" }})</span> </li> + {% else %} {% endif %} {% endfor %} </ul> Modified: ja/news/_posts/2014-09-26-test-entry.md (+1 -1) =================================================================== --- ja/news/_posts/2014-09-26-test-entry.md 2014-09-26 13:07:48 +0900 (a47bde8) +++ ja/news/_posts/2014-09-26-test-entry.md 2014-09-26 13:08:23 +0900 (002250c) @@ -1,6 +1,6 @@ --- title: 日本語版Newsのテスト -layout: news-item +layout: news-item.ja --- 日本語版Newsのテストです。 Modified: ja/news/index.md (+3 -4) =================================================================== --- ja/news/index.md 2014-09-26 13:07:48 +0900 (5842d86) +++ ja/news/index.md 2014-09-26 13:08:23 +0900 (21acd03) @@ -4,10 +4,9 @@ layout: ja use_social_widgets: true --- -日本語版はまだありません。[英語版](/news/)を参照して下さい。 - {% for post in site.posts %} - {% if post.language == "ja" %} - {% include news-item.html %} + {% if post.path contains "ja/news/" %} + {% include news-item.ja.html %} + {% else %} {% endif %} {% endfor %} Modified: news/index.md (+2 -1) =================================================================== --- news/index.md 2014-09-26 13:07:48 +0900 (d2452c7) +++ news/index.md 2014-09-26 13:08:23 +0900 (62de60b) @@ -5,7 +5,8 @@ use_social_widgets: true --- {% for post in site.posts %} - {% if post.language == "en" %} + {% if post.path contains "ja/news/" %} + {% else %} {% include news-item.html %} {% endif %} {% endfor %} -------------- next part -------------- HTML����������������������������...Download