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