Skip to content

Commit

Permalink
Merge pull request #538 from hlxsites/507-metadata-index-fix
Browse files Browse the repository at this point in the history
507-metadata-index-brand-update
  • Loading branch information
rgravitvl authored Dec 1, 2023
2 parents add0216 + e1b2dbc commit 016fd9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helix-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ indices:
image:
select: head > meta[property="og:image"]
value: match(attribute(el, "content"), "^(https?:\/\/.*?(danaher.com))+(.*)|^(.*)")
opco:
select: head > meta[name="opco"]
brand:
select: head > meta[name="brand"]
value: attribute(el, "content")
type:
select: head > meta[name="template"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h2>Need help designing your solution?</h2>
<div>danaher:opco/beckman-coulter</div>
</div>
<div>
<div>OpCo</div>
<div>brand</div>
<div>Beckman Coulter</div>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion tools/importer/transformers/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const createMetadata = (main, document, html, params, urlStr) => {

const opco = document.querySelector('[name="opco"]');
if (opco && opco.content) {
meta.OpCo = opco.content;
meta.brand = opco.content;
}

const desc = document.querySelector('[property="og:description"]');
Expand Down

0 comments on commit 016fd9f

Please sign in to comment.