We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a58fc commit b8e5cb6Copy full SHA for b8e5cb6
packages/docs/src/components/Seo.tsx
@@ -44,17 +44,24 @@ const SEO = ({ title, description, name, image, article, pro }: SEOProps) => {
44
}
45
46
const breadcrumbList = (startIndex = 1) => {
47
- return seo.url
+ constsegments= seo.url
48
.replace('docs//', 'docs/')
49
.replace(siteUrl, '')
50
.split('/')
51
.filter(Boolean)
52
- .map((item, index) => ({
+
53
+ return segments.map((item, index) => {
54
+ const pathSegments = segments.slice(0, index + 1)
55
+ const path = pathSegments.join('/')
56
+ const fullPath = `${siteUrl}/${path}/`.replaceAll(/([^:])\/+/g, '1ドル/') // Zastąp wielokrotne slashe, ale nie po dwukropku
57
58
+ return {
59
'@type': 'ListItem',
60
position: index + startIndex,
61
name: humanize(item),
- item: `${siteUrl}${item}`,
- }))
62
+ item: fullPath,
63
+ }
64
+ })
65
66
67
const getDynamicDescription = (pathname: string, name?: string): string => {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments