Site

Site

new Site(config)

maintains the global state of a site

Source:
Parameters:
Name Type Description
config Object

config options for the site

Methods

(static) build() → {Promise}

using the source directory, crawl all the necessary template files that will be ingested compiled

Source:
Returns:
Type:
Promise

(static) categorize() → {Object}

returns back pages and layouts as uncompiled templates

Source:
Returns:
Type:
Object
  • returns an object with the keys layout and pages that are hashmaps

(static) data() → {Object}

dynamically retrieves the files content appropriately puts top level collections as root level keys

Source:
Returns:
Type:
Object