 File              = require 'custom-file/lib/advance'
 inherits          = require 'inherits-ex/lib/inherits'
 getPrototypeOf    = require 'inherits-ex/lib/getPrototypeOf'
-matter            = require 'gray-matter'
+matter            = require 'front-matter-markdown/lib/'
 loadCfgFile       = require 'load-config-file'
 loadCfgFolder     = require 'load-config-folder'
 extend            = require 'util-ex/lib/_extend'

        return done(err) if err
        if vFrontConf and vFrontConf.skipSize
          result = {} unless isObject result
          result = extend result, vFrontConf.data
          #aOptions.skipSize = vFrontConf.skipSize
          if result.contents
            # do not enable the skipSize, but remember the position.


  @defineProperties: File.defineProperties

  matter.setOptionAlias 'toc', ['isDir', 'isDirectory']
  matter.setOptionAlias 'heading', ['dirHeading', 'dirHeadings']
  matter.setOptionAlias 'headingsAsToc', 'headingsAsToc'
  File.defineProperties Resource, extend
    isDir:
      type: 'Boolean'
