UNPKG

@x-govuk/govuk-eleventy-plugin

Version:

Write documentation using Markdown and publish it using GOV.UK styles

8 lines (7 loc) 249 B
export const sitemap = (collection) => { return collection.getAllSorted().filter((item) => { // Only return content that was originally a Markdown file const extension = item.inputPath.split('.').pop() return extension === 'md' }) }