From 01e31ddbbd2b3fb207f11dd16bdc5dd8404d48c5 Mon Sep 17 00:00:00 2001 From: Jose Selesan Date: Mon, 21 Sep 2026 14:05:13 -0300 Subject: [PATCH] Mejorar SEO: schema JSON-LD, robots.txt, sitemap y meta tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Agregar JSON-LD (Organization, WebSite, SoftwareApplication y FAQPage) - Crear robots.txt y sitemap.xml con sitio de producción - Completar meta tags: robots, theme-color, og:image:type y twitter:url - Envolver preguntas del FAQ en h3 - Registrar filtro json para Nunjucks en Eleventy --- eleventy.config.js | 2 + src/_includes/layouts/base.njk | 7 ++ src/_includes/partials/faq.njk | 12 +-- src/_includes/partials/seo-schema.njk | 101 ++++++++++++++++++++++++++ src/robots.txt.njk | 7 ++ src/sitemap.xml.njk | 11 +++ 6 files changed, 134 insertions(+), 6 deletions(-) create mode 100644 src/_includes/partials/seo-schema.njk create mode 100644 src/robots.txt.njk create mode 100644 src/sitemap.xml.njk diff --git a/eleventy.config.js b/eleventy.config.js index 61369c4..c5ae887 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -13,6 +13,8 @@ export default function (eleventyConfig) { return new Intl.NumberFormat(locale).format(value); }); + eleventyConfig.addFilter("json", (value) => JSON.stringify(value)); + return { dir: { input: "src", diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 66146af..650e389 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -5,6 +5,9 @@ {{ title or site.name }} + + + @@ -17,6 +20,7 @@ + @@ -27,6 +31,9 @@ + + + {% include "partials/seo-schema.njk" %} \ No newline at end of file diff --git a/src/robots.txt.njk b/src/robots.txt.njk new file mode 100644 index 0000000..7b2c74b --- /dev/null +++ b/src/robots.txt.njk @@ -0,0 +1,7 @@ +--- +permalink: /robots.txt +--- +User-agent: * +Allow: / + +Sitemap: {{ site.url }}/sitemap.xml diff --git a/src/sitemap.xml.njk b/src/sitemap.xml.njk new file mode 100644 index 0000000..eaa1c85 --- /dev/null +++ b/src/sitemap.xml.njk @@ -0,0 +1,11 @@ +--- +permalink: /sitemap.xml +--- + + + + {{ site.url }}/ + monthly + 1.0 + + \ No newline at end of file