fix: chemin CSS en absolu

pull/1/head
Jalil Arfaoui 2022-06-27 02:21:50 +02:00
parent f7cf7438b2
commit 7d86a3c674
3 changed files with 29 additions and 6 deletions

View File

@ -1,12 +1,15 @@
const { DateTime } = require("luxon"); const { DateTime } = require("luxon");
const pluginNavigation = require("@11ty/eleventy-navigation"); const pluginNavigation = require("@11ty/eleventy-navigation");
const relativeUrl = require("eleventy-filter-relative-url");
module.exports = function(eleventyConfig) { module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginNavigation); eleventyConfig.addPlugin(pluginNavigation);
eleventyConfig.addPassthroughCopy("css"); eleventyConfig.addPassthroughCopy("css");
eleventyConfig.addFilter('url', relativeUrl);
eleventyConfig.addFilter("readableDate", dateObj => { eleventyConfig.addFilter("readableDate", dateObj => {
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).setLocale("fr").toFormat("dd LLL yyyy"); return DateTime.fromJSDate(dateObj, {zone: 'utc'}).setLocale("fr").toFormat("dd LLL yyyy");
}); });

29
package-lock.json generated
View File

@ -8,11 +8,10 @@
"name": "nous-toustes", "name": "nous-toustes",
"version": "0.0.1", "version": "0.0.1",
"license": "MIT", "license": "MIT",
"dependencies": {
"@11ty/eleventy-navigation": "^0.3.3"
},
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^1.0.1" "@11ty/eleventy": "^1.0.1",
"@11ty/eleventy-navigation": "^0.3.3",
"eleventy-filter-relative-url": "^0.2.1"
} }
}, },
"node_modules/@11ty/dependency-tree": { "node_modules/@11ty/dependency-tree": {
@ -77,6 +76,7 @@
"version": "0.3.3", "version": "0.3.3",
"resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-0.3.3.tgz", "resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-0.3.3.tgz",
"integrity": "sha512-O5C/NbDeTBnHQvDYZDr0Va6a7mEzifPUL1XRiqyKIAQqXZJsX/2K13PFLhX7t6kQRT1w6D0TSQyiT8skXbgWKA==", "integrity": "sha512-O5C/NbDeTBnHQvDYZDr0Va6a7mEzifPUL1XRiqyKIAQqXZJsX/2K13PFLhX7t6kQRT1w6D0TSQyiT8skXbgWKA==",
"dev": true,
"dependencies": { "dependencies": {
"dependency-graph": "^0.11.0" "dependency-graph": "^0.11.0"
}, },
@ -833,6 +833,7 @@
"version": "0.11.0", "version": "0.11.0",
"resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz",
"integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==",
"dev": true,
"engines": { "engines": {
"node": ">= 0.6.0" "node": ">= 0.6.0"
} }
@ -942,6 +943,15 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/eleventy-filter-relative-url": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/eleventy-filter-relative-url/-/eleventy-filter-relative-url-0.2.1.tgz",
"integrity": "sha512-WPYsDI3J6KrrSTGORtwKbSK2fIKvezphQtMfMNx7qQXvfC4cb2CIembdrbS0OKcRkwZmO4ajS6S7jHUft1ec2A==",
"dev": true,
"peerDependencies": {
"@11ty/eleventy": ">= 0.12.0"
}
},
"node_modules/emoji-regex": { "node_modules/emoji-regex": {
"version": "8.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
@ -3522,6 +3532,7 @@
"version": "0.3.3", "version": "0.3.3",
"resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-0.3.3.tgz", "resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-0.3.3.tgz",
"integrity": "sha512-O5C/NbDeTBnHQvDYZDr0Va6a7mEzifPUL1XRiqyKIAQqXZJsX/2K13PFLhX7t6kQRT1w6D0TSQyiT8skXbgWKA==", "integrity": "sha512-O5C/NbDeTBnHQvDYZDr0Va6a7mEzifPUL1XRiqyKIAQqXZJsX/2K13PFLhX7t6kQRT1w6D0TSQyiT8skXbgWKA==",
"dev": true,
"requires": { "requires": {
"dependency-graph": "^0.11.0" "dependency-graph": "^0.11.0"
} }
@ -4118,7 +4129,8 @@
"dependency-graph": { "dependency-graph": {
"version": "0.11.0", "version": "0.11.0",
"resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz",
"integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==",
"dev": true
}, },
"destroy": { "destroy": {
"version": "1.0.4", "version": "1.0.4",
@ -4203,6 +4215,13 @@
"jake": "^10.8.5" "jake": "^10.8.5"
} }
}, },
"eleventy-filter-relative-url": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/eleventy-filter-relative-url/-/eleventy-filter-relative-url-0.2.1.tgz",
"integrity": "sha512-WPYsDI3J6KrrSTGORtwKbSK2fIKvezphQtMfMNx7qQXvfC4cb2CIembdrbS0OKcRkwZmO4ajS6S7jHUft1ec2A==",
"dev": true,
"requires": {}
},
"emoji-regex": { "emoji-regex": {
"version": "8.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",

View File

@ -12,6 +12,7 @@
}, },
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^1.0.1", "@11ty/eleventy": "^1.0.1",
"@11ty/eleventy-navigation": "^0.3.3" "@11ty/eleventy-navigation": "^0.3.3",
"eleventy-filter-relative-url": "^0.2.1"
} }
} }