mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2025-10-17 17:01:01 +00:00
Move formatting options to the top in config.rb so we can use it later here
This commit is contained in:
parent
5690a8af35
commit
41ddcdaa45
55
config.rb
55
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user