選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config.rb 1.8 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ###
  2. # Compass
  3. ###
  4. # Susy grids in Compass
  5. # First: gem install compass-susy-plugin
  6. # require 'susy'
  7. # Change Compass configuration
  8. # compass_config do |config|
  9. # config.output_style = :compact
  10. # end
  11. ###
  12. # Haml
  13. ###
  14. # CodeRay syntax highlighting in Haml
  15. # First: gem install haml-coderay
  16. # require 'haml-coderay'
  17. # CoffeeScript filters in Haml
  18. # First: gem install coffee-filter
  19. # require 'coffee-filter'
  20. # Automatic image dimensions on image_tag helper
  21. # activate :automatic_image_sizes
  22. ###
  23. # Page command
  24. ###
  25. # Per-page layout changes:
  26. #
  27. # With no layout
  28. # page "/path/to/file.html", :layout => false
  29. #
  30. # With alternative layout
  31. # page "/path/to/file.html", :layout => :otherlayout
  32. #
  33. # A path which all have the same layout
  34. # with_layout :admin do
  35. # page "/admin/*"
  36. # end
  37. # Proxy (fake) files
  38. # page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
  39. # @which_fake_page = "Rendering a fake page with a variable"
  40. # end
  41. ###
  42. # Helpers
  43. ###
  44. # Methods defined in the helpers block are available in templates
  45. # helpers do
  46. # def some_helper
  47. # "Helping"
  48. # end
  49. # end
  50. # Change the CSS directory
  51. # set :css_dir, "alternative_css_directory"
  52. # Change the JS directory
  53. # set :js_dir, "alternative_js_directory"
  54. # Change the images directory
  55. # set :images_dir, "alternative_image_directory"
  56. # Build-specific configuration
  57. configure :build do
  58. # For example, change the Compass output style for deployment
  59. # activate :minify_css
  60. # Minify Javascript on build
  61. # activate :minify_javascript
  62. # Enable cache buster
  63. # activate :cache_buster
  64. # Use relative URLs
  65. # activate :relative_assets
  66. # Compress PNGs after build
  67. # First: gem install middleman-smusher
  68. # require "middleman-smusher"
  69. # activate :smusher
  70. # Or use a different image path
  71. # set :http_path, "/Content/images/"
  72. end