Class: ConfigType

CMS.ConfigType(name, layout)

The types of content collections to load. Each type name is a directory where the files, pages or posts are located. Each type has a set of layout templates for various use cases.

Constructor

new ConfigType(name, layout)

Parameters:
Name Type Description
name string

Directory name for this content type (used as key name in CMS)

layout Object
Properties
Name Type Description
list string

Template file to use for listing this content type

single string

Template file to use for rendering a single page

sort string

Default sort for files when browsing the listing page

title string

Page title set when browsing the listing page

Source: