add image support. styling tweaks
This commit is contained in:
parent
04794e0842
commit
363014ae07
11 changed files with 826 additions and 50 deletions
|
@ -1,7 +1,9 @@
|
|||
import sass from "sass";
|
||||
import * as sass from "sass";
|
||||
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
export default async function (eleventyConfig) {
|
||||
// Filters
|
||||
eleventyConfig.addFilter("dateLocale", function (value) {
|
||||
return DateTime.fromISO(new Date(value).toISOString()).toLocaleString({
|
||||
year: 'numeric',
|
||||
|
@ -23,6 +25,9 @@ export default async function (eleventyConfig) {
|
|||
};
|
||||
}
|
||||
});
|
||||
|
||||
//Images
|
||||
eleventyConfig.addPlugin(eleventyImageTransformPlugin);
|
||||
}
|
||||
|
||||
export const config = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue