]> git.drewedgar.com - website.git/blob - .eleventy.js
FIX: Fixed layout for 404
[website.git] / .eleventy.js
1 import { feedPlugin } from "@11ty/eleventy-plugin-rss";
2 import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
3 import pluginNavigation from "@11ty/eleventy-navigation";
4 import Image from "@11ty/eleventy-img";
5 import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
6 import markdownIt from "markdown-it";
7
8 import path from "path";
9
10 export default function(eleventyConfig) {
11   eleventyConfig.addGlobalData(
12     'layout', 
13     './layouts/index.liquid' // Relative to `./src/_includes`
14   );
15
16   eleventyConfig
17     .addPassthroughCopy("./content/feed/pretty-atom-feed.xsl")
18     .addPassthroughCopy({ "src/images/favicon": "/" })
19     .addPassthroughCopy({ "src/videos": "/videos" });
20   
21
22
23   eleventyConfig.addPlugin(pluginSyntaxHighlight, {
24                 preAttributes: { tabindex: 0 }
25         });
26         eleventyConfig.addPlugin(pluginNavigation);
27
28   eleventyConfig.addPlugin(eleventyImageTransformPlugin);
29
30   let options = {
31     html: true,
32     breaks: true,
33     linkify: true
34   };
35   eleventyConfig.setLibrary("md", markdownIt(options));
36
37   return {
38     dir: {
39       input: "./src",
40       output: "./dist"
41     }
42   };
43 };