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.

DocumentSeo

interfaz Since 1.3.0

Opciones de document.seo: cada etiqueta derivada se puede desactivar. Las que no se nombran quedan activas.

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

Source code src/shared/head.ts:285

Declaración #

ts
interface DocumentSeo {
	canonical?: boolean
	ogUrl?: boolean
	ogTitle?: boolean
	ogDescription?: boolean
	origin?: string
}

Example #

ts
// meeko.config.ts
import { defineMeekoConfig } from "@meekojs/meeko/framework";

export default defineMeekoConfig({
  site: "https://example.com",
  // canonical, og:url y og:title; sin og:description.
  document: { seo: { ogDescription: false } },
});

Propiedades #

canonical #

propiedad opcional

canonical?: boolean

<link rel="canonical"> con el origen y la ruta de la página.

ogUrl #

propiedad opcional

ogUrl?: boolean

<meta property="og:url"> con la misma URL.

ogTitle #

propiedad opcional

ogTitle?: boolean

<meta property="og:title"> con el título final de la página.

ogDescription #

propiedad opcional

ogDescription?: boolean

<meta property="og:description"> con la description de la página.

origin #

propiedad opcional

origin?: string

Origen absoluto de las URL (https://example.com). Por defecto, site de meeko.config.ts o MEEKO_PUBLIC_ORIGIN del entorno del build; sin ninguno, meeko build falla si canonical u ogUrl están activos. Un host propio que pasa DocumentOptions.config debe darlo aquí.

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/head.ts