[]previous and next page

Alternates

Alternate URLs: the canonical address, the same page in other languages, for other media, and feeds.

Alternate URLs: the canonical address, the same page in other languages, for other media, and feeds. Relative values resolve against metadataBase.

Import#

ts
import type { Alternates } from "@shadow-js/dusk";

Signature#

ts
interface Alternates {
  readonly canonical?: MetadataUrl | null;
  /** `hreflang` value to URL. */
  readonly languages?: Readonly<Record<string, readonly MetadataUrl[] | MetadataUrl>>;
  /** `media` value to URL (for example a print or mobile version). */
  readonly media?: Readonly<Record<string, MetadataUrl>>;
  /** MIME type to URL (feeds). */
  readonly types?: Readonly<Record<string, readonly MetadataUrl[] | MetadataUrl>>;
}

Members#

Name Type Description
canonical? readonly canonical?: MetadataUrl | null
languages? readonly languages?: Readonly<Record<string, readonly MetadataUrl[] | MetadataUrl>> hreflang value to URL.
media? readonly media?: Readonly<Record<string, MetadataUrl>> media value to URL (for example a print or mobile version).
types? readonly types?: Readonly<Record<string, readonly MetadataUrl[] | MetadataUrl>> MIME type to URL (feeds).