Skip to content

Commit

Permalink
organising and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Hawksworth committed Jun 13, 2019
1 parent aadf10a commit 3f4e067
Show file tree
Hide file tree
Showing 14 changed files with 7,118 additions and 48 deletions.
13 changes: 7 additions & 6 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { DateTime } = require("luxon");

const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");


module.exports = function(config) {
Expand All @@ -11,11 +12,11 @@ module.exports = function(config) {

// Add some utility filters
config.addFilter("squash", require("./src/utils/filters/squash.js") );
config.addFilter("dateDisplay", (dateObj, format = "LLL d, y") => {
return DateTime.fromJSDate(dateObj, {
zone: "utc"
}).toFormat(format);
});
config.addFilter("dateDisplay", require("./src/utils/filters/date.js") );


// add support for syntax highlighting
config.addPlugin(syntaxHighlight);

// minify the html output
config.addTransform("htmlmin", require("./src/utils/minify-html.js"));
Expand Down
1 change: 1 addition & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[dev]
command = "yarn run dev"


[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
Expand Down
Loading

0 comments on commit 3f4e067

Please sign in to comment.