diff --git a/docs/_layouts/search-index.njk b/docs/_layouts/search-index.njk new file mode 100644 index 0000000..d0dc0b2 --- /dev/null +++ b/docs/_layouts/search-index.njk @@ -0,0 +1 @@ +{% extends "layouts/search-index.njk" %} diff --git a/docs/_layouts/sitemap.njk b/docs/_layouts/sitemap.njk new file mode 100644 index 0000000..5b0caf3 --- /dev/null +++ b/docs/_layouts/sitemap.njk @@ -0,0 +1 @@ +{% extends "layouts/sitemap.njk" %} diff --git a/docs/examples/autocomplete.njk b/docs/examples/autocomplete.njk index 76ff78e..fb6b07e 100644 --- a/docs/examples/autocomplete.njk +++ b/docs/examples/autocomplete.njk @@ -1,7 +1,7 @@ --- -title: Autocomplete example -layout: example.njk eleventyExcludeFromCollections: true +layout: example.njk +title: Autocomplete example --- {% from "x-govuk/components/autocomplete/macro.njk" import xGovukAutocomplete %} diff --git a/docs/examples/masthead.njk b/docs/examples/masthead.njk index ef9241f..88bb916 100644 --- a/docs/examples/masthead.njk +++ b/docs/examples/masthead.njk @@ -1,7 +1,7 @@ --- -title: Masthead example -layout: example.njk eleventyExcludeFromCollections: true +layout: example.njk +title: Masthead example --- {% from "x-govuk/components/masthead/macro.njk" import xGovukMasthead %} diff --git a/docs/examples/primary-navigation.njk b/docs/examples/primary-navigation.njk index 7289f62..b6dbef2 100644 --- a/docs/examples/primary-navigation.njk +++ b/docs/examples/primary-navigation.njk @@ -1,7 +1,7 @@ --- -title: Primary navigation -layout: example.njk eleventyExcludeFromCollections: true +layout: example.njk +title: Primary navigation --- {% from "x-govuk/components/primary-navigation/macro.njk" import xGovukPrimaryNavigation %} diff --git a/docs/examples/related-navigation.njk b/docs/examples/related-navigation.njk index 3ee8b69..a7dcc45 100644 --- a/docs/examples/related-navigation.njk +++ b/docs/examples/related-navigation.njk @@ -1,7 +1,7 @@ --- -title: Related navigation example -layout: example.njk eleventyExcludeFromCollections: true +layout: example.njk +title: Related navigation example --- {% from "x-govuk/components/related-navigation/macro.njk" import xGovukRelatedNavigation %} diff --git a/docs/examples/sub-navigation.njk b/docs/examples/sub-navigation.njk index 01e9a49..904a173 100644 --- a/docs/examples/sub-navigation.njk +++ b/docs/examples/sub-navigation.njk @@ -1,7 +1,7 @@ --- -title: Sub navigation example -layout: example.njk eleventyExcludeFromCollections: true +layout: example.njk +title: Sub navigation example --- {% from "x-govuk/components/sub-navigation/macro.njk" import xGovukSubNavigation %} diff --git a/docs/search.json.njk b/docs/search.json.njk new file mode 100644 index 0000000..5885535 --- /dev/null +++ b/docs/search.json.njk @@ -0,0 +1,5 @@ +--- +eleventyExcludeFromCollections: true +layout: search-index +permalink: /search.json +--- diff --git a/docs/sitemap.md b/docs/sitemap.md new file mode 100644 index 0000000..a21e0a7 --- /dev/null +++ b/docs/sitemap.md @@ -0,0 +1,5 @@ +--- +eleventyExcludeFromCollections: true +layout: sitemap +title: Sitemap +--- diff --git a/eleventy.config.js b/eleventy.config.js index cb07110..fba39fe 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -27,7 +27,11 @@ module.exports = function (eleventyConfig) { header: { organisationLogo: 'x-govuk', organisationName: 'X-GOVUK', - productName: 'Prototype Components' + productName: 'Prototype Components', + search: { + indexPath: '/search.json', + sitemapPath: '/sitemap' + } }, footer: { contentLicence: {