Sha256: 9f690517bdaf3936d317beca6008e9412f6d8aba3f237350216f9892eca8a192
Contents?: true
Size: 612 Bytes
Versions: 21
Compression:
Stored size: 612 Bytes
Contents
# Any specialized code for your site goes here... puts "Building: #{Gumdrop.data.config.title}" new_posts= Gumdrop.data.posts.map do |post| mdt= Tilt['markdown'].new { post.content } post.body = mdt.render post end Gumdrop.data.set :blog, new_posts, :persist=>true generate do page "my-root-page.html", :template=>'test', :info=>"FROM SITE.RB" pager= Gumdrop.data.pager_for :blog, :base_path=>'posts/page', :page_size=>1 pager.each do |pageset| page "#{pageset.uri}.html", :template=>'post_page', :posts=>pageset.items, :pager=>pager, :current_page=>pager.current_page end end
Version data entries
21 entries across 21 versions & 1 rubygems