Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all dependencies (including 11ty 2.0) #33

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const pluginNavigation = require('@11ty/eleventy-navigation');
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
const yaml = require("js-yaml");
// Note here because package.json doesn't support comments: we specify a
// dependency on glob@8 to work around a bug in eleventy-plugin-svg-sprite.
// See https://github.com/patrickxchong/eleventy-plugin-svg-sprite/issues/11
// and https://github.com/11ta/11ta-template/pull/52.
const svgSprite = require("eleventy-plugin-svg-sprite");
const { imageShortcode, imageWithClassShortcode } = require('./config');

Expand Down Expand Up @@ -101,24 +105,6 @@ module.exports = function (config) {
});
config.setLibrary('md', markdownLibrary);

// Override Browsersync defaults (used only with --serve)
config.setBrowserSyncConfig({
callbacks: {
ready: function (err, browserSync) {
const content_404 = fs.readFileSync('_site/404/index.html');

browserSync.addMiddleware('*', (req, res) => {
// Provides the 404 content without redirect.
res.writeHead(404, { 'Content-Type': 'text/html; charset=UTF-8' });
res.write(content_404);
res.end();
});
},
},
ui: false,
ghostMode: false,
});

// Set image shortcodes
config.addLiquidShortcode('image', imageShortcode);
config.addLiquidShortcode('image_with_class', imageWithClassShortcode);
Expand Down
1 change: 1 addition & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: layouts/wide
permalink: 404.html
---

<div class="grid-row grid-gap">
Expand Down
12 changes: 6 additions & 6 deletions _data/assetPaths.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"admin.js": "/assets/js/admin-44W43542.js",
"admin.map": "/assets/js/admin-44W43542.js.map",
"app.js": "/assets/js/app-XWR645AF.js",
"app.map": "/assets/js/app-XWR645AF.js.map",
"admin.js": "/assets/js/admin-C7ZJSNAA.js",
"admin.map": "/assets/js/admin-C7ZJSNAA.js.map",
"app.js": "/assets/js/app-VSQLU2RL.js",
"app.map": "/assets/js/app-VSQLU2RL.js.map",
"uswds.js": "/assets/js/uswds-init.js",
"styles.css": "/assets/styles/styles-KHOXEEPC.css",
"styles.map": "/assets/styles/styles-KHOXEEPC.css.map"
"styles.css": "/assets/styles/styles-3SXEC6HG.css",
"styles.map": "/assets/styles/styles-3SXEC6HG.css.map"
}
Loading