Skip to content

Commit

Permalink
✨ Enable internal link option for newsroom ingress #2134 (#2146)
Browse files Browse the repository at this point in the history
  • Loading branch information
padms authored Mar 11, 2024
1 parent 26f5cda commit e8a2bb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sanityv3/schemas/documents/newsroom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const textContentType = configureBlockContent({
h3: false,
h4: false,
externalLink: false,
internalLink: false,
internalLink: true,
lists: false,
attachment: false,
})
Expand Down
6 changes: 5 additions & 1 deletion web/lib/queries/newsroom.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import markDefs from './common/blockEditorMarks'
import { sameLang } from './common/langAndDrafts'
import { seoAndSomeFields } from './common/seoAndSomeFields'

Expand All @@ -6,6 +7,9 @@ export const newsroomQuery = /* groq */ `
_id,
"seoAndSome": ${seoAndSomeFields},
title,
ingress,
ingress[]{
...,
${markDefs},
},
backgroundImage
}`

0 comments on commit e8a2bb8

Please sign in to comment.