Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Use googleNewsPublicationName if present
Browse files Browse the repository at this point in the history
  • Loading branch information
zarathustra323 committed Jun 10, 2021
1 parent 2503bb7 commit f59fb15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,13 @@ module.exports = {
images: (content, _, { basedb }) => loadSitemapImages({ content, basedb }),
},

/**
*
*/
ContentSitemapNewsPublication: {
name: ({ name, googleNewsPublicationName }) => googleNewsPublicationName || name,
},

ContentSitemapImage: {
loc: (image, _, { site }) => {
// Use site image host otherwise fallback to global default.
Expand Down
1 change: 1 addition & 0 deletions services/graphql-server/src/site-context/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = async ({
imageHost: 1,
assetHost: 1,
date: 1,
googleNewsPublicationName: 1,
};
site = await basedb.findOne('platform.Product', {
status: 1,
Expand Down

0 comments on commit f59fb15

Please sign in to comment.