Skip to content

Commit

Permalink
Add alias gem
Browse files Browse the repository at this point in the history
  • Loading branch information
garciaf committed Sep 17, 2015
1 parent 81a024e commit 6489432
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gem 'middleman-robots'
# For feed.xml.builder
gem 'builder', '~> 3.2.2'


gem 'middleman-alias'
# Code syntax highlighting
gem 'middleman-syntax', '~> 2.0.0'
gem 'redcarpet', '~> 3.3.2'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ GEM
middleman-sprockets (>= 3.1.2)
sass (>= 3.4.0, < 4.0)
uglifier (~> 2.5)
middleman-alias (0.0.12)
middleman-core (~> 3.2)
middleman-blog (3.5.3)
addressable (~> 2.3.5)
middleman-core (~> 3.2)
Expand Down Expand Up @@ -191,6 +193,7 @@ PLATFORMS
DEPENDENCIES
builder (~> 3.2.2)
middleman (~> 3.4.0)
middleman-alias
middleman-blog (~> 3.5.3)
middleman-deploy
middleman-imageoptim
Expand Down
7 changes: 5 additions & 2 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,18 @@
set :images_dir, 'images'

set :partials_dir, 'partials'

activate :alias
# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
activate :minify_css
activate :minify_html
# Minify Javascript on build
activate :minify_javascript
activate :imageoptim
activate :imageoptim do |options|
options.pngout = false
options.svgo = false
end
# Enable cache buster
# activate :asset_hash
activate :robots, :rules => [
Expand Down

0 comments on commit 6489432

Please sign in to comment.