Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow omission of url defaults #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

freakingawesome
Copy link

This allows for the explicit removal of lastmod, priority, and changefreq XML nodes, rather than setting them to default values.

Usage:

opts := Options{}
opts.SetOmitDefaultLastMod(true)
opts.SetOmitDefaultPriority(true)
opts.SetOmitDefaultChangeFreq(true)

Since these three fields are largely ignored, this cuts down on the size of the generated XML files.

Reference:

This allows the explicit removal of lastmod, priority, and changefreq
nodes, rather than setting them to defaults
porozhnyy added a commit to porozhnyy/go-sitemap-generator that referenced this pull request Jan 30, 2023
@ammark100
Copy link

Hi, are there any plans to merge it soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants