From 2fb29ecceb6851a5e94641ca7191e96ffbf92e8b Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Wed, 1 Nov 2023 17:47:16 +1100 Subject: [PATCH] feat: :sparkles: add new logo field and include --- packages/ripple-nuxt-tide/lib/core/tide.js | 3 ++- packages/ripple-nuxt-tide/lib/layouts/default.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ripple-nuxt-tide/lib/core/tide.js b/packages/ripple-nuxt-tide/lib/core/tide.js index 48d588317..308769515 100644 --- a/packages/ripple-nuxt-tide/lib/core/tide.js +++ b/packages/ripple-nuxt-tide/lib/core/tide.js @@ -180,7 +180,8 @@ export const tide = (axios, site, config) => ({ siteId = siteId || site const include = [ 'field_site_logo', - 'field_site_footer_logos.field_paragraph_media.field_media_image' + 'field_site_footer_logos.field_paragraph_media.field_media_image', + 'field_site_footer_logos.field_feature_image' ] if (this.isModuleEnabled('alert')) { diff --git a/packages/ripple-nuxt-tide/lib/layouts/default.vue b/packages/ripple-nuxt-tide/lib/layouts/default.vue index cdf0cc7b1..bc84a83aa 100644 --- a/packages/ripple-nuxt-tide/lib/layouts/default.vue +++ b/packages/ripple-nuxt-tide/lib/layouts/default.vue @@ -170,7 +170,7 @@ export default { logos.push({ alt: logoLink.text, url: logoLink.url, - src: logo.field_paragraph_media.field_media_image.url + src: logo.field_paragraph_media?.field_media_image.url || logo.field_feature_image?.url }) }) }