Skip to content

Commit 1ecb4f2

Browse files
Docs: fix 'Duplicate id warning-data-bs-title-vs-title found' (#42038)
1 parent a917c1e commit 1ecb4f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/src/libs/content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getCollection, getEntry, getEntryBySlug } from 'astro:content'
1+
import { getCollection, getEntry } from 'astro:content'
22

33
export const docsPages = await getCollection('docs')
44
export const callouts = await getCollection('callouts')
@@ -9,7 +9,7 @@ export const aliasedDocsPages = await getCollection('docs', ({ data }) => {
99
})
1010

1111
export function getCalloutByName(name: string) {
12-
return getEntryBySlug('callouts', name)
12+
return getEntry('callouts', name)
1313
}
1414

1515
export function getDetailsByName(name: string) {

0 commit comments

Comments
 (0)