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
Transcript
21 slides
ΈΜͳ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ͰαΠτ࡞Δͱ υΩϡϝϯτʹࡌͤͯΒ͑·͢ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠
More Decks by ikuwow
See All by ikuwow
Elasticsearch on EC2からAmazon Elasticsearch Serviceに 移行してだいぶ楽になった話
ikuwow
0
3.7k
意外と使える! 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
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
120
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
240
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
800
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
610
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
230
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
150
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
500
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.5k
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
220
Featured
See All Featured
Marketing to machines
jonoalderson
1
6k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The Language of Interfaces
destraynor
162
27k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
360
Docker and Python
trallard
47
4.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
The browser strikes back
jonoalderson
0
2k
The Curious Case for Waylosing
cassininazir
1
630
4 Signs Your Business is Dying
shpigford
187
23k
Building the Perfect Custom Keyboard
takai
2
970
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k