Sha256: db0fb982a1bf5a13496e2e120f7401673d6ee7c2a1468a5146afa8aa7f9b878a
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require 'redcarpet' module Nanoc::DataSources module Filesystem def items ghp_config = Nanoc::Site.new('.').config alt_content = ghp_config[:alt_content] || "content" alt_dir = $:.collect {|x| File.join(File.expand_path("..", x), alt_content) }.select {|x| File.directory? x }[0] load_objects(alt_dir, 'item', Nanoc::Item) end def layouts ghp_config = Nanoc::Site.new('.').config alt_layouts = ghp_config[:alt_layouts] || "layouts" alt_dir = $:.collect {|x| File.join(File.expand_path("..", x), alt_layouts) }.select {|x| File.directory? x }[0] load_objects(alt_dir, 'layout', Nanoc::Layout) end end end include Nanoc3::Helpers::Rendering
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ghp-0.0.4 | lib/nanoc/helpers.rb |