diff --git a/config.rb b/config.rb index d109853..c434e15 100644 --- a/config.rb +++ b/config.rb @@ -28,6 +28,34 @@ helpers do end end +### +# Helpers +### + +# Automatic image dimensions on image_tag helper +activate :automatic_image_sizes + +# Reload the browser automatically whenever files change +activate :livereload + +# Pretty URLs - http://middlemanapp.com/basics/pretty-urls/ +activate :directory_indexes + +# Middleman-Syntax - https://github.com/middleman/middleman-syntax +set :haml, { + ugly: true, + escape_attrs: :once +} +set :markdown_engine, :redcarpet +set :markdown_options, fenced_code_blocks: true, smartypants: true, footnotes: true, tables: true +set :markdown, markdown_options +activate :syntax, line_numbers: true + +set :css_dir, 'stylesheets' +set :js_dir, 'javascripts' +set :images_dir, 'images' +set :partials_dir, 'partials' + ### # Blog settings ### @@ -155,33 +183,6 @@ end # proxy "/this-page-has-no-template.html", "/template-file.html", locals: { # which_fake_page: "Rendering a fake page with a local variable" } -### -# Helpers -### - -# Automatic image dimensions on image_tag helper -activate :automatic_image_sizes - -# Reload the browser automatically whenever files change -activate :livereload - -# Pretty URLs - http://middlemanapp.com/basics/pretty-urls/ -activate :directory_indexes - -# Middleman-Syntax - https://github.com/middleman/middleman-syntax -set :haml, { - ugly: true, - escape_attrs: :once -} -set :markdown_engine, :redcarpet -set :markdown, fenced_code_blocks: true, smartypants: true, :footnotes => true, :tables => true -activate :syntax, line_numbers: true - -set :css_dir, 'stylesheets' -set :js_dir, 'javascripts' -set :images_dir, 'images' -set :partials_dir, 'partials' - # Build-specific configuration configure :build do # For example, change the Compass output style for deployment