forked from tchajed/personal-website-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
34 lines (30 loc) · 1.5 KB
/
.eleventy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const eleventySass = require("@grimlink/eleventy-plugin-sass");
const sass = require("sass");
module.exports = function(eleventyConfig) {
// set up Sass for compiling from *.scss to *.css
eleventyConfig.addPlugin(eleventySass, { sass });
// Include any files in assets/ directly in your website without modifying
// them. You can also use this for paper PDFs.
//
// See https://www.11ty.dev/docs/copy/
eleventyConfig.addPassthroughCopy("assets/**");
// You won't need this by default but if you're using a custom domain with
// GitHub Pages, following the instructions at
// https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages,
// you're supposed to add a CNAME file with your custom domain. You can add
// that to the root of your repository and this will set it up correctly.
eleventyConfig.addPassthroughCopy("CNAME");
return {
// Your website might be hosted not at a root domain like
// tchajed.github.io but a path like www.mit.edu/~tchajed (or
// tchajed.github.com/personal-website-demo, like this setup is). This
// pathPrefix is used by 11ty's url filter - see
// https://www.11ty.dev/docs/filters/url/ for where this is useful. It's
// included here mainly so you know how to change it if you need to.
pathPrefix: "/personal-website-demo",
dir: {
includes: "_templates",
output: "_site",
},
};
};