Global

Methods

duration8601(seconds) → {string|null}

Function to format seconds as duration

Parameters:
Name Type Description
seconds number

A number of seconds

Source:
Returns:

A formatted duration, or null if input not parseable.

Type
string | null

schema(optionsopt)

Schema plugin. Adds schema.org metadata in json+ld format to the DOM for Google and other search engines which will read data inserted by javascript.

Parameters:
Name Type Attributes Default Description
options Object <optional>
{}

An object of options

Properties
Name Type Attributes Description
schemaId string <optional>

A URI to use as the id in the schema

keywords boolean <optional>

Whether to include tags as keywords

excludeTags Array <optional>

If including tags, an array of tags to exclude

baseObject Object <optional>

A template object to build the schema onto

includeEmbedUrl boolean <optional>

Whether to include the embed url

preferLongDescription boolean <optional>

Whether to prefer the long description

Source: