16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Octopressのテーマを変更してみよう!

Last updated at Posted at 2012-12-26

Octopressは、テーマ機構を持っている為、簡単にテーマを変更する事が可能です。
但し、現在ではテーマは少なめです。

利用可能な公式のテーマリストは、3rd Party Octopress Themesに掲載されています。
今回は、"Slash"というテーマに変更したいと思います。

Demo Site: http://zespia.tw/Octopress-Theme-Slash/
GitHub: https://github.com/tommy351/Octopress-Theme-Slash

テーマインストール

READMEに記載されている通りにインストールするだけです。

$ git clone git://github.com/tommy351/Octopress-Theme-Slash.git .themes/slash
Cloning into .themes/slash...
remote: Counting objects: 730, done.
remote: Compressing objects: 100% (365/365), done.
remote: Total 730 (delta 400), reused 675 (delta 345)
Receiving objects: 100% (730/730), 221.25 KiB | 86 KiB/s, done.
Resolving deltas: 100% (400/400), done.
$ rake install['slash']
A theme is already installed, proceeding will overwrite existing files. Are you sure? [y/n] y
## Copying slash theme into ./source and ./sass
$ rake generate
## Generating Site with Jekyll
overwrite source/stylesheets/screen.css 
/Users/y-hirasawa/.rvm/gems/ruby-1.9.3-p0@fakestarbaby.github.com/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
Configuration from /Users/y-hirasawa/Projects/rails/fakestarbaby.github.com/_config.yml
/Users/y-hirasawa/.rvm/gems/ruby-1.9.3-p0@fakestarbaby.github.com/gems/ffi-1.0.9/lib/ffi/platform.rb:27: Use RbConfig instead of obsolete and deprecated Config.
Building site: source -> public
Successfully generated site: source -> public

プレビューで確認してテーマが変更されていれば成功です。
簡単ですね!

欲を言えば、もっとテーマ増えて欲しいですけどね。

16
16
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?