adobe / aem-guides-wknd

Tutorial Code companion for Getting Started Developing with AEM Sites WKND Tutorial
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/overview.html
MIT License
285 stars 548 forks source link

#292 Configure Sling Mappings and Sitemap Generation #317

Open buuhuu opened 2 years ago

buuhuu commented 2 years ago

Description

This PR contributes the configuration of a Sling Mapping using a AEM_DOMAIN_WKND_SITE environment variable. It is activated only for the publish.dev, publish.stage and publish.prod runmode by the configuration of the Resource Resolver Factory pointing to the mappings directory /etc/map.publish.

Additionally a SitemapGenerator configuration was added to run Sitemap generation once a day at midnight. Both homepages us/en and ca/en were marked as sitemap roots. The error pages are configured with a noindex tag to exclude them from the sitemap.

Related Issue

292

Motivation and Context

Achieve a 100% SEO score with WKND.

How Has This Been Tested?

Locally, AEMaaCS

Screenshots (if appropriate):

Types of changes

Checklist:

godanny86 commented 2 years ago

@Buuhuu what is the motivation to use Sling Maps over Resource Resolver for shortening the /content/wknd?