Tags
Allow readers to browse content by using tags to categorise posts.
The NHS.UK Eleventy Plugin lets you use tags to categorise pages. Each post can display its list of tags, which link to a page that lists other posts with the same tag. Follow these instructions to enable this feature.
View an example tag list page (opens in a tab) and an example tag page (opens in a tab)
Configure tag pages
To enable tag pages on your site, set templates.tags: true
in your plugin options.
Or, you can customise tag pages by using these options:
Name | Type | Description |
---|---|---|
title | string | Sets the tag list title (default is |
tagTitle | string | Sets the title for individual tag pages (default is |
permalink | string | Sets the folder name and location (default is |
Change how tag pages look
The tag list page uses the tags layout. You can override this layout to change how the page appears.
The tag page uses the tag layout. You can override this layout to change how the page appears.