-
Notifications
You must be signed in to change notification settings - Fork 9
/
eleventy.config.js
39 lines (36 loc) · 1.02 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
import govukEleventyPlugin from '@x-govuk/govuk-eleventy-plugin'
export default function (eleventyConfig) {
// Options to customise the appearance of your design history
// https://x-govuk.github.io/govuk-eleventy-plugin/options/
eleventyConfig.addPlugin(govukEleventyPlugin, {
stylesheets: [
'/styles/application.css'
],
headingPermalinks: true,
header: {
logotype: false,
productName: 'Design history',
search: {
indexPath: '/search.json',
sitemapPath: '/sitemap'
}
},
url:
process.env.GITHUB_ACTIONS &&
'https://x-govuk.github.io/govuk-design-history-template/'
})
// Passthrough
eleventyConfig.addPassthroughCopy({ './app/images': '.' })
// Config
return {
dataTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
markdownTemplateEngine: 'njk',
dir: {
input: 'app',
layouts: '_layouts',
includes: '_components'
},
pathPrefix: process.env.GITHUB_ACTIONS && '/govuk-design-history-template/'
}
}