@quintype/seo 1.40.13 → 1.40.14-metaDescription.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/package.json +1 -1
- package/src/text-tags.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -930,7 +930,7 @@ function buildTagsFromStory(config, story, url = {}, data = {}) {
|
|
|
930
930
|
const authors = lodash.get(story, ["authors"], []).map(author => author.name);
|
|
931
931
|
const title = customSeo.title || seo["meta-title"] || story.headline;
|
|
932
932
|
const pageTitle = customSeo["page-title"] || seo["meta-title"] || story.headline;
|
|
933
|
-
const description = customSeo.description || seo["meta-description"] || story.summary;
|
|
933
|
+
const description = customSeo.description || seo["meta-description"] || story.summary || story.subheadline;
|
|
934
934
|
const keywords = (customSeo.keywords || seo["meta-keywords"] || (story.tags || []).map(tag => tag.name)).join(",");
|
|
935
935
|
const ogUrl = customSeo.ogUrl || lodash.get(seo, ["og", "url"]) || storyUrl;
|
|
936
936
|
const getOgTitle = customSeo.ogTitle || lodash.get(story, ["alternative", "social", "default", "headline"], story.headline) || story.headline;
|
package/package.json
CHANGED
package/src/text-tags.js
CHANGED
|
@@ -28,7 +28,7 @@ function buildTagsFromStory(config, story, url = {}, data = {}) {
|
|
|
28
28
|
const authors = get(story, ["authors"], []).map((author) => author.name);
|
|
29
29
|
const title = customSeo.title || seo["meta-title"] || story.headline;
|
|
30
30
|
const pageTitle = customSeo["page-title"] || seo["meta-title"] || story.headline;
|
|
31
|
-
const description = customSeo.description || seo["meta-description"] || story.summary;
|
|
31
|
+
const description = customSeo.description || seo["meta-description"] || story.summary || story.subheadline;
|
|
32
32
|
const keywords = (customSeo.keywords || seo["meta-keywords"] || (story.tags || []).map((tag) => tag.name)).join(",");
|
|
33
33
|
const ogUrl = customSeo.ogUrl || get(seo, ["og", "url"]) || storyUrl;
|
|
34
34
|
const getOgTitle =
|