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.

HeadMeta

interfaz Since 1.2.0

Etiqueta <meta> de HeadInput. Se deduplica por key o, si falta, por name, property o httpEquiv: gana la entrada de más prioridad.

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

Source code src/shared/head.ts:19

Declaración #

ts
interface HeadMeta {
	name?: string
	property?: string
	httpEquiv?: string
	media?: string
	content: string
	key?: string
}

Example #

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

const image: HeadMeta = { property: "og:image", content: "https://example.com/og.png" };

Propiedades #

name #

propiedad opcional

name?: string

Atributo name, como description o robots.

property #

propiedad opcional

property?: string

Atributo property de Open Graph, como og:title.

httpEquiv #

propiedad opcional

httpEquiv?: string

Atributo http-equiv.

media #

propiedad opcional since 1.2.0

media?: string

Atributo media, como en theme-color. Forma parte de la deduplicación: dos theme-color con distinto media conviven.

content #

propiedad

content: string

Atributo content.

key #

propiedad opcional

key?: string

Clave de deduplicación explícita; no se escribe en el HTML.

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