Kouhei Sutou
null+****@clear*****
Wed Aug 16 21:46:46 JST 2017
Kouhei Sutou 2017-08-16 21:46:46 +0900 (Wed, 16 Aug 2017) New Revision: 1b0f1f573701a8e1313270c70e37ba60df7569c4 https://github.com/pgroonga/pgroonga.github.io/commit/1b0f1f573701a8e1313270c70e37ba60df7569c4 Message: Show version note to header Added files: _includes/v1-content-header.en.html _includes/v1-content-header.html _includes/v1-content-header.ja.html _includes/v2-content-header.en.html _includes/v2-content-header.html _includes/v2-content-header.ja.html Modified files: _layouts/base.html assets/stylesheets/pgroonga.scss Added: _includes/v1-content-header.en.html (+3 -0) 100644 =================================================================== --- /dev/null +++ _includes/v1-content-header.en.html 2017-08-16 21:46:46 +0900 (2a50e17) @@ -0,0 +1,3 @@ +<div class="note"> + <p>This is a document for PGroonga 1.X. See <a href="../../{{ page.url | remove_first: "/v1/" }}">PGroonga 2.x document</a> when you're using recent PGroonga.</p> +</div> Added: _includes/v1-content-header.html (+6 -0) 100644 =================================================================== --- /dev/null +++ _includes/v1-content-header.html 2017-08-16 21:46:46 +0900 (bfa6009) @@ -0,0 +1,6 @@ +{% case page.language %} +{% when "ja" %} + {% include v1-content-header.ja.html %} +{% else %} + {% include v1-content-header.en.html %} +{% endcase %} Added: _includes/v1-content-header.ja.html (+3 -0) 100644 =================================================================== --- /dev/null +++ _includes/v1-content-header.ja.html 2017-08-16 21:46:46 +0900 (af068c0) @@ -0,0 +1,3 @@ +<div class="note"> + <p>これはPGroonga 1.X用のドキュメントです。新しいPGroongaを使っているなら<a href="../../{{ page.url | remove_first: "/v1/" }}">PGroonga 2.xのドキュメント</a>を見てください。</p> +</div> Added: _includes/v2-content-header.en.html (+3 -0) 100644 =================================================================== --- /dev/null +++ _includes/v2-content-header.en.html 2017-08-16 21:46:46 +0900 (3060100) @@ -0,0 +1,3 @@ +<div class="note"> + <p>This is a document for PGroonga 2.X. See <a href="/v1{{ page.url }}">PGroonga 1.x document</a> when you're using old PGroonga.</p> +</div> Added: _includes/v2-content-header.html (+6 -0) 100644 =================================================================== --- /dev/null +++ _includes/v2-content-header.html 2017-08-16 21:46:46 +0900 (68f90d4) @@ -0,0 +1,6 @@ +{% case page.language %} +{% when "ja" %} + {% include v2-content-header.ja.html %} +{% else %} + {% include v2-content-header.en.html %} +{% endcase %} Added: _includes/v2-content-header.ja.html (+3 -0) 100644 =================================================================== --- /dev/null +++ _includes/v2-content-header.ja.html 2017-08-16 21:46:46 +0900 (f6a3931) @@ -0,0 +1,3 @@ +<div class="note"> + <p>これはPGroonga 2.X用のドキュメントです。古いPGroongaを使っているなら<a href="v1/{ page.url }}">PGroonga 1.xのドキュメント</a>を見てください。</p> +</div> Modified: _layouts/base.html (+9 -0) =================================================================== --- _layouts/base.html 2017-08-16 21:21:55 +0900 (675f37d) +++ _layouts/base.html 2017-08-16 21:46:46 +0900 (98af8c6) @@ -34,6 +34,15 @@ </nav> <div class="container"> + {% if page.url contains "/v1/" %} + {% include v1-content-header.html %} + {% elsif page.url contains "/tutorial/" %} + {% include v2-content-header.html %} + {% elsif page.url contains "/reference/" %} + {% include v2-content-header.html %} + {% elsif page.url contains "/how-to/" %} + {% include v2-content-header.html %} + {% endif %} {{ content }} </div> Modified: assets/stylesheets/pgroonga.scss (+9 -0) =================================================================== --- assets/stylesheets/pgroonga.scss 2017-08-16 21:21:55 +0900 (5a510e2) +++ assets/stylesheets/pgroonga.scss 2017-08-16 21:46:46 +0900 (b11daab) @@ -41,3 +41,12 @@ table { @extend .text-center; } } + +div.note { + @extend .alert; + @extend .alert-info; + + a { + @extend .alert-link; + } +} -------------- next part -------------- HTML����������������������������...下载