Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
みんなもMiddlemanで技術ブログ作って幸せになろう!
Search
ikuwow
June 12, 2015
Programming
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
みんなもMiddlemanで技術ブログ作って幸せになろう!
@HTML5minutes
ikuwow
June 12, 2015
More Decks by ikuwow
See All by ikuwow
Elasticsearch on EC2からAmazon Elasticsearch Serviceに 移行してだいぶ楽になった話
ikuwow
0
3.6k
意外と使える! Alibaba Cloud
ikuwow
0
250
teratailの解析基盤をEFKで作っていろいろ楽しい話
ikuwow
0
920
UNIXという考え方
ikuwow
1
2.1k
技術書紹介 パーフェクトPHP
ikuwow
0
2.2k
PHPサイバーテロの技法 書籍紹介
ikuwow
0
1k
Other Decks in Programming
See All in Programming
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
200
Heart of Swift Concurrency
koher
0
930
Intent as Code
shoppingjaws
6
1.1k
cdk deploy JawsSonic #MARATHONしながらAWSリソースをデプロイしてみよう
akihisaikeda
2
140
変化を抱擁するドキュメントの作り方 - ビジネスルール駆動開発がもたらす、コードとの新しい関係
ioki
2
220
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
5
3.6k
App Intentsのビルドプロセスを支える技術
kntkymt
0
410
新卒PdEのリアル
ryu1013
1
510
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
7.8k
FreeBSDでZabbixを動かす
kenkino
0
310
AI活用は、個人から組織へ|マルチプレイヤーエージェントハーネス「QM」の社内活用事例 / AI use is moving from individuals to orgs
rkaga
1
130
Jetpack Compose メカニズム
skydoves
0
450
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Utilizing Notion as your number one productivity tool
mfonobong
4
590
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
810
We Are The Robots
honzajavorek
0
380
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
470
The untapped power of vector embeddings
frankvandijk
2
1.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
360
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
300
Transcript
ΈΜͳMiddlemanͰ ٕज़ϒϩά࡞ͬͯ ͤʹͳΖ͏ʂ 2015/06/12 (Thu) ϨόϨδʔζגࣜձࣾ teratail։ൃνʔϜɹग़ ز
ࣗݾհ • ग़ زʢσΨϫ ΠΫΦʣ • 20154݄ϨόϨδʔζ৽ଔೖࣾ • teratail։ൃνʔϜ ΤϯδχΞ
• PHPͷਓ • झຯɿαʔόʔࣗಈԽ • ͠ΌΔͷۤखɻͨ·ʹ͕࣌ࢭ·Δɻ @ikuwow
teratailͬͯΔʁ teratailεςοΧʔͬͯ·͢ “ຊͷΤϯδχΞ͕ू͏Q&AίϛϡχςΟαΠτ”
ͨͩࠓteratailͷ͜ͱશ͘͠·ͤΜ શʹࣗͷझຯΛ͠·͢…
MiddlemanͬͯΔʁ https://middlemanapp.com
Middlemanͱʁ • RubyϑϩϯτΤϯυ ੜπʔϧ • ERBɺHamlɺSassɺ LessɺCoffeeScript͔Β HTMLɺCSSɺJSΛੜ $ gem
install middleman $ middleman init myblog
MiddlemanͰϒϩά࡞Γ·ͨ͠ http://ikuwow.website/
ͳΜͰMiddlemanͰϒϩάʁ • MarkdownͰॻ͖͍ͨʂWordPressͷҋ͏ݟͨ͘ͳ͍ʂʂ • VimͰهࣄॻ͖͍ͨɾɾɾɻ • YeomanJS͜Θ͍͠ɺJekyllॏ͍Β͍͠͠ɺ Octpressϩΰ͕ΩϞ͍͠ɾɾɾ • Middleman࠷ۙ։ൃ͕׆ൃɻຊޠυΩϡϝϯτॆ࣮ɻ
͋ͱݸਓతʹ͠Έ͍͢Rubyɻ
ϒϩά͕؆୯ʹ࡞ΕΔ • middleman-blogͱ͍ ͏ެࣜϓϥάΠϯ͕ ༏ल • λά͚ɺԼॻ͖ɺ URLܗɺΞʔΧΠ ϒɺ… $
middleman init —template=blog $ middleman serve ## config.rb activate :blog do |blog| # ϒϩάػೳͷΦϓγϣϯΛઃఆ end
σΟϨΫτϦߏ • Jekyllʹൺͯ γϯϓϧ myblog/ +-- .gitignore +-- Gemfile +--
Gemfile.lock +-- config.rb +-- source/ +-- images/ ¦ +-- background.png ¦ +-- middleman.png +-- index.html.erb +-- javascripts/ ¦ +-- all.js +-- layouts/ ¦ +-- layout.erb +-- stylesheets/ +-- all.css +-- normalize.css +-- build/
͍ͭͷΤσΟλͰMarkdown YAMLͰFrontmatterॻ͘ $ middleman article my- article
RailsͷViewͬΆ͘ॻ͚Δ <% wrap_layout :layout do %> <h1><%= current_article.title unless current_article.nil?
%></h1> <p class="post-meta""> <% if !current_article.nil? %> <% current_article.tags.each do |tag| %> <%= link_to tag, tag_path(tag), :class => "post-category post-category-design"%> <% end %> <% end %> </p> <div class="social-buttons-box"> <%= partial "social_buttons" %> </div> <%= link_to ‘ϗʔϜ’, ‘http://ikuwow.website' %> <% end %>
GitHub PagesʹσϓϩΠ $ middleman deploy هࣄΛॻ͘=> git commit => git
push => ͦͷͰө
͍ͭͷΤσΟλͰ
None
MarkdownͰهࣄΛॻ͖ git commit
GitHub Pagesʹଈө git push
ීஈͷ։ൃͷྲྀΕͰ ϒϩά͕ॻ͚Δʂ
Middleman ࠷ߴ
MiddlemanͰ ٕज़ϒϩάΛॻ͜͏ʂ
MiddlemanͰαΠτ࡞Δͱ υΩϡϝϯτʹࡌͤͯΒ͑·͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠