SitemapEntry
One URL of a sitemap.
One URL of a sitemap. alternates.languages lists the same page in other languages (xhtml:link), and the
entry itself is the default one, which the protocol expects to appear in its own list.
Import#
ts
import type { SitemapEntry } from "@shadow-js/dusk/server";
Signature#
ts
interface SitemapEntry {
readonly url: string | URL;
readonly lastModified?: string | Date;
readonly changeFrequency?: ChangeFrequency;
/** 0 to 1, one decimal place is customary. */
readonly priority?: number;
readonly alternates?: { readonly languages?: Readonly<Record<string, string | URL>> };
readonly images?: readonly (string | URL | SitemapImage)[];
readonly videos?: readonly SitemapVideo[];
}
Members#
| Name | Type | Description |
|---|---|---|
url |
readonly url: string | URL |
|
lastModified? |
readonly lastModified?: string | Date |
|
changeFrequency? |
readonly changeFrequency?: ChangeFrequency |
|
priority? |
readonly priority?: number |
0 to 1, one decimal place is customary. |
alternates? |
readonly alternates?: { readonly languages?: Readonly<Record<string, string | URL>> } |
|
images? |
readonly images?: readonly (string | URL | SitemapImage)[] |
|
videos? |
readonly videos?: readonly SitemapVideo[] |