-
Notifications
You must be signed in to change notification settings - Fork 0
Creating Page
heavymery edited this page Oct 27, 2014
·
3 revisions
主な作業の流れは以下とおりです。
source ブランチを最新の状態にします。
$ git checkout source
$ git pull origin sourceブログ記事作成用の新しいブランチを page/<タイトル> の名前で作成し、そのブランチに移動します。
$ git checkout -b page/<タイトル> # 例 git checkout -b page/about-us参照:Blogging Basics - Octopress
rake new_page コマンドを実行して、新しいページを生成します。
$ rake new_pagesource/new-page/index.markdown ファイルが生成されます。new-page を新しいタイトルのフォルダー名に変更します。
$ mv source/new-page source/<タイトル> # 例 mv source/news-page source/about-us生成されたファイルには以下の内容がデフォルトで入力されています。
---
layout: page
title: "new-page"
date: 2011-07-03 5:59
comments: true
sharing: true
footer: true
---title: "new-page" を新しいタイトルに変更します。
---
layout: page
title: "new-page" # 例 title: "About Us."
...ブログ記事の本文書き方と同様です。
新しいページを作成した段階で、WIP のプルリクエストを送ってください。他のメンバーが同じページを重複して作成してしまう事を防ぎます。