diff options
author | Paul Valladares | 2023-08-29 09:17:17 -0600 |
---|---|---|
committer | GitHub | 2023-08-29 17:17:17 +0200 |
commit | 1d18c05b1af09b87559d8310761592b6cae3a1b8 (patch) | |
tree | 9bfca0551f2223efb85cf901db29613213ae2e62 | |
parent | fab013e38708ef9ed83068f9a4cf86024ac26143 (diff) | |
download | IT.starlight-1d18c05b1af09b87559d8310761592b6cae3a1b8.tar.gz IT.starlight-1d18c05b1af09b87559d8310761592b6cae3a1b8.tar.bz2 IT.starlight-1d18c05b1af09b87559d8310761592b6cae3a1b8.zip |
i18n(es): Update `index.mdx` & `frontmatter.mdx` (#605)
Co-authored-by: Waxer59 <78129249+Waxer59@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r-- | docs/src/content/docs/es/index.mdx | 9 | ||||
-rw-r--r-- | docs/src/content/docs/es/reference/frontmatter.md | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/docs/src/content/docs/es/index.mdx b/docs/src/content/docs/es/index.mdx index 5e202cdd..056e7b30 100644 --- a/docs/src/content/docs/es/index.mdx +++ b/docs/src/content/docs/es/index.mdx @@ -2,6 +2,15 @@ title: Starlight 🌟 Construye sitios de documentación con Astro description: Starlight te ayuda a construir sitios web de documentación hermosos y de alto rendimiento utilizando Astro. template: splash +banner: + content: | + <span class="ph-banner"> + <span class="ph-houston"><img src="/ph-houston.svg" alt="" width="72" height="72"/></span> + <span class="ph-text"> + <strong>Bienvenidos Product Hunters 👋</strong> + <a href="https://www.producthunt.com/posts/starlight-by-astro">¡Estamos en vivo ahora!</a> + </span> + </span> hero: title: Haz que tus docs brillen con Starlight tagline: Todo lo que necesitas para construir un sitio web de documentación estelar. Rápido, accesible y fácil de usar. diff --git a/docs/src/content/docs/es/reference/frontmatter.md b/docs/src/content/docs/es/reference/frontmatter.md index 182174fd..b7388e97 100644 --- a/docs/src/content/docs/es/reference/frontmatter.md +++ b/docs/src/content/docs/es/reference/frontmatter.md @@ -134,6 +134,25 @@ interface HeroConfig { } ``` +### `banner` + +**tipo:** `{ content: string }` + +Muestra un banner de anuncio en la parte superior de esta página. + +El valor `content` puede incluir HTML para enlaces u otro contenido. +Por ejemplo, esta página muestra un banner que incluye un enlace a `example.com`. + +```md +--- +title: Página con un banner +banner: + content: | + ¡Acabamos de lanzar algo genial! + <a href="https://example.com">Checalo</a> +--- +``` + ### `lastUpdated` **type:** `Date | boolean` |