sitemap-index-by-day-feature-block 0.0.0-canary-2022229145618
Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/sitemap-index-by-day-feature-block@0.0.0-canary-2022229145618
Install via package.json:
"@wpmedia/sitemap-index-by-day-feature-block": "0.0.0-canary-2022229145618"
About this version
sitemap index by day is intended to generate large sitemaps going back weeks, months or years. It consists of three formats, sitemap-index-by-day, sitemap-by-day and sitemap with a date in the path (just a new resolver).
The sitemap-index-by-day format returns one link to sitemap-by-day for each day, starting with the current day which is called 'latest' and going back the number of days specified (defaults to 7). Each link should be to sitemap-by-day where the link looks like /arc/outboundedfeeds/sitemap-by-day/2021-04-06?outputType=xml.
This format works by using the customField maxDays. It does not use a content source so it should be created as a page. It starts with the current day and decrements the day by 1 until it's looped through maxDays. Optionally you can enter a date in YYYY-MM-DD format to use as the last day. Links with the date look like /arc/outboundfeeds/sitemap-by-day/YYYY-MM-DD.
Since this format doesn't need a content source, it can be created as a page.
-
numberOfDays - The number of links (days back) to generate. Optionally if a valid date is entered in YYYY-MM-DD format it will be used to calculate the maxDays.
-
feedPath - The path to the format to use in the generated links. Defaults to
/arc/outboundfeeds/sitemap-by-day/
-
feedName - The name of the feed used in the resolver. Defaults to
/sitemap-index/
This is used to split the requestURI to get anything in the path after the feed like a section. If a request is made using/arc/outboundfeeds/sitemap-index/category/sports
. This will be split on/sitemap-index/
which results in an array of['/arc/outboundfeeds', 'category/sports']
the second array element, if any, will be appended to the generated sitemap url.
Details
- sitemap-index-by-day-feature-block
- WPMedia
- almost 3 years ago
- CC-BY-NC-ND-4.0
- 2 dependencies
Assets
- sitemap-index-by-day-feature-block-0.0.0-canary-2022229145618-npm.tgz
Download activity
- Total downloads 24
- Last 30 days 0
- Last week 0
- Today 0