diff --git a/helix-query.yaml b/helix-query.yaml new file mode 100644 index 0000000..c80a7b3 --- /dev/null +++ b/helix-query.yaml @@ -0,0 +1,93 @@ +version: 1 + +indices: + english: &default + include: + - /en/publish/*/*/*/* + exclude: + - '**/Document.*' + target: /en/helix-query.xlsx + properties: + author: + select: head > meta[name="author"] + value: | + attribute(el, 'content') + title: + select: main h1:first-of-type + value: | + textContent(el) + date: + select: head > meta[name="publication-date"] + value: | + dateValue(attribute(el, 'content'), 'MM-DD-YYYY') + image: + select: head > meta[property="og:image"] + value: | + match(attribute(el, 'content'), 'https:\/\/[^/]+(\/.*)') + imageAlt: + select: head > meta[property="og:image:alt"] + value: | + attribute(el, 'content') + description: + select: head > meta[name="description"] + value: | + attribute(el, 'content') + tags: + select: head > meta[property="article:tag"] + values: | + attribute(el, 'content') + robots: + select: head > meta[name="robots"] + value: | + attribute(el, 'content') + lastModified: + select: none + value: | + parseTimestamp(headers['last-modified'], 'ddd, DD MMM YYYY hh:mm:ss GMT') + no-en: + <<: *default + include: + - /en/publish/*/*/*/* + target: /helix-query.xlsx + + brazilian: + <<: *default + include: + - /br/publish/*/*/*/* + target: /br/helix-query.xlsx + + german: + <<: *default + include: + - /de/publish/*/*/*/* + target: /de/helix-query.xlsx + + spanish: + <<: *default + include: + - /es/publish/*/*/*/* + target: /es/helix-query.xlsx + + french: + <<: *default + include: + - /fr/publish/*/*/*/* + target: /fr/helix-query.xlsx + + italian: + <<: *default + include: + - /it/publish/*/*/*/* + target: /it/helix-query.xlsx + + japanese: + <<: *default + include: + - /jp/publish/*/*/*/* + target: /jp/helix-query.xlsx + + korean: + <<: *default + include: + - /ko/publish/*/*/*/* + target: /ko/helix-query.xlsx diff --git a/helix-sitemap.yaml b/helix-sitemap.yaml index 9b39ae4..deba83d 100644 --- a/helix-sitemap.yaml +++ b/helix-sitemap.yaml @@ -6,42 +6,42 @@ sitemaps: lastmod: YYYY-MM-DD languages: en: - source: /en/query-index.json + source: /en/helix-query.json destination: /en/sitemap.xml hreflang: en alternate: /en/{path} ko: - source: /ko/query-index.json + source: /ko/helix-query.json destination: /ko/sitemap.xml hreflang: ko alternate: /ko/{path} jp: - source: /jp/query-index.json + source: /jp/helix-query.json destination: /jp/sitemap.xml hreflang: ja alternate: /jp/{path} it: - source: /it/query-index.json + source: /it/helix-query.json destination: /it/sitemap.xml hreflang: it alternate: /it/{path} fr: - source: /fr/query-index.json + source: /fr/helix-query.json destination: /fr/sitemap.xml hreflang: fr alternate: /fr/{path} es: - source: /es/query-index.json + source: /es/helix-query.json destination: /es/sitemap.xml hreflang: es alternate: /es/{path} de: - source: /de/query-index.json + source: /de/helix-query.json destination: /de/sitemap.xml hreflang: de alternate: /de/{path} br: - source: /br/query-index.json + source: /br/helix-query.json destination: /br/sitemap.xml hreflang: pt alternate: /br/{path}