Sha256: 17b5fd67c1cddbc41099cbc7742d2eed67ef453dd234c0b0156943940a5b5f0d

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

require 'slim'
require 'coffee-script'
require 'json'
require 'builder'
require 'active_support/all'

# activate :automatic_image_sizes
activate :directory_indexes

activate :webcomic

set :webcomic_domain, "http://my-site.com"
set :webcomic_source, "comics/notes"
set :webcomic_source_images, "comics/images"
set :webcomic_images, "media/comics"
set :webcomic_enable_stories, false
set :webcomic_slug_field, :position
set :webcomic_include_comic_in_feed, true
set :webcomic_sort_by, :slug # or slug? and metadata

Slim::Engine.set_default_options :pretty => true

set :markdown, :layout_engine => :slim
set :erb, :layout_engine => :slim

# Page command
page "/feed.xml", :layout => false

# Helpers
# Methods defined in the helpers block are available in templates
# helpers do
#   # Your helpers here
# end



# Change the CSS directory
set :css_dir, "theme/styles"

# Change the JS directory
set :js_dir, "theme/scripts"

# Change the images directory
set :images_dir, "media"


# Build-specific configuration
configure :build do
  
  data_content 'build', true
  
  # For example, change the Compass output style for deployment
  activate :minify_css
  
  # Minify Javascript on build
  activate :minify_javascript
  
  # Enable cache buster
  activate :cache_buster
  
  # Use relative URLs
  # activate :relative_assets
  
  # Compress PNGs after build
  # First: gem install middleman-smusher
  # require "middleman-smusher"
  # activate :smusher
  
  # Or use a different image path
  # set :http_path, "/Content/images/"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-webcomic-0.5.1 lib/middleman-webcomic/template/config.tt
middleman-webcomic-0.5.0 lib/middleman-webcomic/template/config.tt