Sha256: 1f062a91e4921fe689f24c9f60cab078bdd03ea81c8212ea3d05778925083a79
Contents?: true
Size: 619 Bytes
Versions: 4
Compression:
Stored size: 619 Bytes
Contents
module Middleman module Blog module Drafts # Drafts-related helpers that are available to the Middleman application in +config.rb+ and in templates. module Helpers # Get a {Resource} with mixed in {BlogArticle} methods representing the # current article. # @return [Middleman::Sitemap::Resource] def current_article blog.draft(current_resource.path) end # Returns the list of drafts on the site. # @return [Array<Middleman::Sitemap::Resource>] def drafts blog.drafts.articles end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems