Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

SitemapResolvedUrl

interfaz Since 1.8.0

URL de sitemap.xml que reciben los módulos en el hook sitemap:resolved: su ruta, los campos opcionales de sitemaps.org y sus versiones en otros idiomas.

ts
import type { SitemapResolvedUrl } from "@meekojs/meeko/framework";

Source code src/modules/define-meeko-module.ts:216

Declaración #

ts
interface SitemapResolvedUrl {
	readonly pathname: string
	readonly lastmod?: string
	readonly changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'
	readonly priority?: number
	readonly alternates?: readonly SitemapAlternate[]
}

Example #

ts
import type { SitemapResolvedUrl } from "@meekojs/meeko/framework";

const url: SitemapResolvedUrl = {
  pathname: "/guide",
  alternates: [{ hreflang: "es", pathname: "/guide" }, { hreflang: "en", pathname: "/en/guide" }],
};

Propiedades #

pathname #

propiedad sólo lectura

readonly pathname: string

Ruta (pathname) de la URL; empieza por /.

lastmod #

propiedad sólo lectura opcional

readonly lastmod?: string

<lastmod> en formato W3C Datetime.

changefreq #

propiedad sólo lectura opcional

readonly changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'

<changefreq>.

priority #

propiedad sólo lectura opcional

readonly priority?: number

<priority>, de 0 a 1.

alternates #

propiedad sólo lectura opcional

readonly alternates?: readonly SitemapAlternate[]

Versiones de la URL en otros idiomas, incluida ella misma, como recomiendan los buscadores.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/modules/define-meeko-module.ts