Skip to content

Commit

Permalink
Merge pull request #17 from adobecom/sitemap
Browse files Browse the repository at this point in the history
MWPW-136993 Add sitemap and query index
  • Loading branch information
Brandon32 authored Oct 9, 2023
2 parents 2fad9b0 + f9ecf6b commit cb3346a
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 14 deletions.
117 changes: 103 additions & 14 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
version: 1

indices:
default:
blog-us:
include:
- '/**'
- '/blog/'
- '/blog/basics/**'
- '/blog/how-to/**'
- '/blog/perspectives/**'
- '/blog/the-latest/**'
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 +21,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 +57,93 @@ indices:
select: none
value: |
parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT')
blog-uk:
include:
- '/uk/blog/'
- '/uk/blog/basics/**'
- '/uk/blog/how-to/**'
- '/uk/blog/perspectives/**'
- '/uk/blog/the-latest/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /uk/query-index.xlsx

blog-au:
include:
- '/au/blog/'
- '/au/blog/basics/**'
- '/au/blog/how-to/**'
- '/au/blog/perspectives/**'
- '/au/blog/the-latest/**'
exclude:
- '**/fragments/**'
- '**/drafts/**'
properties:
<<: *minProps
target: /au/query-index.xlsx

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

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

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

blog-kr:
include:
- '/kr/blog/'
- '/kr/blog/basics/**'
- '/kr/blog/how-to/**'
- '/kr/blog/perspectives/**'
- '/kr/blog/the-latest/**'
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}

0 comments on commit cb3346a

Please sign in to comment.