forked from nhsconnect/nhslogin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eleventy.js
More file actions
27 lines (26 loc) · 753 Bytes
/
Copy path.eleventy.js
File metadata and controls
27 lines (26 loc) · 753 Bytes
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
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
module.exports = function(config) {
// Layout aliases can make templates more portable
config.addLayoutAlias('default', 'layouts/base.njk');
// add support for syntax highlighting
config.addPlugin(syntaxHighlight);
// pass some assets right through
config.addPassthroughCopy("./src/images");
config.addPassthroughCopy("./src/css");
config.addPassthroughCopy("./src/js");
return {
dir: {
input: "src/",
output: "_site",
data: '_data/'
},
templateFormats : [
"njk",
"md",
"11ty.js"],
htmlTemplateEngine : "njk",
markdownTemplateEngine : "njk",
passthroughFileCopy: true,
pathPrefix:"/nhslogin/"
};
};