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
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
490
信頼性の目標を誰も求めてない
shubox
0
500
{ Android | Kotlin } Gradle Plugin in 2026
ryunen344
1
300
アクセシビリティから考える情報設計
high_g_engineer
0
350
Family mrubyの進捗
kishima
1
110
typoなんかねぇよ
raspython3
0
690
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
600
Building an Out-of-Order CPU
latte72
1
750
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
110
Deep dive into the select statement (GopherCon UK)
jespino
0
170
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
2
890
コンパウンドプロダクト開発のためのローカルプロセスマネージャー再発明 #layerxgo
izumin5210
0
660
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The Curse of the Amulet
leimatthew05
2
14k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
590
The Pragmatic Product Professional
lauravandoore
37
7.4k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
320
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
270
The Language of Interfaces
destraynor
162
27k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
510
Navigating Team Friction
lara
192
16k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
490
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ͰαΠτ࡞Δͱ υΩϡϝϯτʹࡌͤͯΒ͑·͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠