[Groonga-commit] pgroonga/pgroonga.github.io at 98e8916 [master] Support Japanese description

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 12 22:31:03 JST 2015


Kouhei Sutou	2015-10-12 22:31:03 +0900 (Mon, 12 Oct 2015)

  New Revision: 98e891675a9f9cac455ae79e4834d4e6734f6b1f
  https://github.com/pgroonga/pgroonga.github.io/commit/98e891675a9f9cac455ae79e4834d4e6734f6b1f

  Message:
    Support Japanese description

  Added files:
    _includes/contribute.ja.html
    _includes/navbar-content.ja.html
    _includes/site-description.html
    _layouts/ja.html
  Modified files:
    _config.yml
    _layouts/base.html
    index.md

  Modified: _config.yml (+3 -1)
===================================================================
--- _config.yml    2015-10-12 22:24:34 +0900 (128ae72)
+++ _config.yml    2015-10-12 22:31:03 +0900 (3f7c145)
@@ -7,7 +7,9 @@ copyright_year: 2015
 postgresql_short_version: 9.4
 windows_postgresql_version: 9.4.2-1
 exclude: ["Rakefile", "Gemfile", "Gemfile.lock"]
-description: A PostgreSQL extension to use Groonga as index
+description:
+  en: A PostgreSQL extension to use Groonga as index
+  ja: Groongaをインデックスとして使うためのPostgreSQL拡張機能
 
 kramdown:
   input: GFM

  Added: _includes/contribute.ja.html (+5 -0) 100644
===================================================================
--- /dev/null
+++ _includes/contribute.ja.html    2015-10-12 22:31:03 +0900 (ee4f833)
@@ -0,0 +1,5 @@
+<p class="contribute">
+  {% assign source_path = page.path %}
+  {% assign source_url = source_path | prepend: "https://github.com/pgroonga/pgroonga.github.io/blob/master/ja/" %}
+  <a href="{{ source_url }}">誤字や誤訳、未訳を見つけたらお気軽にプルリクエストを送ってください!</a>
+</p>

  Added: _includes/navbar-content.ja.html (+35 -0) 100644
===================================================================
--- /dev/null
+++ _includes/navbar-content.ja.html    2015-10-12 22:31:03 +0900 (448e2cd)
@@ -0,0 +1,35 @@
+<div class="navbar-header">
+  <button type="button"
+          class="navbar-toggle"
+          data-toggle="collapse"
+          data-target=".navbar-collapse">
+    <span class="sr-only">ナビゲーションをトグル</span>
+    <span class="icon-bar"></span>
+    <span class="icon-bar"></span>
+    <span class="icon-bar"></span>
+  </button>
+  <a class="navbar-brand" href="/">
+    <img alt="{{ site.title }}" src="/images/pgroonga-icon.png">
+  </a>
+</div>
+<div class="collapse navbar-collapse">
+  <ul class="nav navbar-nav navbar-left">
+    <li><a href="/news/">おしらせ</a></li>
+    <li><a href="/overview/">概要</a></li>
+    <li><a href="/install/">インストール</a></li>
+    <li><a href="/tutorial/">チュートリアル</a></li>
+    <li><a href="/how-to/">ハウツー</a></li>
+    <li><a href="/reference/">リファレンスマニュアル</a></li>
+    <li><a href="/community/">コミュニティー</a></li>
+  </ul>
+  <ul class="nav navbar-nav navbar-right">
+    {% 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>1階層上へ</a></li>
+    {% endif %}
+    <li>
+      <a href="https://github.com/pgroonga/pgroonga"><i class="fa fa-github"></i> GitHub</a>
+    </li>
+  </ul>
+</div>

  Added: _includes/site-description.html (+6 -0) 100644
===================================================================
--- /dev/null
+++ _includes/site-description.html    2015-10-12 22:31:03 +0900 (96abe53)
@@ -0,0 +1,6 @@
+{% case page.language %}
+{% when "ja" %}
+{{   site.description.ja }}
+{% else %}
+{{   site.description.en }}
+{% endcase %}

  Modified: _layouts/base.html (+2 -2)
===================================================================
--- _layouts/base.html    2015-10-12 22:24:34 +0900 (e7065e5)
+++ _layouts/base.html    2015-10-12 22:31:03 +0900 (6098a5c)
@@ -7,7 +7,7 @@
     {% if page.description %}
       {% assign description = page.description %}
     {% else %}
-      {% assign description = site.description %}
+      {% capture description %}{% include site-description.html %}{% endcapture %}
     {% endif %}
 
     <meta charset="utf-8">
@@ -15,7 +15,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>{{ title }}</title>
     <link href="/assets/stylesheets/pgroonga.css" rel="stylesheet" medis="screen">
-    <meta name="description" content="{{ site.description }}">
+    <meta name="description" content="{{ description | strip_newlines }}">
   </head>
 
   <body>

  Added: _layouts/ja.html (+6 -0) 100644
===================================================================
--- /dev/null
+++ _layouts/ja.html    2015-10-12 22:31:03 +0900 (5cb23b2)
@@ -0,0 +1,6 @@
+---
+layout: base
+language: ja
+path_prefix: /ja/
+---
+{{ content }}

  Modified: index.md (+1 -1)
===================================================================
--- index.md    2015-10-12 22:24:34 +0900 (e5b738b)
+++ index.md    2015-10-12 22:31:03 +0900 (e831cc8)
@@ -8,7 +8,7 @@ layout: en
          title="{{ site.title }}"
          src="/images/pgroonga-logo.png">
   </h1>
-  <p>{{ site.description }}</p>
+  <p>{% include site-description.html %}</p>
   <p>
     <a href="/install/"
        class="btn btn-primary btn-lg"
-------------- next part --------------
HTML����������������������������...
Download 



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