lib/yarrow/content/collection_expander.rb
# Workaround for handling meta and content source in multiple files or a single
# file with front matter.
Workaround for handling meta and content source in multiple files or a single
file with front matter.
Workaround for handling meta and content source in multiple files or a single file with front matter .
def process_content(path)
        case path.extname
        when '.htm', '.md'
          read_split_content(path.to_s, symbolize_keys: true)
        when '.yml'
          [nil, YAML.load(File.read(path.to_s), symbolize_names: true)]
        end
      end
def process_content ( path ) case path . extname when '.htm' , '.md' read_split_content ( path . to_s , symbolize_keys : true ) when '.yml' [ nil , YAML . load ( File . read ( path . to_s ) , symbolize_names : true ) ] end end
Workaround for handling meta and content source in multiple files or a single
file with front matter.
Workaround for handling meta and content source in multiple files or a single file with front matter .
# when '.md' #   body, data = read_split_content(path.to_s, symbolize_keys: true) #   [Kramdown::Document.new(body).to_html, data]
path
<not_specific>