Skip to content

Commit

Permalink
Merge branch 'enwound-2023'
Browse files Browse the repository at this point in the history
  • Loading branch information
chigby committed Dec 31, 2023
2 parents 403e1ba + 02b2309 commit 88d291e
Show file tree
Hide file tree
Showing 55 changed files with 3,048 additions and 105 deletions.
17 changes: 16 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const { minify } = require('terser');
const CleanCSS = require("clean-css");
const JSON5 = require('json5');
const pluginRss = require("@11ty/eleventy-plugin-rss");

const configUtils = require('./src/plugins/utils');
const typeUtils = require('./src/plugins/type');

module.exports = function(eleventyConfig) { // Set custom directories for input, output, includes, and data
eleventyConfig.addNunjucksAsyncFilter("jsmin", async function (
Expand All @@ -19,6 +24,14 @@ module.exports = function(eleventyConfig) { // Set custom directories for input
return new CleanCSS({}).minify(code).styles;
});

// plugins
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(configUtils);
eleventyConfig.addPlugin(typeUtils);

// configure json5 support for data files
eleventyConfig.addDataExtension('json5', JSON5.parse);

// separate projects included fully
eleventyConfig.addPassthroughCopy("src/darken");
eleventyConfig.addPassthroughCopy("src/offsetCipher");
Expand All @@ -30,12 +43,14 @@ module.exports = function(eleventyConfig) { // Set custom directories for input
eleventyConfig.addPassthroughCopy("src/fonts");
eleventyConfig.addPassthroughCopy("src/img");
eleventyConfig.addPassthroughCopy("src/vid");
eleventyConfig.addPassthroughCopy("src/js");
eleventyConfig.addPassthroughCopy("src/**/*.txt");
eleventyConfig.addPassthroughCopy("src/favicon.ico");
eleventyConfig.addPassthroughCopy("src/CNAME");
return {
markdownTemplateEngine: 'njk',
templateFormats: [
"njk",
"md"
],
dir: {
input: "src",
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.10.0
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
chigby.org
chigby.org
Loading

0 comments on commit 88d291e

Please sign in to comment.