]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: fix 'Duplicate id warning-data-bs-title-vs-title found' (#42038)
authorJulien Déramond <juderamond@gmail.com>
Mon, 26 Jan 2026 19:21:50 +0000 (20:21 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Jan 2026 19:21:50 +0000 (20:21 +0100)
site/src/libs/content.ts

index 1e3a171d15657343a90dd6cbe053c747433454af..084af32732dc619423aca08fe79e019fe354e6a3 100644 (file)
@@ -1,4 +1,4 @@
-import { getCollection, getEntry, getEntryBySlug } from 'astro:content'
+import { getCollection, getEntry } from 'astro:content'
 
 export const docsPages = await getCollection('docs')
 export const callouts = await getCollection('callouts')
@@ -9,7 +9,7 @@ export const aliasedDocsPages = await getCollection('docs', ({ data }) => {
 })
 
 export function getCalloutByName(name: string) {
-  return getEntryBySlug('callouts', name)
+  return getEntry('callouts', name)
 }
 
 export function getDetailsByName(name: string) {