Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrossl committed Aug 11, 2021
1 parent f9b7246 commit 8acc3f1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion craftercms-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ plugin:
version:
major: 1
minor: 0
patch: 2
patch: 3
description: Plugin to generate a site map
website:
name: Sitemap Plugin
Expand Down
2 changes: 1 addition & 1 deletion delivery/scripts/classes/SitemapItemConverter.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SitemapItemConverter implements Converter<SiteItem, NavItem> {
// If the item is present add the sitmap attributes
if (item) {
item.attributes.loc = urlTransformationService.transform("storeUrlToFullRenderUrl", siteItem.storeUrl)
item.attributes.lastmod = siteItem.lastModifiedDate as String
item.attributes.lastmod = siteItem.lastModifiedDate?.text
item.attributes.changefreq = siteItem.changeFrequency_s as String
item.attributes.priority = siteItem.priority_f as String
}
Expand Down
2 changes: 1 addition & 1 deletion delivery/templates/sitemap.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--
<#--
~ MIT License
~
~ Copyright (c) 2018-2021 Crafter Software Corporation. All Rights Reserved.
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ The plugin can be installed to your site from the Crafter CMS Marketplace
After the plugin has been installed you can test the result by opening the URL
http://localhost:8080/plugins/org/craftercms/plugin/sitemap/sitemap

**Note:** this URL will only work **without** an extension, if `.xml` or `.json` is added the result will not be
serialized using the sitemap specification.

The plugin will generate an XML sitemap for the top level pages that are configured with `Place in Nav`, for more
information check the [documentation](https://docs.craftercms.org/en/4.0/developers/form-controls/form-page-order.html).

Expand Down

0 comments on commit 8acc3f1

Please sign in to comment.