[x] Update the header block to use the contentBasePath in the URL when fetching nav.docx and sidenav.docx
[x] Update the footer block to use the contentBasePath in the URL when fetching footer.docx
[x] Update the popular-articles block to use the contentBasePath in the URL when fetching popular-posts.docx
[x] Update the popular-tags block to use the contentBasePath in the URL when fetching popular-tags.docx
[x] Update the article-signup template and scripts.js to use the contentBasePath in the URL when fetching newsletter-footer.docx and newsletter-popup.docx
[x] Update the searchresults template to use the locale in the URL when fetching 404.docx
[x] Set up a placeholders.xslx sheet in each locale to handle hardcoded strings that need to be translated.
[x] Set the placeholders prefix according to the active locale (i.e. contentBasePath)
Localize the 404 page
[x] 404 page: The content is mostly handled by the searchresults template and the 404.docx fragment, but page metadata need to be updated
https://github.com/hlxsites/petplace/pull/372
Localize the newsletter signup
[x] Use the contentBasePath in the newsletter blocks
[x] Introduce a popup with suggested redirection if ending on the wrong site (i.e. UK on petplace.com is asked if they want to go to petplace.co.uk, non-UK on petplace.com/en-gb/ is asked if they want to go to petplace.com)
[x] Re-use the existing popup block
[x] Popup should show 1 + n buttons, 1 for the current region (i.e. "Stay on âŚ"), and then 1 for each other region available (only 1 for now, but should plan for an array down the road)
Use case
The customer wants to start a new website for the UK market based on their existing www.petplace.com.
The localized version should:
/en-gb/
folder in Sharepointđ§ Technical
As part of this initiative, we'll cover:
đ§âđť Tasks
𧹠Header/footer and common fragments
/fragments
folderwindow.hlx.contentBasePath
and set it to the active locale https://github.com/hlxsites/petplace/pull/371header
block to use thecontentBasePath
in the URL when fetchingnav.docx
andsidenav.docx
footer
block to use thecontentBasePath
in the URL when fetchingfooter.docx
popular-articles
block to use thecontentBasePath
in the URL when fetchingpopular-posts.docx
popular-tags
block to use thecontentBasePath
in the URL when fetchingpopular-tags.docx
article-signup
template andscripts.js
to use thecontentBasePath
in the URL when fetchingnewsletter-footer.docx
andnewsletter-popup.docx
searchresults
template to use the locale in the URL when fetching404.docx
placeholders.xslx
https://github.com/hlxsites/petplace/pull/365
placeholders.xslx
sheet in each locale to handle hardcoded strings that need to be translated.contentBasePath
)searchresults
template and the404.docx
fragment, but page metadata need to be updated https://github.com/hlxsites/petplace/pull/372contentBasePath
in thenewsletter
blocksarticle-author
template to use thecontentbasePath
đ° Articles
article/query-index.xslx
for each localehelix-query.yaml
to include the new article indexesđ SEO
/query-index.xslx
for each localehelix-query.yaml
to include the new sitemap indexeshelix-sitemap.yaml
to list the sitemaps for each geo. See: https://www.aem.live/developer/sitemap#multiple-sitemapsđ¤ CI for search & XML feeds
.github/ci/build-search-index.js
.github/ci/generate-news-feed.js
head.html
to reference the feeds with the right localeđ Content Migration
petplace.com_-_post-migration_optimizations_and_additions.xlsx
đ° Martech
đ Authoring
đ Infra
https://github.com/hlxsites/petplace/pull/395
x-served-by
headers to detect the Fastly pop locationđ Go-live