Skip to content

Commit

Permalink
feat: ✨ add new logo field and include
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingallday committed Nov 1, 2023
1 parent e8b8828 commit 2fb29ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/ripple-nuxt-tide/lib/core/tide.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-nuxt-tide/lib/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
})
}
Expand Down

0 comments on commit 2fb29ec

Please sign in to comment.