Yoji Shidara
null+****@clear*****
Wed Nov 13 17:03:33 JST 2013
Yoji Shidara 2013-11-13 17:03:33 +0900 (Wed, 13 Nov 2013) New Revision: 9d30423b5814b370fabc62ed176381f0d80a8392 https://github.com/droonga/droonga.org/commit/9d30423b5814b370fabc62ed176381f0d80a8392 Message: Add news and reorganize site structure Added files: _includes/news_item.html _layouts/documents.html _layouts/news.html _layouts/news_item.html _layouts/page.html _posts/2013-11-13-test-1.md _posts/2013-11-13-test-2.md news/index.md Modified files: _layouts/default.html ja/reference/catalog/index.md ja/reference/commands/add/index.md ja/reference/commands/column_create/index.md ja/reference/commands/index.md ja/reference/commands/search/index.md ja/reference/commands/select/index.md ja/reference/commands/table_create/index.md ja/reference/index.md ja/tutorial/index.md tutorial/index.md Added: _includes/news_item.html (+9 -0) 100644 =================================================================== --- /dev/null +++ _includes/news_item.html 2013-11-13 17:03:33 +0900 (5832ffc) @@ -0,0 +1,9 @@ +<article> + <h2> + <a href="{{ post.url }}"> + {{ post.title }} + </a> + </h2> + <span class="label label-info">{{ post.date | date: '%Y-%m-%d' }}</span> + {{ post.content }} +</article> Modified: _layouts/default.html (+0 -1) =================================================================== --- _layouts/default.html 2013-11-13 16:03:08 +0900 (64b61e1) +++ _layouts/default.html 2013-11-13 17:03:33 +0900 (2a3578a) @@ -17,7 +17,6 @@ </nav> <div class="container"> - {% if page.title %}<h1>{{ page.title }}</h1>{% endif %} {{ content }} </div> Added: _layouts/documents.html (+5 -0) 100644 =================================================================== --- /dev/null +++ _layouts/documents.html 2013-11-13 17:03:33 +0900 (73e505b) @@ -0,0 +1,5 @@ +--- +layout: default +--- +{% if page.title %}<h1>{{ page.title }}</h1>{% endif %} +{{ content }} Added: _layouts/news.html (+7 -0) 100644 =================================================================== --- /dev/null +++ _layouts/news.html 2013-11-13 17:03:33 +0900 (78ce887) @@ -0,0 +1,7 @@ +--- +layout: default +--- + +<section class="news"> + {{ content }} +</sction> Added: _layouts/news_item.html (+12 -0) 100644 =================================================================== --- /dev/null +++ _layouts/news_item.html 2013-11-13 17:03:33 +0900 (523262b) @@ -0,0 +1,12 @@ +--- +layout: news +--- + +<article> + <h2> + {{ page.title }} + </h2> + <span class="label label-info">{{ page.date | date: '%Y-%m-%d' }}</span> + + {{ content }} +</article> Added: _layouts/page.html (+5 -0) 100644 =================================================================== --- /dev/null +++ _layouts/page.html 2013-11-13 17:03:33 +0900 (73e505b) @@ -0,0 +1,5 @@ +--- +layout: default +--- +{% if page.title %}<h1>{{ page.title }}</h1>{% endif %} +{{ content }} Added: _posts/2013-11-13-test-1.md (+6 -0) 100644 =================================================================== --- /dev/null +++ _posts/2013-11-13-test-1.md 2013-11-13 17:03:33 +0900 (341128f) @@ -0,0 +1,6 @@ +--- +title: test1 +layout: news_item +--- + +This is a test post. Added: _posts/2013-11-13-test-2.md (+6 -0) 100644 =================================================================== --- /dev/null +++ _posts/2013-11-13-test-2.md 2013-11-13 17:03:33 +0900 (2efc03a) @@ -0,0 +1,6 @@ +--- +title: test2 +layout: news_item +--- + +This is a test post. Modified: ja/reference/catalog/index.md (+1 -1) =================================================================== --- ja/reference/catalog/index.md 2013-11-13 16:03:08 +0900 (e219119) +++ ja/reference/catalog/index.md 2013-11-13 17:03:33 +0900 (25402e6) @@ -1,6 +1,6 @@ --- -layout: default title: catalog.json +layout: documents --- Work in Progress Modified: ja/reference/commands/add/index.md (+1 -1) =================================================================== --- ja/reference/commands/add/index.md 2013-11-13 16:03:08 +0900 (7842719) +++ ja/reference/commands/add/index.md 2013-11-13 17:03:33 +0900 (abae54f) @@ -1,6 +1,6 @@ --- -layout: default title: add +layout: documents --- ## 概要 Modified: ja/reference/commands/column_create/index.md (+1 -1) =================================================================== --- ja/reference/commands/column_create/index.md 2013-11-13 16:03:08 +0900 (fc23c57) +++ ja/reference/commands/column_create/index.md 2013-11-13 17:03:33 +0900 (2226f4a) @@ -1,6 +1,6 @@ --- -layout: default title: column_create +layout: documents --- ## 概要 Modified: ja/reference/commands/index.md (+1 -1) =================================================================== --- ja/reference/commands/index.md 2013-11-13 16:03:08 +0900 (4f19b8f) +++ ja/reference/commands/index.md 2013-11-13 17:03:33 +0900 (6a67003) @@ -1,6 +1,6 @@ --- -layout: default title: コマンドリファレンス +layout: documents --- 以下のコマンドを利用できます。 Modified: ja/reference/commands/search/index.md (+1 -1) =================================================================== --- ja/reference/commands/search/index.md 2013-11-13 16:03:08 +0900 (c5c49b0) +++ ja/reference/commands/search/index.md 2013-11-13 17:03:33 +0900 (a1485a6) @@ -1,6 +1,6 @@ --- -layout: default title: search +layout: documents --- ## 概要 Modified: ja/reference/commands/select/index.md (+1 -1) =================================================================== --- ja/reference/commands/select/index.md 2013-11-13 16:03:08 +0900 (1191288) +++ ja/reference/commands/select/index.md 2013-11-13 17:03:33 +0900 (57406cf) @@ -1,6 +1,6 @@ --- -layout: default title: select +layout: documents --- ## 概要 Modified: ja/reference/commands/table_create/index.md (+1 -1) =================================================================== --- ja/reference/commands/table_create/index.md 2013-11-13 16:03:08 +0900 (f384c23) +++ ja/reference/commands/table_create/index.md 2013-11-13 17:03:33 +0900 (e35ae47) @@ -1,6 +1,6 @@ --- -layout: default title: table_create +layout: documents --- ## 概要 Modified: ja/reference/index.md (+1 -1) =================================================================== --- ja/reference/index.md 2013-11-13 16:03:08 +0900 (bc443d9) +++ ja/reference/index.md 2013-11-13 17:03:33 +0900 (975520d) @@ -1,6 +1,6 @@ --- -layout: default title: リファレンス +layout: documents --- * [catalog.json](./catalog/) Modified: ja/tutorial/index.md (+1 -1) =================================================================== --- ja/tutorial/index.md 2013-11-13 16:03:08 +0900 (972b6df) +++ ja/tutorial/index.md 2013-11-13 17:03:33 +0900 (602fc62) @@ -1,6 +1,6 @@ --- title: Droonga チュートリアル -layout: default +layout: documents --- ## チュートリアルのゴール Added: news/index.md (+8 -0) 100644 =================================================================== --- /dev/null +++ news/index.md 2013-11-13 17:03:33 +0900 (97eb441) @@ -0,0 +1,8 @@ +--- +title: News +layout: default +--- + +{% for post in site.posts %} + {% include news_item.html %} +{% endfor %} Modified: tutorial/index.md (+1 -1) =================================================================== --- tutorial/index.md 2013-11-13 16:03:08 +0900 (e0e8c0b) +++ tutorial/index.md 2013-11-13 17:03:33 +0900 (a340c74) @@ -1,6 +1,6 @@ --- title: Droonga tutorial -layout: default +layout: documents --- Not yet available in English. See [Japanese version](/ja/tutorial). -------------- next part -------------- HTML����������������������������...Download