Represents the front page or home URL transmitted when making requests.

Constructors

Properties

Methods

Constructors

  • Creates a new blog.

    Parameters

    • options: Partial<BlogOptions> = {}

      An object providing values to initialize this instance.

    Returns Blog

Properties

charset: string

The character encoding for the values included in comments.

languages: string[]

The languages in use on the blog or site, in ISO 639-1 format.

url: null | URL

The blog or site URL.

Methods

  • Converts this object to a map in JSON format.

    Returns Record<string, any>

    The map in JSON format corresponding to this object.

  • Creates a new blog from the specified JSON object.

    Parameters

    • json: Record<string, any>

      A JSON object representing a blog.

    Returns Blog

    The instance corresponding to the specified JSON object.