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
930
UNIXという考え方
ikuwow
1
2.1k
技術書紹介 パーフェクトPHP
ikuwow
0
2.2k
PHPサイバーテロの技法 書籍紹介
ikuwow
0
1k
Other Decks in Programming
See All in Programming
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
3
460
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
510
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
AmebaブログはKMPから卒業します
kmars0605
0
210
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
440
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
4k
最近”作らせてる” ローカルAIアプリの話
akit37
0
480
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
Featured
See All Featured
Speed Design
sergeychernyshev
33
2.2k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
BBQ
matthewcrist
90
10k
So, you think you're a good person
axbom
PRO
2
2.2k
A designer walks into a library…
pauljervisheath
211
25k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
From π to Pie charts
rasagy
1
400
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
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ͰαΠτ࡞Δͱ υΩϡϝϯτʹࡌͤͯΒ͑·͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠