@@ -91,9 +91,7 @@ For users who need advanced customization or want to understand the underlying c
9191
9292 const language = $ (" html" ).attr (" lang" ) || " en" ;
9393
94- // Extract cleaner title (without " - Algolia" suffix)
95- const rawTitle = $ (" head > title" ).text ();
96- const title = rawTitle .replace (/ - Algolia$ / , " " );
94+ const title = $ (" head > title" ).text ();
9795
9896 // Get the main heading for better searchability
9997 const h1 = $ (" main h1" ).first ().text ();
@@ -420,9 +418,7 @@ import TabItem from '@theme/TabItem';
420418
421419 const language = $ (" html" ).attr (" lang" ) || " en" ;
422420
423- // Extract cleaner title (without " - Algolia" suffix)
424- const rawTitle = $ (" head > title" ).text ();
425- const title = rawTitle .replace (/ - Algolia$ / , " " );
421+ const title = $ (" head > title" ).text ();
426422
427423 // Get the main heading for better searchability
428424 const h1 = $ (" main h1" ).first ().text ();
@@ -488,9 +484,7 @@ import TabItem from '@theme/TabItem';
488484 const docusaurus_tag =
489485 $ (' meta[name="docsearch:docusaurus_tag"]' ).attr (" content" ) || " " ;
490486
491- // Extract cleaner title (without " - Algolia" suffix)
492- const rawTitle = $ (" head > title" ).text ();
493- const title = rawTitle .replace (/ - Algolia$ / , " " );
487+ const title = $ (" head > title" ).text ();
494488
495489 // Get the main heading for better searchability
496490 const h1 = $ (" main h1" ).first ().text ();
@@ -556,9 +550,7 @@ import TabItem from '@theme/TabItem';
556550
557551 const language = $ (" html" ).attr (" lang" ) || " en" ;
558552
559- // Extract cleaner title (without " - Algolia" suffix)
560- const rawTitle = $ (" head > title" ).text ();
561- const title = rawTitle .replace (/ - Algolia$ / , " " );
553+ const title = $ (" head > title" ).text ();
562554
563555 // Get the main heading for better searchability
564556 const h1 = $ (" main h1" ).first ().text ();
@@ -618,9 +610,7 @@ import TabItem from '@theme/TabItem';
618610
619611 const language = $ (" html" ).attr (" lang" ) || " en" ;
620612
621- // Extract cleaner title (without " - Algolia" suffix)
622- const rawTitle = $ (" head > title" ).text ();
623- const title = rawTitle .replace (/ - Algolia$ / , " " );
613+ const title = $ (" head > title" ).text ();
624614
625615 // Get the main heading for better searchability
626616 const h1 = $ (" main h1" ).first ().text ();
0 commit comments