-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from andrewpucci/17-migrate-to-11ty
17 migrate to 11ty
- Loading branch information
Showing
98 changed files
with
9,599 additions
and
2,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
>= 1% | ||
last 1 major version | ||
not dead | ||
Chrome >= 45 | ||
Firefox >= 38 | ||
Edge >= 12 | ||
Explorer 11 | ||
iOS >= 9 | ||
Safari >= 9 | ||
Android >= 4.4 | ||
Opera >= 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const cacheBuster = require('@mightyplow/eleventy-plugin-cache-buster'); | ||
|
||
module.exports = function(config) { | ||
// Layout aliases can make templates more portable | ||
config.addLayoutAlias('default', 'layouts/base.njk'); | ||
|
||
// Add some utility filters | ||
config.addFilter("squash", require("./src/filters/squash.js") ); | ||
|
||
// minify the html output | ||
config.addTransform("htmlmin", require("./src/utils/minify-html.js").default); | ||
|
||
// fingerprint css and js files | ||
config.addPlugin(cacheBuster({ | ||
outputDirectory: 'dist', | ||
createResourceHash(outputDirectoy, url, target) { | ||
return Date.now(); | ||
} | ||
})); | ||
|
||
// pass some assets right through | ||
config.addPassthroughCopy("./src/site/assets"); | ||
config.addPassthroughCopy("./src/site/humans.txt"); | ||
config.addPassthroughCopy("./src/site/robots.txt"); | ||
|
||
return { | ||
dir: { | ||
input: "src/site", | ||
output: "dist", | ||
data: '_data' | ||
}, | ||
templateFormats : ["njk", "md"], | ||
htmlTemplateEngine : "njk", | ||
markdownTemplateEngine : "njk", | ||
passthroughFileCopy: true, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ROOT_URL='https://www.nwhl.zone/' | ||
GTMID='GTM-XXXXXXX' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:security/recommended', | ||
], | ||
env: { | ||
browser: true, | ||
jquery: true, | ||
node: true, | ||
}, | ||
plugins: [ | ||
'security', | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
node_modules | ||
vendor | ||
_site | ||
.bundle/config | ||
.jekyll-metadata | ||
.sass-cache | ||
dist | ||
.env | ||
yarn-error.log | ||
src/site/assets/js/* | ||
src/site/assets/css/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/carbon |
Oops, something went wrong.