Skip to content

Commit

Permalink
Document navigation option
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 23, 2023
1 parent 0fa1b09 commit 2fe4c32
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ module.exports = function(eleventyConfig) {
}
```

## Plugin options

| Name | Type | Description |
| :-------------------- | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **icons.mask** | string | Override default GOV.UK SVG mask icon. |
Expand All @@ -39,9 +37,10 @@ module.exports = function(eleventyConfig) {
| **stylesheets** | Array | Additional stylesheets to load after application styles. |
| **url** | string | The URL of your website. Optional, but required to have valid canonical URLs in Open Graph meta data. |
| **header** | object | See [header](#options-for-header). |
| **navigation** | object | See [navigation](#options-for-navigation). |
| **footer** | object | See [footer](#options-for-footer). |

### Options for header
## Options for header

In addition to the [options available for the header component](https://design-system.service.gov.uk/components/header/), the following options can also be set:

Expand All @@ -64,7 +63,22 @@ Options for site search. See [adding a site search](../search).
| **indexPath** | string | Path to search index file. If set, a search input will be shown in the header. |
| **sitemapPath** | string | Path to sitemap page. |

### Options for footer
## Options for navigation

| Name | Type | Description |
| :---------------------- | :----- | :------------------------------------------------------------------------------------------------------------------------- |
| **visuallyHiddenTitle** | string | Hidden title for header navigation. |
| **items** | Array | An array of navigation links to shown within the header navigation. See [navigation.items](#options-for-navigation.items). |

### Options for navigation.items

| Name | Type | Description |
| :---------- | :----- | :----------------------------------------------------------------- |
| **text** | string | **Required**. Text of the navigation link. |
| **href** | array | **Required**. The value of the navigation link’s `href` attribute. |
| **classes** | string | Classes to add to the navigation item. |

## Options for footer

In addition to the [options available for the footer component](https://design-system.service.gov.uk/components/footer/), the following options can also be set:

Expand Down

0 comments on commit 2fe4c32

Please sign in to comment.