lib/nanoc/helpers/blogging.rb in nanoc-2.1.4 vs lib/nanoc/helpers/blogging.rb in nanoc-2.1.5
- old
+ new
@@ -13,9 +13,13 @@
# Some functions in this blogging helper, such as the +atom_feed+ function,
# require additional attributes to be set; these attributes are described in
# the documentation for these functions.
#
# The two main functions are sorted_articles and atom_feed.
+ #
+ # To activate this helper, +include+ it, like this:
+ #
+ # include Nanoc::Helpers::Blogging
module Blogging
# Returns the list of articles, sorted by descending creation date (so
# newer articles appear first).
def sorted_articles