Sets or gets how frequently the page is likely to change.
The value of the changeFrequency
property provides general information to
search engines and may not correlate exactly to how often they crawl the page.
Valid values:
"always"
"hourly"
"daily"
"weekly"
"monthly"
"yearly"
"never"
export function myRouter_SiteMap(sitemapRequest) {
let changeFrequency = entry.changeFrequency; // "weekly"
}
Sets or gets when was the page data last modified.
export function myRouter_SiteMap(sitemapRequest) {
let lastModified = entry.lastModified;
let year = lastModified.getFullYear(); // 2017
}
Sets or gets the page name.
export function myRouter_SiteMap(sitemapRequest) {
let pageName = entry.pageName; // "Page Name"
}
Sets or gets the priority of this URL relative to other URLs on your site.
The value of the priority
property lets search engines know which pages
you deem most important. Its value does not affect how your pages are
compared to pages on other sites.
Valid values range from 0.0 to 1.0.
The default priority of a page is 0.5.
export function myRouter_SiteMap(sitemapRequest) {
let priority = entry.priority; // 0.9
}
Sets or gets the page title.
export function myRouter_SiteMap(sitemapRequest) {
let title = entry.title; // "Page Title"
}