Skip to content
Permalink
Browse files

Deploy workflow

  • Loading branch information...
jodosha committed Feb 16, 2015
1 parent 925a3bd commit 570e8ea5f98ad95ffd83fa252092c521cd4b628a
Showing with 15 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +9 −0 Gemfile.lock
  3. +4 −0 config.rb
  4. +1 −1 source/layouts/blog.erb
@@ -4,5 +4,6 @@ gem 'middleman', '~> 3.3'
gem 'middleman-livereload', '~> 3.1'
gem 'middleman-blog', '~> 3.5'
gem 'middleman-syntax', '~> 2.0'
gem 'middleman-deploy', '~> 1.0'
gem 'bootstrap-sass', '~> 3.3', require: false
gem 'redcarpet', '~> 3.2'
@@ -81,6 +81,10 @@ GEM
rack-test (~> 0.6.2)
thor (>= 0.15.2, < 2.0)
tilt (~> 1.4.1, < 2.0)
middleman-deploy (1.0.0)
middleman-core (>= 3.2)
net-sftp
ptools
middleman-livereload (3.4.2)
em-websocket (~> 0.5.1)
middleman-core (>= 3.3)
@@ -95,12 +99,16 @@ GEM
rouge (~> 1.0)
minitest (5.5.1)
multi_json (1.10.1)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.9.2)
padrino-helpers (0.12.4)
i18n (~> 0.6, >= 0.6.7)
padrino-support (= 0.12.4)
tilt (~> 1.4.1)
padrino-support (0.12.4)
activesupport (>= 3.1)
ptools (1.3.2)
rack (1.6.0)
rack-livereload (0.3.15)
rack
@@ -141,6 +149,7 @@ DEPENDENCIES
bootstrap-sass (~> 3.3)
middleman (~> 3.3)
middleman-blog (~> 3.5)
middleman-deploy (~> 1.0)
middleman-livereload (~> 3.1)
middleman-syntax (~> 2.0)
redcarpet (~> 3.2)
@@ -52,6 +52,10 @@
activate :livereload
end

activate :deploy do |deploy|
deploy.method = :git
end

# Methods defined in the helpers block are available in templates
helpers do
def articles(limit = 5)
@@ -35,8 +35,8 @@
<section class="blog wrapper animated fadeIn">
<div class="container-fluid">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 main">
<!-- <img src="images/sample-photo.jpg" class="img-rounded img-responsive"> -->
<%= article_image(current_page) %>

<h1 class="page-header">
<%= article_title(current_page) %>
<div class="meta">Posted by <strong><%= article_author(current_page) %></strong> on <%= article_date(current_page) %></div>

0 comments on commit 570e8ea

Please sign in to comment.
You can’t perform that action at this time.