Skip to content

Commit

Permalink
CIF-2251: adds sitemap configurations (#173)
Browse files Browse the repository at this point in the history
* add sitemap configurations

* update dispatcher rules
  • Loading branch information
buuhuu authored Aug 9, 2021
1 parent 4f566e3 commit 496e071
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dispatcher-cloud/src/conf.d/rewrites/rewrite.rules
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ RewriteCond %{REQUEST_URI} !^/saml_login
RewriteCond %{REQUEST_URI} !^/system
RewriteCond %{REQUEST_URI} !^/tmp
RewriteCond %{REQUEST_URI} !^/var
RewriteCond %{REQUEST_URI} (.html|.jpe?g|.png|.svg)$
RewriteCond %{REQUEST_URI} (.html|.jpe?g|.png|.svg|.xml)$
RewriteRule ^/(.*)$ /content/${CONTENT_FOLDER_NAME}/$1 [PT,L]
7 changes: 7 additions & 0 deletions dispatcher-cloud/src/conf.dispatcher.d/filters/filters.any
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ $include "./default_filters.any"
#
/0200 { /type "allow" /method "GET" /path "/content/venia/*" /selectors '[0-9-]+' /extension "html" }
/0201 { /type "allow" /method "GET" /path "/conf/venia/settings/wcm/templates/*" /extension "svg" }

#
# Sling Sitemap filter
#
/0300 { /type "allow" /method "GET" /path "/content/venia/*" /selectors "sitemap-index" /extension "xml" }
/0301 { /type "allow" /method "GET" /path "/content/venia/*" /selectors "sitemap" /extension "xml" }
/0302 { /type "allow" /method "GET" /path "/content/venia/*" /selectors "sitemap\.[^\.\/]+-sitemap" /extension "xml" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"scheduler.name": "default",
"scheduler.expression": "0 0 0 * * ?"
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
jcr:primaryType="cq:PageContent"
jcr:title="Venia Demo Store - Home"
navRoot="{Boolean}true"
sling:resourceType="venia/components/page"
sling:resourceType="venia/components/page"
sling:sitemapRoot="{Boolean}true"
pageTitle="Home">
<root jcr:primaryType="nt:unstructured"
jcr:mixinTypes="[cq:LiveRelationship]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cq:lastModifiedBy="admin"
cq:lastRolledout="{Date}2020-07-08T09:32:42.236+03:00"
cq:lastRolledoutBy="admin"
cq:robotsTags="[noindex]"
cq:template="/conf/venia/settings/wcm/templates/page-content"
jcr:mixinTypes="[cq:LiveRelationship]"
jcr:primaryType="cq:PageContent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cq:lastModifiedBy="admin"
cq:lastRolledout="{Date}2020-09-16T18:19:01.175+03:00"
cq:lastRolledoutBy="admin"
cq:robotsTags="[noindex]"
cq:template="/conf/venia/settings/wcm/templates/page-content"
jcr:mixinTypes="[cq:LiveRelationship]"
jcr:primaryType="cq:PageContent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cq:lastModifiedBy="admin"
cq:lastRolledout="{Date}2020-07-08T09:32:42.261+03:00"
cq:lastRolledoutBy="admin"
cq:robotsTags="[noindex]"
cq:template="/conf/venia/settings/wcm/templates/page-content"
jcr:mixinTypes="[cq:LiveRelationship]"
jcr:primaryType="cq:PageContent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
jcr:primaryType="cq:PageContent"
jcr:title="Venia Demo Store - Category page"
jcr:mixinTypes="[cq:LiveRelationship]"
sling:resourceType="venia/components/page">
sling:resourceType="venia/components/page"
sling:sitemapRoot="{Boolean}true">
<root
jcr:primaryType="nt:unstructured"
jcr:mixinTypes="[cq:LiveRelationship]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
jcr:mixinTypes="[cq:LiveRelationship]"
jcr:primaryType="cq:PageContent"
jcr:title="Venia Demo Store - Product page"
sling:resourceType="venia/components/page">
sling:resourceType="venia/components/page"
sling:sitemapRoot="{Boolean}true">
<root jcr:primaryType="nt:unstructured"
jcr:mixinTypes="[cq:LiveRelationship]"
sling:resourceType="venia/components/container"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
cq:lastModifiedBy="admin"
cq:lastRolledout="{Date}2020-09-17T16:03:08.085+02:00"
cq:lastRolledoutBy="admin"
cq:robotsTags="[noindex]"
cq:template="/conf/venia/settings/wcm/templates/page-content"
jcr:mixinTypes="[cq:LiveRelationship]"
jcr:primaryType="cq:PageContent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:Page">
<jcr:content cq:template="/conf/venia/settings/wcm/templates/page-content"
<jcr:content
cq:template="/conf/venia/settings/wcm/templates/page-content"
cq:robotsTags="[noindex]"
jcr:primaryType="cq:PageContent"
jcr:mixinTypes="[cq:LiveRelationship]"
jcr:title="Venia Demo Store - Search Results"
Expand Down

0 comments on commit 496e071

Please sign in to comment.