Skip to content

Commit 777d645

Browse files
authored
Upgrade Eleventy and all packages (#153)
* Update @11ty * Update 11ty to v1; update all packages; migrate img caches * Fill in missing cached image gaps * Resolve avatar update issues; tweak others * Update GitHub Actions build file
1 parent 7ff7c1f commit 777d645

File tree

401 files changed

+10379
-3389
lines changed

Some content is hidden

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

401 files changed

+10379
-3389
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...

.github/workflows/eleventy_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
# Steps represent a sequence of tasks that will be executed as part of the job
1717
steps:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020

2121
- name: Setup Node.js environment
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v3
2323

2424
- name: Install packages
2525
run: npm ci

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"]
File renamed without changes.
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"]
File renamed without changes.

0 commit comments

Comments
 (0)