Skip to content

Commit

Permalink
Merge pull request #39 from apostrophecms/hotfix/trash-priority
Browse files Browse the repository at this point in the history
Disables the siteMapPriority field on trash
  • Loading branch information
abea authored May 5, 2020
2 parents 47fba70 + 4d14940 commit 3492a3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.5.3

Disables the `siteMapPriority` schema field on the `trash` page to prevent an "unarranged field" warning about it.

## 2.5.1

Fixes a bug in the `exclude-types` argument usage.
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/apostrophe-site-map-custom-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const arrange = require('../../../arrangeFields.js');
module.exports = {
improve: 'apostrophe-custom-pages',
beforeConstruct: function(self, options) {
if (options.sitemap !== false) {
if (options.sitemap !== false && self.__meta.name !== 'trash-auto-pages') {
options.addFields = [
_.clone(field)
].concat(options.addFields || []);
Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apostrophe-site-map",
"version": "2.5.2",
"version": "2.5.3",
"description": "Generate site maps for sites powered by the Apostrophe CMS.",
"main": "index.js",
"dependencies": {
Expand All @@ -25,15 +25,12 @@
"sitemap",
"apostrophe",
"apostrophecms",
"apostrophe-cms",
"cms",
"content management",
"content management system"
"apostrophe-cms"
],
"author": "P'unk Avenue LLC",
"author": "Apostrophe Technologies, Inc.",
"license": "MIT",
"bugs": {
"url": "https://github.com/apostrophecms/apostrophe-site-map/issues"
},
"homepage": "https://github.com/apostrophecms/apostrophe-site-map"
}
}

0 comments on commit 3492a3a

Please sign in to comment.