Compare commits
2 Commits
dbf4822dd8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
47c65ec82c
|
|||
|
059fbb7c41
|
@@ -8,4 +8,20 @@ module.exports = function(eleventyConfig){
|
||||
}, {debug: true})
|
||||
|
||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||
|
||||
eleventyConfig.addFilter(
|
||||
"debug",
|
||||
(content) =>
|
||||
`<pre>
|
||||
${require("node:util").inspect(content)}
|
||||
</pre>`
|
||||
);
|
||||
|
||||
eleventyConfig.addDataExtension("yml, yaml",
|
||||
contents => require('js-yaml').load(contents)
|
||||
)
|
||||
|
||||
if(process.env.NODE_ENV==="production"){
|
||||
eleventyConfig.addGlobalData('date', 'git Last Modified');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^2.0.1",
|
||||
"@picocss/pico": "^1.5.10"
|
||||
"@picocss/pico": "^1.5.10",
|
||||
"js-yaml": "^4.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -11,6 +11,9 @@ devDependencies:
|
||||
'@picocss/pico':
|
||||
specifier: ^1.5.10
|
||||
version: 1.5.10
|
||||
js-yaml:
|
||||
specifier: ^4.1.0
|
||||
version: 4.1.0
|
||||
|
||||
packages:
|
||||
|
||||
@@ -798,6 +801,13 @@ packages:
|
||||
esprima: 4.0.1
|
||||
dev: true
|
||||
|
||||
/js-yaml@4.1.0:
|
||||
resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
argparse: 2.0.1
|
||||
dev: true
|
||||
|
||||
/jstransformer@1.0.0:
|
||||
resolution: {integrity: sha512-C9YK3Rf8q6VAPDCCU9fnqo3mAfOH6vUGnMcP4AQAYIEpWtfGLpwOTmZ+igtdK5y+VvI2n3CyYSzy4Qh34eq24A==}
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user