Skip to content

blog-options.ts#

View Markdown

Source

2 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

2 symbols 1 functions 1 modules 2 parameters 1 returns

Reference#

moduleblog-optionsBlog option resolution.

Blog option resolution.

View source

fnresolveBlogCollectionName(requested: string | undefined, collectionNames: readonly string[]): string | undefinedPicks a collection named blog, else the only configured collection. An explicit…

Picks a collection named blog, else the only configured collection.

An explicit name always wins. Several collections and no blog name require blog.collection.

Signature

export function resolveBlogCollectionName(requested: string | undefined, collectionNames: readonly string[]): string | undefined

View source

Parameters

  • requested string | undefined
  • collectionNames readonly string[]

Returns

string | undefined