feat: add eleventy-plugin-no-robots
This commit is contained in:
parent
a9c08ff496
commit
80086b7c39
5 changed files with 21 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
const pluginRss = require("@11ty/eleventy-plugin-rss");
|
const pluginRss = require("@11ty/eleventy-plugin-rss");
|
||||||
|
const pluginNoRobots = require("eleventy-plugin-no-robots");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
catalogueByType,
|
catalogueByType,
|
||||||
|
@ -28,6 +29,7 @@ module.exports = (eleventyConfig) => {
|
||||||
|
|
||||||
// --------------------- Plugins ---------------------
|
// --------------------- Plugins ---------------------
|
||||||
eleventyConfig.addPlugin(pluginRss);
|
eleventyConfig.addPlugin(pluginRss);
|
||||||
|
eleventyConfig.addPlugin(pluginNoRobots);
|
||||||
|
|
||||||
// --------------------- Custom Collections -----------------------
|
// --------------------- Custom Collections -----------------------
|
||||||
eleventyConfig.addCollection("catalogueByType", catalogueByType);
|
eleventyConfig.addCollection("catalogueByType", catalogueByType);
|
||||||
|
|
13
package-lock.json
generated
13
package-lock.json
generated
|
@ -19,6 +19,7 @@
|
||||||
"cssnano": "^6.0.3",
|
"cssnano": "^6.0.3",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
|
"eleventy-plugin-no-robots": "^1.0.1",
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.56.0",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-prettier": "5.1.3",
|
"eslint-plugin-prettier": "5.1.3",
|
||||||
|
@ -1879,6 +1880,12 @@
|
||||||
"integrity": "sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==",
|
"integrity": "sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==",
|
||||||
"dev": true
|
"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": {
|
"node_modules/encodeurl": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||||
|
@ -6983,6 +6990,12 @@
|
||||||
"integrity": "sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==",
|
"integrity": "sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ==",
|
||||||
"dev": true
|
"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": {
|
"encodeurl": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"cssnano": "^6.0.3",
|
"cssnano": "^6.0.3",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
|
"eleventy-plugin-no-robots": "^1.0.1",
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.56.0",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-prettier": "5.1.3",
|
"eslint-plugin-prettier": "5.1.3",
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body class="[ flex-col ]">
|
<body class="[ flex-col ]">
|
||||||
|
{% noRobots %}
|
||||||
{% include "partials/header.html" %}
|
{% include "partials/header.html" %}
|
||||||
<main id="main" class="[ flow flex-1 wrapper ]" tabindex="-1">
|
<main id="main" class="[ flow flex-1 wrapper ]" tabindex="-1">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
|
|
@ -10,6 +10,10 @@ All the changes that are fit to read!
|
||||||
|
|
||||||
If preferred, the [commit log is available here][commits].
|
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
|
## June 22nd 2024
|
||||||
|
|
||||||
- Added style for `<table>` elements.
|
- Added style for `<table>` elements.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue