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

Rename the query-index #50

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
93 changes: 93 additions & 0 deletions helix-query.yaml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 8 additions & 8 deletions helix-sitemap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}