diff --git a/lib/brightbox-nanoc-helpers/blogging.rb b/lib/brightbox-nanoc-helpers/blogging.rb index a7e1f86..6e0bb83 100644 --- a/lib/brightbox-nanoc-helpers/blogging.rb +++ b/lib/brightbox-nanoc-helpers/blogging.rb @@ -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 diff --git a/lib/brightbox-nanoc-helpers/pagination.rb b/lib/brightbox-nanoc-helpers/pagination.rb index 2a16e69..26bd658 100644 --- a/lib/brightbox-nanoc-helpers/pagination.rb +++ b/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 /