-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eleventy.js
46 lines (41 loc) · 1.4 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
35
36
37
38
39
40
41
42
43
44
45
46
const govukEleventyPlugin = require('@x-govuk/govuk-eleventy-plugin')
module.exports = function(eleventyConfig) {
eleventyConfig.setLiquidOptions({
dynamicPartials: false,
strictFilters: false,
});
return {
addPassthroughCopy: function (dir) {
eleventyConfig.addPassthroughCopy(dir)
},
};
}
module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy('assets')
eleventyConfig.addPassthroughCopy('open-source-presentation/*.png')
// Register the plugin
eleventyConfig.addPlugin(govukEleventyPlugin,{
fontFamily: 'arial, sans-serif',
header: {
organisationLogo: '',
organisationName: 'Cross Government Software Engineering Community',
},
footer: {
contentLicence: {
html: 'A community project. <a class="govuk-footer__link" href="https://github.com/uk-x-gov-software-community/uk-x-gov-software-community.github.io">GitHub source</a>.<br /> Thanks to <a href="https://x-govuk.github.io/govuk-eleventy-plugin/" class="govuk-link" >X-GOVUK projects</a> for the template'
},
copyright: {
text: '© Cross Government Software Engineering Community'
}
}
})
return {
dataTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
markdownTemplateEngine: 'njk',
dir: {
// Use layouts from the plugin
layouts: 'node_modules/@x-govuk/govuk-eleventy-plugin/layouts'
}
}
};