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

Add global changeFreq to VuePress config #17

Closed
staghouse opened this issue Apr 16, 2019 · 1 comment
Closed

Add global changeFreq to VuePress config #17

staghouse opened this issue Apr 16, 2019 · 1 comment

Comments

@staghouse
Copy link

The simplest implementation for me is:

    [
      'sitemap',
      {
        hostname: 'https://mtgjson.com',
        outFile: 'atom.xml',
      },
    ],

However, the output always has each route as a change frequency of daily. I would either like to be able to remove this with a simple prop value without having to go through all the URLs

such as

    [
      'sitemap',
      {
        hostname: 'https://mtgjson.com',
        outFile: 'atom.xml',
        global: {
          changefreq: "weekly"
        }
      },
    ],

Is there a way to do this already without having to iterate through all the URLs?

@ekoeryanto
Copy link
Owner

ekoeryanto commented Apr 19, 2019

If you are using v0.x then you can use -F parameter, see

'-F, --changefreq [daily|weekly|monthly]',

for v1.x

changefreq = 'daily',

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

No branches or pull requests

2 participants