Sha256: 49d816122d9c1dbb27a6cbd31fd87d296d8ef3af42607c9470423ea6852f573c

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

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

skip "theme/twitter/lib"
skip "theme/twitter/docs"
skip "theme/twitter/examples"
skip "theme/twitter/Makefile"
skip "theme/twitter/README"

# 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

3 entries across 3 versions & 1 rubygems

Version Path
gumdrop-0.2.16 lib/gumdrop/template/twitter/lib/site.rb
gumdrop-0.2.15 lib/gumdrop/template/twitter/lib/site.rb
gumdrop-0.2.14 lib/gumdrop/template/twitter/lib/site.rb