2015-10-26 15:29:54 +00:00
|
|
|
require_relative "helpers/middleman_hashicorp_shim"
|
|
|
|
helpers MiddlemanHashiCorpHelpers
|
2014-01-10 17:42:05 +00:00
|
|
|
|
2013-09-19 00:36:35 +00:00
|
|
|
page "/blog_feed.xml", layout: false
|
|
|
|
|
2015-10-26 15:29:54 +00:00
|
|
|
# The version of Vagrant - update this to update the downloads page
|
2015-12-21 20:11:42 +00:00
|
|
|
set :latest_version, '1.8.0'
|
2014-01-10 17:42:05 +00:00
|
|
|
|
2013-09-03 20:48:55 +00:00
|
|
|
set :css_dir, 'stylesheets'
|
|
|
|
set :js_dir, 'javascripts'
|
|
|
|
set :images_dir, 'images'
|
|
|
|
|
|
|
|
# Use the RedCarpet Markdown engine
|
|
|
|
set :markdown_engine, :redcarpet
|
2013-12-09 08:17:20 +00:00
|
|
|
set :markdown,
|
2014-05-22 16:35:12 +00:00
|
|
|
fenced_code_blocks: true,
|
|
|
|
with_toc_data: true
|
2013-09-03 20:48:55 +00:00
|
|
|
|
2013-09-16 23:07:58 +00:00
|
|
|
# Enable the blog and set the time zone so that post times appear
|
|
|
|
# correctly.
|
|
|
|
Time.zone = "America/Los_Angeles"
|
|
|
|
|
|
|
|
activate :blog do |b|
|
|
|
|
b.layout = "blog_post"
|
|
|
|
b.permalink = ":title.html"
|
|
|
|
b.prefix = "blog"
|
|
|
|
end
|
|
|
|
|
2013-09-03 20:48:55 +00:00
|
|
|
# Build-specific configuration
|
|
|
|
configure :build do
|
|
|
|
activate :asset_hash
|
|
|
|
activate :minify_css
|
|
|
|
activate :minify_javascript
|
|
|
|
end
|