Wivern Blog

Personal-Tech memorandum

Octopress-サイドバーにProfile追加

デフォルトでプロフィール用のHTMLは以下の場所に作成されている。
source/_includes/custom/asides/about.html

about.htmlファイルを編集

1
2
3
4
<section>
  <h1>About Me</h1>
  <p>A little something about me.</p>
</section>

サイドバーにabout.htmlを追加する場合は_config.ymlに追記

_config.ymlの編集

サイドバーの先頭にプロフィールを表示させたいので、先頭に追記

1
2
3
4
5
6
7
8
9
10
11
12
13
# list each of the sidebar modules you want to include, in the order you want them to appear.
# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'
# default_asides: [asides/recent_posts.html, asides/github.html, asides/delicious.html, asides/pinboard.html, asides/googleplus.html]
default_asides: [
  + custom/asides/about.html,
    asides/recent_posts.html,
    custom/asides/category_list.html,
    custom/asides/tag_cloud.html,
    asides/github.html, 
    asides/delicious.html,
    asides/pinboard.html, 
    asides/googleplus.html
    ]

サイドバーのRecent Postsの上にProfileで作成したAbout Meが表示される。

octopress-sidebar-profile