diff --git a/eleventy.config.js b/eleventy.config.js index 6d89787..bc4d90f 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,4 +1,5 @@ const pluginRss = require("@11ty/eleventy-plugin-rss"); +const pluginNoRobots = require("eleventy-plugin-no-robots"); const { catalogueByType, @@ -28,6 +29,7 @@ module.exports = (eleventyConfig) => { // --------------------- Plugins --------------------- eleventyConfig.addPlugin(pluginRss); + eleventyConfig.addPlugin(pluginNoRobots); // --------------------- Custom Collections ----------------------- eleventyConfig.addCollection("catalogueByType", catalogueByType); diff --git a/package-lock.json b/package-lock.json index 60ffef6..93ac88c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "cssnano": "^6.0.3", "dayjs": "^1.11.10", "dotenv": "^16.4.5", + "eleventy-plugin-no-robots": "^1.0.1", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.1.3", @@ -1879,6 +1880,12 @@ "integrity": "sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==", "dev": true }, + "node_modules/eleventy-plugin-no-robots": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eleventy-plugin-no-robots/-/eleventy-plugin-no-robots-1.0.1.tgz", + "integrity": "sha512-jmX2Kx+ZRMPHIFW41FeVd/GPiDXMkVYXZbX/xN6C0R47uL1Pl9+0m3+sg2hMpgyRL9WRbLN/SJMz1+MZIa6aXg==", + "dev": true + }, "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", @@ -6983,6 +6990,12 @@ "integrity": "sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==", "dev": true }, + "eleventy-plugin-no-robots": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eleventy-plugin-no-robots/-/eleventy-plugin-no-robots-1.0.1.tgz", + "integrity": "sha512-jmX2Kx+ZRMPHIFW41FeVd/GPiDXMkVYXZbX/xN6C0R47uL1Pl9+0m3+sg2hMpgyRL9WRbLN/SJMz1+MZIa6aXg==", + "dev": true + }, "encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", diff --git a/package.json b/package.json index 5458cff..3fb5a38 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "cssnano": "^6.0.3", "dayjs": "^1.11.10", "dotenv": "^16.4.5", + "eleventy-plugin-no-robots": "^1.0.1", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.1.3", diff --git a/src/_includes/layouts/base.html b/src/_includes/layouts/base.html index d8a5bfa..fae8088 100644 --- a/src/_includes/layouts/base.html +++ b/src/_includes/layouts/base.html @@ -23,6 +23,7 @@ {% endif %} + {% noRobots %} {% include "partials/header.html" %}
{{ content | safe }} diff --git a/src/pages/changelog.md b/src/pages/changelog.md index 614103c..c7c12c4 100644 --- a/src/pages/changelog.md +++ b/src/pages/changelog.md @@ -10,6 +10,10 @@ All the changes that are fit to read! If preferred, the [commit log is available here][commits]. +## July 3rd 2024 + +- Added the [`eleventy-plugin-no-robots`](https://github.com/wkillerud/eleventy-plugin-no-robots) plugin. + ## June 22nd 2024 - Added style for `` elements.