Skip to content

Commit

Permalink
Blogging pulls in it's dependencies automagically
Browse files Browse the repository at this point in the history
  • Loading branch information
caius committed Jan 10, 2012
1 parent ca3f441 commit 229af04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/brightbox-nanoc-helpers/blogging.rb
Expand Up @@ -28,6 +28,11 @@ module Helpers
module Blogging
GenerateError = Class.new(RuntimeError)

# Make sure we include those modules we need to function
include ::Nanoc3::Helpers::Tagging
include ::Nanoc3::Helpers::Blogging
include Pagination

# We're dealing with posts, not articles
def posts
sorted_articles
Expand Down
2 changes: 2 additions & 0 deletions lib/brightbox-nanoc-helpers/pagination.rb
@@ -1,6 +1,8 @@
module Brightbox
module Nanoc3
module Helpers
# Provides some helper methods to generate next/previous page links.
# Used by the Blogging module
module Pagination
# Generates the URL to the next page, given the # of the current page.
# base_path should not include /page/x and should start & end with /
Expand Down

0 comments on commit 229af04

Please sign in to comment.