Skip to content

Commit 34e6070

Browse files
committed
Update 11ty to v1; update all packages; migrate img caches
1 parent 7a254a3 commit 34e6070

File tree

156 files changed

+10095
-2943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+10095
-2943
lines changed

.eleventy.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ module.exports = (eleventyConfig) => {
5353
return addFileDates(posts);
5454
});
5555

56+
// FILTER: Convert page.date directly to 'YYYY/MM/DD' slug.
57+
eleventyConfig.addLiquidFilter('dateSlug', filter.dateSlug);
58+
5659
// FILTER: Reverse array without mutating original.
5760
eleventyConfig.addFilter('flip', filter.flip);
5861

@@ -80,6 +83,9 @@ module.exports = (eleventyConfig) => {
8083
// PLUGIN: RSS feed
8184
eleventyConfig.addPlugin(pluginRss);
8285

86+
// FILTER: Atom date format
87+
eleventyConfig.addLiquidFilter("dateToRfc3339", pluginRss.dateToRfc3339);
88+
8389
// TRANSFORM: minify HTML
8490
eleventyConfig.addTransform('htmlmin', (content, outputPath) => {
8591
if (typeof outputPath === 'string' && outputPath.endsWith('.html')) {
@@ -102,10 +108,10 @@ module.exports = (eleventyConfig) => {
102108
callbacks: {
103109
ready(err, bs) {
104110
bs.addMiddleware('*', (req, res) => {
105-
const content_404 = fs.readFileSync('_site/404.html');
111+
const content404 = fs.readFileSync('_site/404.html');
106112
// Provides the 404 content without redirect.
107113

108-
res.write(content_404);
114+
res.write(content404);
109115
// Add 404 http status code in request header.
110116
// res.writeHead(404, { "Content-Type": "text/html" });
111117
res.writeHead(404);

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"root": true,
23
"extends": "airbnb-base",
34
"rules": {
45
// Require spaces before comments...

CONTRIBUTING-POSTS.md

Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"000af99bcd417e9ec8dcff97db94e1":"1"},{"cachedAt":1668180403298,"type":"2"},"buffer"]
34.1 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"001aeb171e3f5406a7df4307ac04ca":"1"},{"cachedAt":1668180412424,"type":"2"},"buffer"]
46.1 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"004b799b783e5b7bac1d738c6415cc":"1"},{"cachedAt":1668180406588,"type":"2"},"buffer"]
35.3 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"0a807d572cfd641045bad77c10e289":"1"},{"cachedAt":1668180407944,"type":"2"},"buffer"]

0 commit comments

Comments
 (0)