mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2026-02-21 11:02:03 +00:00
Move helpers back down in the config file. Order matters more than I though here...
This commit is contained in:
parent
8fa3855704
commit
564b3e2fb6
46
config.rb
46
config.rb
@ -30,33 +30,14 @@ helpers do
|
||||
end
|
||||
|
||||
###
|
||||
# Helpers
|
||||
# Markdown settings (early to use it in settings)
|
||||
###
|
||||
|
||||
# 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, with_toc_data: true, no_intra_emphasis: 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
|
||||
###
|
||||
@ -184,6 +165,31 @@ 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 :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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user