-
Notifications
You must be signed in to change notification settings - Fork 2
/
eleventy.config.js
45 lines (42 loc) · 1.39 KB
/
eleventy.config.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
import govukEleventyPlugin from "@x-govuk/govuk-eleventy-plugin";
export default function (eleventyConfig) {
// Register the plugin
eleventyConfig.addPlugin(govukEleventyPlugin, {
icons: {
mask: "https://raw.githubusercontent.com/x-govuk/logo/main/images/x-govuk-mask-icon.svg?raw=true",
shortcut:
"https://raw.githubusercontent.com/x-govuk/logo/main/images/x-govuk-favicon.ico",
touch:
"https://raw.githubusercontent.com/x-govuk/logo/main/images/x-govuk-apple-touch-icon.png",
},
url: process.env.GITHUB_ACTIONS
? "https://x-govuk.github.io/govuk-rspec-helpers/"
: "/",
header: {
logotype: "x-govuk",
},
titleSuffix: "X-GOVUK",
footer: {
contentLicence: {
html: 'Licensed under the <a class="govuk-footer__link" href="https://github.com/x-govuk/govuk-prototype-components/blob/main/LICENSE.txt">MIT Licence</a>, except where otherwise stated',
},
copyright: {
text: "© X-GOVUK",
},
},
});
// Passthrough
eleventyConfig.addPassthroughCopy("./assets");
return {
dataTemplateEngine: "njk",
htmlTemplateEngine: "njk",
markdownTemplateEngine: "njk",
dir: {
// Use layouts from the plugin
layouts: "node_modules/@x-govuk/govuk-eleventy-plugin/layouts",
},
pathPrefix: process.env.GITHUB_ACTIONS
? "/govuk-services-frontend-stats/"
: "/",
};
}