You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sections.current.default===false&&// Only if the current section is not the default one
105
+
sections.list.filter((section)=>section.object==='site-section').length>1// Only if there are multiple sections
106
+
){
107
+
title.push(sections.current.title);
108
+
}
109
+
if(
110
+
siteSpaces.length>1&&// Only if there are multiple variants
111
+
siteSpace.default===false&&// Only if the variant is not the default one
112
+
siteSpaces.filter((space)=>space.space.language===siteSpace.space.language).length>1// Only if there are multiple variants *for the current language*. This filters out spaces that are "just" translations of each other, not versions.
// Prevent duplicate titles by comparing against the page title.
140
+
page.title!==siteStructureTitle ? siteStructureTitle : null,// The first page of a section is often the same as the section title, so we don't need to show it.
141
+
page.title!==site.title ? site.title : null,// The site title can also be the same as the site title on the site's landing page.
142
+
]
143
+
.filter(Boolean)
144
+
.join(' | '),
113
145
description: page.description??'',
114
146
alternates: {
115
147
// Trim trailing slashes in canonical URL to match the redirect behavior
0 commit comments