ReeceM / prismic-sitemap

A sitemap generator for next.js websites based on the pages in your Prismic backed Next.js application. Minimal Configuration
MIT License
12 stars 3 forks source link

adds options callback for sitemap entry [target: new v0.3.0] #10

Closed ReeceM closed 3 years ago

ReeceM commented 3 years ago

Description

This PR adds an option to allow the usage of a callback to define the entry of the Sitemap data per document result, this is mainly to allow adding accurate <lastmod> dates to entries.

Related Issue

See discussion and request here #8

Motivation and Context

It will allow end users more control over the entry being place inside the sitemap per each document.

How Has This Been Tested?

Yes, testing update to account for changes

Screenshots (if appropriate):

Types of changes

Checklist: