Merge branch 'main' of https://github.com/madrilene/eleventy-excellent into main
This commit is contained in:
commit
209b144e51
5 changed files with 30 additions and 3 deletions
|
|
@ -36,6 +36,8 @@ const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
|
|||
const {slugifyString} = require('./config/utils');
|
||||
const {escape} = require('lodash');
|
||||
const pluginRss = require('@11ty/eleventy-plugin-rss');
|
||||
const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language");
|
||||
|
||||
|
||||
module.exports = eleventyConfig => {
|
||||
// Tell 11ty to use the .eleventyignore and ignore our .gitignore file
|
||||
|
|
@ -85,6 +87,7 @@ module.exports = eleventyConfig => {
|
|||
eleventyConfig.addPlugin(syntaxHighlight);
|
||||
eleventyConfig.setLibrary('md', markdownLib);
|
||||
eleventyConfig.addPlugin(pluginRss);
|
||||
eleventyConfig.addPlugin(inclusiveLangPlugin);
|
||||
|
||||
// --------------------- Passthrough File Copy -----------------------
|
||||
|
||||
|
|
|
|||
23
package-lock.json
generated
23
package-lock.json
generated
|
|
@ -16,6 +16,7 @@
|
|||
"tailwindcss": "^3.0.23"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
|
||||
"@11ty/eleventy-plugin-rss": "^1.2.0",
|
||||
"@netlify/plugin-a11y": "^1.0.0-beta.1",
|
||||
"@toycode/markdown-it-class": "^1.2.4",
|
||||
|
|
@ -178,6 +179,19 @@
|
|||
"url": "https://opencollective.com/11ty"
|
||||
}
|
||||
},
|
||||
"node_modules/@11ty/eleventy-plugin-inclusive-language": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-inclusive-language/-/eleventy-plugin-inclusive-language-1.0.3.tgz",
|
||||
"integrity": "sha512-hQ+kD04aPphK2VYZZ3zqpOSwtvoFxLxxmi+5SVTvlqeQlWQ0SYA57Dg3W0Nj2LdshlYf6gwdGQq34O/MlyolYw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/11ty"
|
||||
}
|
||||
},
|
||||
"node_modules/@11ty/eleventy-plugin-rss": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-rss/-/eleventy-plugin-rss-1.2.0.tgz",
|
||||
|
|
@ -7324,6 +7338,15 @@
|
|||
"sharp": "^0.30.3"
|
||||
}
|
||||
},
|
||||
"@11ty/eleventy-plugin-inclusive-language": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-inclusive-language/-/eleventy-plugin-inclusive-language-1.0.3.tgz",
|
||||
"integrity": "sha512-hQ+kD04aPphK2VYZZ3zqpOSwtvoFxLxxmi+5SVTvlqeQlWQ0SYA57Dg3W0Nj2LdshlYf6gwdGQq34O/MlyolYw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^4.1.0"
|
||||
}
|
||||
},
|
||||
"@11ty/eleventy-plugin-rss": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-rss/-/eleventy-plugin-rss-1.2.0.tgz",
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
"tailwindcss": "^3.0.23"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
|
||||
"@11ty/eleventy-plugin-rss": "^1.2.0",
|
||||
"@netlify/plugin-a11y": "^1.0.0-beta.1",
|
||||
"@toycode/markdown-it-class": "^1.2.4",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: 'Post with 301 redirects'
|
||||
description: 'A 301 is used when a page has permanently changed location. Informing about this change is indispensable if you want to keep a positioning. Aleksandr Hovhannisyan came up with an easy solution for Eleventy and Netlify.'
|
||||
description: 'A 301 is used when a page has permanently changed location. Informing about this change is indispensable if you want to keep a positioning. Aleksandr Hovhannisyan came up with an elegant solution for Eleventy and Netlify.'
|
||||
date: 2022-08-28
|
||||
---
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ URLs usually change over time, as you use another CMS or optimizye your file str
|
|||
A 301 is used when a page has permanently changed location.
|
||||
Informing about this change is indispensable if you want to keep your incoming links working, be it from organic Google search or other pages that have linked to your content.
|
||||
|
||||
Aleksandr Hovhannisyan came up with an [easy solution for Eleventy and Netlify](https://www.aleksandrhovhannisyan.com/blog/eleventy-netlify-redirects/). To directly cover several possible previous routes it is created as an array. You can find the loop in `_redirects.njk`.
|
||||
Aleksandr Hovhannisyan came up with an [elegant solution for Eleventy and Netlify](https://www.aleksandrhovhannisyan.com/blog/eleventy-netlify-redirects/). To directly cover several possible previous routes it is created as an array. You can find the loop in `_redirects.njk`.
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ _This is italic text_
|
|||
|
||||
- Create a list by starting a line with `+`, `-`, or `*`
|
||||
- Sub-lists are made by indenting 2 spaces:
|
||||
- Very easy!
|
||||
- Very simple!
|
||||
|
||||
### Ordered lists
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue