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.

SitemapEntry

interfaz Since 1.7.0

Una URL de una ruta en sitemap.xml, que declara sitemapEntries en definePage: los parámetros de la ruta y, de forma opcional, los campos del protocolo sitemaps.org 0.9.

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

Source code src/shared/definitions/sitemap.ts:14

Declaración #

ts
interface SitemapEntry {
	readonly params?: Readonly<Record<string, string>>
	readonly lastmod?: Date | string
	readonly changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'
	readonly priority?: number
}

Example #

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

const entry: SitemapEntry = { params: { slug: "instalacion" }, lastmod: "2026-10-01", changefreq: "monthly", priority: 0.8 };

Propiedades #

params #

propiedad sólo lectura opcional

readonly params?: Readonly<Record<string, string>>

Parámetros de la ruta (los segmentos [slug]), como en prerenderEntries. Una ruta sin parámetros no los necesita.

lastmod #

propiedad sólo lectura opcional

readonly lastmod?: Date | string

Fecha de la última modificación (<lastmod>): un Date o un texto W3C Datetime, como "2026-10-01".

changefreq #

propiedad sólo lectura opcional

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

Frecuencia de cambio orientativa (<changefreq>).

priority #

propiedad sólo lectura opcional

readonly priority?: number

Prioridad relativa dentro del sitio (<priority>), de 0 a 1.

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/shared/definitions/sitemap.ts