@quintype/seo 1.40.5-static-page-seo.2 → 1.40.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.40.5](https://github.com/quintype/quintype-node-seo/compare/v1.40.1...v1.40.5) (2022-06-30)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * og image for stories with no image | fallback og image ([454aef9](https://github.com/quintype/quintype-node-seo/commit/454aef9e0a1bc5acfde1aa56d223c518255376a2))
11
+ * Update image schema ([#522](https://github.com/quintype/quintype-node-seo/issues/522)) ([5e42cdc](https://github.com/quintype/quintype-node-seo/commit/5e42cdcbb14d587251b7a3f932a4f98dd358f188))
12
+
5
13
  ### [1.40.4](https://github.com/quintype/quintype-node-seo/compare/v1.40.4-amptag.0...v1.40.4) (2022-03-22)
6
14
 
7
15
  ### [1.40.3](https://github.com/quintype/quintype-node-seo/compare/v1.40.2...v1.40.3) (2022-02-23)
package/dist/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var lodash$1 = require('lodash');
5
+ var lodash = require('lodash');
6
6
  var React = require('react');
7
7
  var ReactDomServer = require('react-dom/server');
8
8
  var url = require('url');
@@ -21,7 +21,7 @@ var isUndefined__default = /*#__PURE__*/_interopDefaultLegacy(isUndefined);
21
21
  var omitBy__default = /*#__PURE__*/_interopDefaultLegacy(omitBy);
22
22
 
23
23
  function objectToTags(object) {
24
- return lodash$1.entries(object).filter(([key, value]) => value).map(([key, value]) => ({ [getPropertyName(key)]: key, content: value }));
24
+ return lodash.entries(object).filter(([key, value]) => value).map(([key, value]) => ({ [getPropertyName(key)]: key, content: value }));
25
25
  }
26
26
 
27
27
  function getPropertyName(key) {
@@ -56,7 +56,7 @@ function buildTagsFromStory(config, story, url = {}, data = {}) {
56
56
  const { metadata = {} } = story.cards.find(card => card.id === cardId) || {};
57
57
  const urlWithCardId = `${config["sketches-host"]}/${story.slug}?cardId=${cardId}`;
58
58
 
59
- if (metadata && !lodash$1.isEmpty(metadata) && metadata["social-share"]) {
59
+ if (metadata && !lodash.isEmpty(metadata) && metadata["social-share"]) {
60
60
  return {
61
61
  title: metadata["social-share"].title || story.headline,
62
62
  description: metadata["social-share"].message || story.summary,
@@ -72,14 +72,14 @@ function buildTagsFromStory(config, story, url = {}, data = {}) {
72
72
 
73
73
  const storyUrl = story.url || `${config["sketches-host"]}/${story.slug}`;
74
74
 
75
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
76
- const authors = lodash$1.get(story, ["authors"], []).map(author => author.name);
75
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
76
+ const authors = lodash.get(story, ["authors"], []).map(author => author.name);
77
77
  const title = customSeo.title || seo["meta-title"] || story.headline;
78
78
  const pageTitle = customSeo["page-title"] || seo["meta-title"] || story.headline;
79
79
  const description = customSeo.description || seo["meta-description"] || story.summary;
80
80
  const keywords = (customSeo.keywords || seo["meta-keywords"] || (story.tags || []).map(tag => tag.name)).join(",");
81
- const ogUrl = customSeo.ogUrl || lodash$1.get(seo, ["og", "url"]) || storyUrl;
82
- const getOgTitle = customSeo.ogTitle || lodash$1.get(story, ["alternative", "social", "default", "headline"], story.headline) || story.headline;
81
+ const ogUrl = customSeo.ogUrl || lodash.get(seo, ["og", "url"]) || storyUrl;
82
+ const getOgTitle = customSeo.ogTitle || lodash.get(story, ["alternative", "social", "default", "headline"], story.headline) || story.headline;
83
83
  const ogDescription = customSeo.ogDescription || story.summary;
84
84
  const storyMetaData = {
85
85
  title,
@@ -103,8 +103,8 @@ function buildTagsFromStory(config, story, url = {}, data = {}) {
103
103
  }
104
104
 
105
105
  function buildTagsFromTopic(config, tag, url = {}, data) {
106
- if (lodash$1.isEmpty(tag)) return;
107
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
106
+ if (lodash.isEmpty(tag)) return;
107
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
108
108
  const tagName = customSeo.title || tag["meta-title"] || tag.name;
109
109
  const pageTitle = customSeo["page-title"] || tagName;
110
110
  const tagDescription = customSeo.description || tag["meta-description"];
@@ -129,9 +129,9 @@ function buildTagsFromTopic(config, tag, url = {}, data) {
129
129
  }
130
130
 
131
131
  function buildTagsFromAuthor(config, author, url = {}, data) {
132
- if (lodash$1.isEmpty(author)) return;
132
+ if (lodash.isEmpty(author)) return;
133
133
 
134
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
134
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
135
135
  const title = customSeo.title || author.name;
136
136
  const pageTitle = customSeo["page-title"] || title;
137
137
  const description = customSeo.description || author.bio || `View all articles written by ${title}`;
@@ -160,9 +160,9 @@ function buildCustomTags(customTags = {}, pageType = "") {
160
160
  }
161
161
 
162
162
  function buildTagsFromStaticPage(config, page, url = {}, data) {
163
- const seoData = lodash$1.get(page, ["metadata", "seo"], {});
164
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
165
- if (lodash$1.isEmpty(seoData) && lodash$1.isEmpty(customSeo)) return;
163
+ const seoData = lodash.get(page, ["metadata", "seo"], {});
164
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
165
+ if (lodash.isEmpty(seoData) && lodash.isEmpty(customSeo)) return;
166
166
 
167
167
  const { "meta-title": metaTitle, "meta-description": metaDescription, "meta-keywords": keywords } = seoData;
168
168
 
@@ -195,8 +195,8 @@ function getSeoData(config, pageType, data, url = {}, seoConfig = {}) {
195
195
  const seoMetadata = config["seo-metadata"].find(page => page["owner-type"] === ownerType && page["owner-id"] === ownerId) || {};
196
196
  const { sections = [] } = config;
197
197
  const section = sections.find(section => ownerType == "section" && section.id === ownerId) || {};
198
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
199
- if (seoMetadata.data || section.id || !lodash$1.isEmpty(customSeo)) {
198
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
199
+ if (seoMetadata.data || section.id || !lodash.isEmpty(customSeo)) {
200
200
  const result = Object.assign({}, {
201
201
  "page-title": customSeo["page-title"] || section.name,
202
202
  title: customSeo.title || section.name,
@@ -229,19 +229,19 @@ function getSeoData(config, pageType, data, url = {}, seoConfig = {}) {
229
229
  case "home-page":
230
230
  return findRelevantConfig("home");
231
231
  case "section-page":
232
- return findRelevantConfig("section", lodash$1.get(data, ["data", "section", "id"])) || getSeoDataFromCollection(config, data) || getSeoData(config, "home-page", data, url);
232
+ return findRelevantConfig("section", lodash.get(data, ["data", "section", "id"])) || getSeoDataFromCollection(config, data) || getSeoData(config, "home-page", data, url);
233
233
  case "collection-page":
234
234
  return getSeoDataFromCollection(config, data) || getSeoData(config, "home-page", data, url);
235
235
  case "tag-page":
236
- return buildTagsFromTopic(config, lodash$1.get(data, ["data", "tag"]), url, data) || getSeoData(config, "home-page", data, url);
236
+ return buildTagsFromTopic(config, lodash.get(data, ["data", "tag"]), url, data) || getSeoData(config, "home-page", data, url);
237
237
  case "story-page":
238
- return buildTagsFromStory(config, lodash$1.get(data, ["data", "story"]), url, data) || getSeoData(config, "home-page", data, url);
238
+ return buildTagsFromStory(config, lodash.get(data, ["data", "story"]), url, data) || getSeoData(config, "home-page", data, url);
239
239
  case "visual-story":
240
- return buildTagsFromStory(config, lodash$1.get(data, ["story"]), url, data) || getSeoData(config, "home-page", data, url);
240
+ return buildTagsFromStory(config, lodash.get(data, ["story"]), url, data) || getSeoData(config, "home-page", data, url);
241
241
  case "story-page-amp":
242
- return buildTagsFromStory(config, lodash$1.get(data, ["data", "story"]), url, data) || getSeoData(config, "home-page", data, url);
242
+ return buildTagsFromStory(config, lodash.get(data, ["data", "story"]), url, data) || getSeoData(config, "home-page", data, url);
243
243
  case "author-page":
244
- return buildTagsFromAuthor(config, lodash$1.get(data, ["data", "author"], {}), url, data) || getSeoData(config, "home-page", data, url);
244
+ return buildTagsFromAuthor(config, lodash.get(data, ["data", "author"], {}), url, data) || getSeoData(config, "home-page", data, url);
245
245
  case "static-page":
246
246
  return buildTagsFromStaticPage(config, lodash.get(data, ["data", "page"], {}), url, data) || getSeoData(config, "home-page", data, url);
247
247
  case "shell":
@@ -252,9 +252,9 @@ function getSeoData(config, pageType, data, url = {}, seoConfig = {}) {
252
252
  }
253
253
 
254
254
  function getSeoDataFromCollection(config, data) {
255
- if (lodash$1.get(data, ["data", "collection", "name"])) {
256
- let { name, summary } = lodash$1.get(data, ["data", "collection"]);
257
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
255
+ if (lodash.get(data, ["data", "collection", "name"])) {
256
+ let { name, summary } = lodash.get(data, ["data", "collection"]);
257
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
258
258
 
259
259
  if (!summary) {
260
260
  summary = (getSeoData(config, "home-page", data) || {}).description;
@@ -295,7 +295,7 @@ const SKIP_CANONICAL = "__SKIP__CANONICAL__";
295
295
  */
296
296
  function TextTags(seoConfig, config, pageType, data, { url }) {
297
297
  const seoData = getSeoData(config, pageType, data, url, seoConfig);
298
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
298
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
299
299
 
300
300
  if (!seoData) return [];
301
301
 
@@ -336,18 +336,18 @@ function TextTags(seoConfig, config, pageType, data, { url }) {
336
336
 
337
337
  if ((pageType === "story-page" || pageType === "story-page-amp") && seoConfig.enableNews) {
338
338
  commonTags.push({ name: "news_keywords", content: seoData.keywords });
339
- if (lodash$1.get(data, ["data", "story", "seo", "meta-google-news-standout"])) commonTags.push({ tag: "link", rel: "standout", href: seoData.storyUrl || currentUrl });
339
+ if (lodash.get(data, ["data", "story", "seo", "meta-google-news-standout"])) commonTags.push({ tag: "link", rel: "standout", href: seoData.storyUrl || currentUrl });
340
340
  }
341
341
 
342
342
  return commonTags.concat(objectToTags(allTags));
343
343
  }
344
344
 
345
345
  function getTitle$1(seoConfig, config, pageType, data, params) {
346
- const customSeo = lodash$1.get(data, ["data", "customSeo"], {});
346
+ const customSeo = lodash.get(data, ["data", "customSeo"], {});
347
347
 
348
- if (lodash$1.get(data, ["title"])) return customSeo.title || lodash$1.get(data, ["title"]);
348
+ if (lodash.get(data, ["title"])) return customSeo.title || lodash.get(data, ["title"]);
349
349
 
350
- if (lodash$1.get(data, ["data", "title"])) return customSeo.title || lodash$1.get(data, ["data", "title"]);
350
+ if (lodash.get(data, ["data", "title"])) return customSeo.title || lodash.get(data, ["data", "title"]);
351
351
 
352
352
  const seoData = getSeoData(config, pageType, data, undefined, seoConfig) || {};
353
353
  return customSeo.title || seoData["page-title"];
@@ -377,13 +377,13 @@ function AuthorTags(seoConfig, config, pageType, data, { url }) {
377
377
 
378
378
  return [{
379
379
  name: "twitter:creator",
380
- content: lodash$1.get(data, ["data", "story", "author-name"])
380
+ content: lodash.get(data, ["data", "story", "author-name"])
381
381
  }];
382
382
  }
383
383
 
384
384
  function pickImageFromCard(story, cardId) {
385
385
  const { metadata = {} } = story.cards.find(card => card.id === cardId) || {};
386
- if (metadata && !lodash$1.isEmpty(metadata) && lodash$1.get(metadata, ["social-share", "image", "key"], false)) {
386
+ if (metadata && !lodash.isEmpty(metadata) && lodash.get(metadata, ["social-share", "image", "key"], false)) {
387
387
  const alt = metadata["social-share"].image.attribution || metadata["social-share"].title || metadata["social-share"].message || getAttribution(story);
388
388
  return {
389
389
  image: new quintypeJs.FocusedImage(metadata["social-share"].image.key, metadata["social-share"].image.metadata || {}),
@@ -393,7 +393,7 @@ function pickImageFromCard(story, cardId) {
393
393
  }
394
394
 
395
395
  function getAttribution(story) {
396
- return story["hero-image-attribution"] || story.summary || lodash$1.get(story, ["alternative", "home", "default", "headline"]) || story.headline;
396
+ return story["hero-image-attribution"] || story.summary || lodash.get(story, ["alternative", "home", "default", "headline"]) || story.headline;
397
397
  }
398
398
 
399
399
  /**
@@ -408,16 +408,16 @@ function getAttribution(story) {
408
408
  */
409
409
  function pickImageFromStory({ story, config, seoConfig }) {
410
410
  function getAlt(type, key, fallback) {
411
- return lodash$1.get(story, ["alternative", `${type}`, "default", "hero-image", `${key}`], fallback);
411
+ return lodash.get(story, ["alternative", `${type}`, "default", "hero-image", `${key}`], fallback);
412
412
  }
413
413
 
414
414
  const alt = getAttribution(story);
415
- const fallbackSocialImage = lodash$1.get(seoConfig, ["fallbackSocialImage"]);
415
+ const fallbackSocialImage = lodash.get(seoConfig, ["fallbackSocialImage"]);
416
416
  const altHeroImg = getAlt("home", "hero-image-s3-key", null);
417
417
  const altSocialHeroImg = getAlt("social", "hero-image-s3-key", null);
418
- const storyHeroImage = lodash$1.get(story, ["hero-image-s3-key"]);
419
- const logo_url = lodash$1.get(config, ["theme-attributes", "logo_url"]);
420
- const logo = lodash$1.get(config, ["theme-attributes", "logo"]);
418
+ const storyHeroImage = lodash.get(story, ["hero-image-s3-key"]);
419
+ const logo_url = lodash.get(config, ["theme-attributes", "logo_url"]);
420
+ const logo = lodash.get(config, ["theme-attributes", "logo"]);
421
421
 
422
422
  if (altSocialHeroImg) {
423
423
  const metadata = getAlt("social", "hero-image-metadata", {});
@@ -426,7 +426,7 @@ function pickImageFromStory({ story, config, seoConfig }) {
426
426
  const metadata = getAlt("home", "hero-image-metadata", {});
427
427
  return { image: new quintypeJs.FocusedImage(altHeroImg, metadata), alt };
428
428
  } else if (storyHeroImage) {
429
- const metadata = lodash$1.get(story, ["hero-image-metadata"], {});
429
+ const metadata = lodash.get(story, ["hero-image-metadata"], {});
430
430
  return { image: new quintypeJs.FocusedImage(storyHeroImage, metadata), alt };
431
431
  } else if (fallbackSocialImage) {
432
432
  return { image: fallbackSocialImage, alt, includesHost: true };
@@ -440,7 +440,7 @@ function pickImageFromStory({ story, config, seoConfig }) {
440
440
  }
441
441
 
442
442
  function pickImageFromCollection(collection) {
443
- const coverImage = lodash$1.get(collection, ["metadata", "cover-image"]) || {};
443
+ const coverImage = lodash.get(collection, ["metadata", "cover-image"]) || {};
444
444
  if (!coverImage["cover-image-s3-key"]) return {};
445
445
  const alt = collection.summary || collection.name || null;
446
446
  return { image: new quintypeJs.FocusedImage(coverImage["cover-image-s3-key"], coverImage["cover-image-metadata"] || {}), alt };
@@ -449,19 +449,19 @@ function pickImageFromCollection(collection) {
449
449
  // The image is grabbed from the story, else from from the collection
450
450
  function pickImage({ pageType, config, seoConfig, data, url }) {
451
451
  if (pageType === "story-page" && url.query && url.query.cardId) {
452
- const story = lodash$1.get(data, ["data", "story"]) || {};
452
+ const story = lodash.get(data, ["data", "story"]) || {};
453
453
  return pickImageFromCard(story, url.query.cardId) || pickImageFromStory({ story, seoConfig, config });
454
454
  } else if (pageType === "visual-story" && url.query && url.query.cardId) {
455
- const story = lodash$1.get(data, ["story"]) || {};
455
+ const story = lodash.get(data, ["story"]) || {};
456
456
  return pickImageFromCard(story, url.query.cardId) || pickImageFromStory({ story, seoConfig, config });
457
457
  } else if (pageType === "story-page" || pageType === "story-page-amp") {
458
- const story = lodash$1.get(data, ["data", "story"]) || {};
458
+ const story = lodash.get(data, ["data", "story"]) || {};
459
459
  return pickImageFromStory({ story, seoConfig, config });
460
460
  } else if (pageType === "visual-story") {
461
- const story = lodash$1.get(data, ["story"]) || {};
461
+ const story = lodash.get(data, ["story"]) || {};
462
462
  return pickImageFromStory({ story, seoConfig, config });
463
- } else if (lodash$1.get(data, ["data", "collection"])) {
464
- return pickImageFromCollection(lodash$1.get(data, ["data", "collection"]));
463
+ } else if (lodash.get(data, ["data", "collection"])) {
464
+ return pickImageFromCollection(lodash.get(data, ["data", "collection"]));
465
465
  } else {
466
466
  return { image: undefined, alt: undefined };
467
467
  }
@@ -512,7 +512,7 @@ function ImageTags(seoConfig, config, pageType, data, { url = {} }) {
512
512
  })}`
513
513
  });
514
514
  tags.push({ property: "og:image:width", content: 1200 });
515
- if (lodash$1.get(image, ["metadata", "focus-point"])) {
515
+ if (lodash.get(image, ["metadata", "focus-point"])) {
516
516
  tags.push({ property: "og:image:height", content: 630 });
517
517
  }
518
518
  alt && tags.push({ property: "og:image:alt", content: alt });
@@ -548,7 +548,7 @@ function getSchemaHeader({ cssSelector }) {
548
548
 
549
549
  function getSchemaBlogPosting(card = {}, author = {}, headline = "", image = "", structuredData = {}, story = {}, timezone) {
550
550
  const { website: { url = "" } = {} } = structuredData;
551
- const orgUrl = lodash$1.get(structuredData, ["organization", "url"], "");
551
+ const orgUrl = lodash.get(structuredData, ["organization", "url"], "");
552
552
  return Object.assign({}, getSchemaType("BlogPosting"), getSchemaMainEntityOfPage(`${url}/${story.slug}`), getSchemaPublisher(structuredData.organization, orgUrl), {
553
553
  dateModified: stripMillisecondsFromTime(new Date(card["card-updated-at"]), timezone),
554
554
  dateCreated: stripMillisecondsFromTime(new Date(card["card-added-at"]), timezone),
@@ -573,19 +573,19 @@ function getSchemaMainEntityOfPage(id) {
573
573
  }
574
574
 
575
575
  function getSchemaMovieReview(movieObject = {}) {
576
- const movieCreatedAt = lodash$1.get(movieObject, ["created-at"], null);
577
- const actors = lodash$1.get(movieObject, ["actors"], []).map(actor => getSchemaPerson(actor.name));
578
- const directors = lodash$1.get(movieObject, ["directors"], []).map(director => getSchemaPerson(director.name));
579
- const producers = lodash$1.get(movieObject, ["producers"], []).map(producer => getSchemaPerson(producer.name));
576
+ const movieCreatedAt = lodash.get(movieObject, ["created-at"], null);
577
+ const actors = lodash.get(movieObject, ["actors"], []).map(actor => getSchemaPerson(actor.name));
578
+ const directors = lodash.get(movieObject, ["directors"], []).map(director => getSchemaPerson(director.name));
579
+ const producers = lodash.get(movieObject, ["producers"], []).map(producer => getSchemaPerson(producer.name));
580
580
 
581
581
  return {
582
582
  actors: actors,
583
583
  directors: directors,
584
- name: lodash$1.get(movieObject, ["name"], ""),
585
- sameAs: lodash$1.get(movieObject, ["sameAs"], ""),
586
- description: lodash$1.get(movieObject, ["meta-description"], ""),
584
+ name: lodash.get(movieObject, ["name"], ""),
585
+ sameAs: lodash.get(movieObject, ["sameAs"], ""),
586
+ description: lodash.get(movieObject, ["meta-description"], ""),
587
587
  producer: producers,
588
- image: lodash$1.get(movieObject, ["photo", "0", "url"], ""),
588
+ image: lodash.get(movieObject, ["photo", "0", "url"], ""),
589
589
  dateCreated: movieCreatedAt ? new Date(movieCreatedAt).toISOString() : ""
590
590
  };
591
591
  }
@@ -1193,8 +1193,8 @@ class MetaTagList {
1193
1193
  }
1194
1194
 
1195
1195
  toString() {
1196
- const uniqueTags = lodash$1.uniqBy(this.tags.reverse(), tagToKey).reverse();
1197
- return ReactDomServer__default["default"].renderToStaticMarkup(uniqueTags.map(tag => React__default["default"].createElement(tag.tag || "meta", lodash$1.omit(tag, "tag"))));
1196
+ const uniqueTags = lodash.uniqBy(this.tags.reverse(), tagToKey).reverse();
1197
+ return ReactDomServer__default["default"].renderToStaticMarkup(uniqueTags.map(tag => React__default["default"].createElement(tag.tag || "meta", lodash.omit(tag, "tag"))));
1198
1198
  }
1199
1199
 
1200
1200
  addTag() {
@@ -1263,8 +1263,8 @@ class SEO {
1263
1263
  }
1264
1264
 
1265
1265
  getMetaTags(config, pageType, data, params = {}) {
1266
- pageType = lodash$1.get(this.seoConfig, ["pageTypeAliases", pageType], pageType);
1267
- return new MetaTagList(lodash$1.flatMap(this.generators, generator => generator(this.seoConfig, config, pageType, data, params)));
1266
+ pageType = lodash.get(this.seoConfig, ["pageTypeAliases", pageType], pageType);
1267
+ return new MetaTagList(lodash.flatMap(this.generators, generator => generator(this.seoConfig, config, pageType, data, params)));
1268
1268
  }
1269
1269
 
1270
1270
  getTitle(config, pageType, data, params = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/seo",
3
- "version": "1.40.5-static-page-seo.2",
3
+ "version": "1.40.5",
4
4
  "description": "SEO Modules for Quintype",
5
5
  "main": "dist/index.cjs.js",
6
6
  "repository": "https://github.com/quintype/quintype-node-seo",
package/src/text-tags.js CHANGED
@@ -217,7 +217,7 @@ function getSeoData(config, pageType, data, url = {}, seoConfig = {}) {
217
217
  );
218
218
  case "static-page":
219
219
  return (
220
- buildTagsFromStaticPage(config, lodash.get(data, ["data", "page"], {}), url, data) ||
220
+ buildTagsFromStaticPage(config, get(data, ["data", "page"], {}), url, data) ||
221
221
  getSeoData(config, "home-page", data, url)
222
222
  );
223
223
  case "shell":