Sha256: 451d87520b6ae8e3d0f8787d225a0a27c65be9023914a5f20e0d3ee1f93db14e
Contents?: true
Size: 1020 Bytes
Versions: 4
Compression:
Stored size: 1020 Bytes
Contents
# Any specialized code for your site goes here... puts "Build: #{Gumdrop.data.config.title} (gumdrop v#{Gumdrop::VERSION})" if defined? Encoding Encoding.default_internal = Encoding.default_external = "UTF-8" else $KCODE = "UTF-8" end require 'slim' Slim::Engine.set_default_options :pretty => true # Example of using a content filter to compress CoffeeScript/JS output # require 'jsmin' # content_filter do |content, info| # if info.ext == '.js' # puts " Compress: #{info.filename}" # JSMin.minify content # else # content # end # end # Example site-level generator # generate do # # page "about.html", :template=>'about', :passthru=>'Available in the template' # requires a about.template.XX file # # # Maybe for a tumblr-like pager # pager= Gumdrop.data.pager_for :posts, :base_path=>'posts/page', :page_size=>5 # pager.each do |page| # page "#{page.uri}.html", :template=>'post_page', :posts=>page.items, :pager=>pager, :current_page=>pager.current_page # end # # end
Version data entries
4 entries across 4 versions & 1 rubygems