jekyll de blog

26
Jekyll de blog 2015/07/04 CMS勉強会 Agile459 懸田 twitter@kkd

Upload: takeshi-kakeda

Post on 05-Aug-2015

122 views

Category:

Software


0 download

TRANSCRIPT

Jekyll de blog2015/07/04

CMS勉強会

Agile459 懸田 剛

twitter@kkd

これまでの私の blog(?)の歴史

20世紀の頃

•Wikiを使って、Web日記を実現していた

•Yukiwiki、Tiki、Swiki、etc…

COREBlog

• Zopeベースのブログシステム

• Python、オブジェクト指向、プロトタイプ指向

• 簡単インストール&そこそこ高機能

• 自宅鯖で運用(流行ってた)

• ReStructuredTextが使える!!

しかし…

• ZopeはZODBという独自のオブジェクト指向DBを利用

• データの扱いがちょっと…

Trac + TracBlogPlugin

• Trac(Wiki+ITS+リポジトリブラウザ)

• 最小限の機能+プラグインで拡張可能

• TracBlogPluginを使ってBlogをやっていた

• Wiki=ストック情報、Blog=フロー情報

•結局はすべて「Wikiページ」として編集可能

•見せ方としてBlogっぽくしているだけ

• ReStructuredTextが使える!

しかし…

• TracBlogPluginが古くなった

• 他のBlogプラグインに移行したがWikiベースでない!

•Tracがデータが増えると不安定に

•Sqliteベースの場合。postgre/mysqlに移行要

SNSの台頭

• つぶやき、短文のフロー情報が中心となる

• 文章を書くブログから徐々に移行していった…

• どんどん書かなくなってきた…

ブログサービス使わないの?

• いろいろあるよね…楽だけど…

• 自分が死んだらどうなるの?

•まさーるのページ

•http://www.objectclub.jp/community/memorial/homepage3.nifty.com/masarl/

http://jekyllrb.com

http://jekyllrb-ja.github.io

Githubとの 親和性

自分が死んでも リポジトリは残る

Rubyで プラグイン

利用の流れ

Jekyll-server コンテンツ HTML/CSS

更新検知

変更読込

HTML生成

エディター

ファイル追加

github (master)local github

pages

push

generate HTML

publish

シンプルすぎる

Usage:

jekyll <subcommand> [options]

Options: -s, --source [DIR] Source directory (defaults to ./) -d, --destination [DIR] Destination directory (defaults to ./_site) --safe Safe mode (defaults to false) -p, --plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]] Plugins directory (defaults to ./_plugins) --layouts DIR Layouts directory (defaults to ./_layouts) -h, --help Show this message -v, --version Print the name and version -t, --trace Show the full backtrace when an error occurs

Subcommands: build Build your site docs Launch local server with docs for Jekyll v2.4.0 doctor, hyde Search site and print specific deprecation warnings help Show the help message, optionally for a given subcommand. new Creates a new Jekyll site scaffold in PATH serve, server Serve your site locally

シンプルすぎる!

• 記事単位の雛形生成コマンドはない!

• Jekyll-bootstrap or Octpressとの併用が楽

• 作ってしまえば生成コマンドは不要

•最小限すぎて辛いかも!?

• Rakeで様々な自動化ができ、自分好みにカスタマイズ

問題発生

• Github Pagesでは使えるプラグインが限られる!!

• Github PagesのJekyllは最新ではない!!

github (branch)local

github pages

commit/push

publish

github (master)

更新・生成

commit/push

HTMLMarkdown

テンプレート プラグイン

まとめ

• こんな人は、Jekyllがよいかもしれない

• Git/Github大好き

•シンプルが好き

•Rubyが好き

•自分で改善していくのが好き

Hexoいいなぁ…