Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWPW-136993 Add sitemap and query index #17

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 146 additions & 14 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
version: 1

indices:
default:
blog-us:
include:
- '/**'
- '/blog/'
- '/blog/actualites/**'
- '/blog/basics/**'
- '/blog/fragments/**'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to exclude fragments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, removed

- '/blog/grundlagen/**'
- '/blog/how-to/**'
- '/blog/neues/**'
- '/blog/perspectives/**'
- '/blog/perspektiven/**'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there French and German folder names included in the US index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

- '/blog/the-latest/**'
- '/blog/topic/**'
- '/blog/trends/**'
exclude:
- '/gnav*'
- '/footer*'
- '/authors/**'
- '/banners/**'
- '/categories/**'
- '/docs/**'
- '/drafts/**'
- '/footer-banners/**'
- '/fragments/**'
- '/seo/**'
- '/tags/**'
- '**/fragments/**'
- '**/drafts/**'
target: /query-index.xlsx
properties:
properties: &minProps
author:
select: head > meta[name="author"]
value: |
Expand All @@ -26,6 +28,10 @@ indices:
select: head > meta[property="og:title"]
value: |
attribute(el, 'content')
h1:
select: main h1
value: |
textContent(el)
date:
select: head > meta[name="publication-date"]
value: |
Expand Down Expand Up @@ -58,3 +64,129 @@ indices:
select: none
value: |
parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')

blog-uk:
include:
- '/uk/blog/'
- '/uk/blog/actualites/**'
- '/uk/blog/basics/**'
- '/uk/blog/fragments/**'
- '/uk/blog/grundlagen/**'
- '/uk/blog/how-to/**'
- '/uk/blog/neues/**'
- '/uk/blog/perspectives/**'
- '/uk/blog/perspektiven/**'
- '/uk/blog/the-latest/**'
- '/uk/blog/topic/**'
- '/uk/blog/trends/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /uk/query-index.xlsx

blog-au:
include:
- '/au/blog/'
- '/au/blog/actualites/**'
- '/au/blog/basics/**'
- '/au/blog/auagments/**'
- '/au/blog/grundlagen/**'
- '/au/blog/how-to/**'
- '/au/blog/neues/**'
- '/au/blog/perspectives/**'
- '/au/blog/perspektiven/**'
- '/au/blog/the-latest/**'
- '/au/blog/topic/**'
- '/au/blog/trends/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /au/query-index.xlsx

fr:
include:
- '/fr/blog/'
- '/fr/blog/actualites/**'
- '/fr/blog/basics/**'
- '/fr/blog/fragments/**'
- '/fr/blog/grundlagen/**'
- '/fr/blog/how-to/**'
- '/fr/blog/neues/**'
- '/fr/blog/perspectives/**'
- '/fr/blog/perspektiven/**'
- '/fr/blog/the-latest/**'
- '/fr/blog/topic/**'
- '/fr/blog/trends/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /fr/query-index.xlsx

blog-de:
include:
- '/de/blog/'
- '/de/blog/actualites/**'
- '/de/blog/basics/**'
- '/de/blog/fragments/**'
- '/de/blog/grundlagen/**'
- '/de/blog/how-to/**'
- '/de/blog/neues/**'
- '/de/blog/perspectives/**'
- '/de/blog/perspektiven/**'
- '/de/blog/the-latest/**'
- '/de/blog/topic/**'
- '/de/blog/trends/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /de/query-index.xlsx

blog-jp:
include:
- '/uk/blog/'
- '/uk/blog/actualites/**'
- '/uk/blog/basics/**'
- '/uk/blog/fragments/**'
- '/uk/blog/grundlagen/**'
- '/uk/blog/how-to/**'
- '/uk/blog/neues/**'
- '/uk/blog/perspectives/**'
- '/uk/blog/perspektiven/**'
- '/uk/blog/the-latest/**'
- '/uk/blog/topic/**'
- '/uk/blog/trends/**'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like these should be /jp/blog/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /jp/query-index.xlsx

blog-kr:
include:
- '/kr/blog/'
- '/kr/blog/actualites/**'
- '/kr/blog/basics/**'
- '/kr/blog/fragments/**'
- '/kr/blog/grundlagen/**'
- '/kr/blog/how-to/**'
- '/kr/blog/neues/**'
- '/kr/blog/perspectives/**'
- '/kr/blog/perspektiven/**'
- '/kr/blog/the-latest/**'
- '/kr/blog/topic/**'
- '/kr/blog/trends/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /kr/query-index.xlsx
42 changes: 42 additions & 0 deletions helix-sitemap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 1

sitemaps:
blog:
origin: https://business.adobe.com
lastmod: YYYY-MM-DD
languages:
default:
source: /query-index.json
destination: /blog/sitemap.xml
hreflang: en
alternate: /{path}
uk:
source: /uk/query-index.json
destination: /blog/sitemap-uk.xml
hreflang: en-gb
alternate: /uk/{path}
au:
source: /au/query-index.json
destination: /blog/sitemap-au.xml
hreflang: en-au
alternate: /au/{path}
fr:
source: /fr/query-index.json
destination: /blog/sitemap-fr.xml
hreflang: fr
alternate: /fr/{path}
de:
source: /de/query-index.json
destination: /blog/sitemap-de.xml
hreflang: de
alternate: /de/{path}
jp:
source: /jp/query-index.json
destination: /blog/sitemap-jp.xml
hreflang: ja
alternate: /jp/{path}
kr:
source: /kr/query-index.json
destination: /blog/sitemap-kr.xml
hreflang: ko
alternate: /kr/{path}
Loading