File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default defineConfig({
2020 Sidebar : './src/components/overrides/Sidebar.astro' ,
2121 SocialIcons : './src/components/overrides/SocialIcons.astro' ,
2222 LastUpdated : "./src/components/overrides/LastUpdated.astro" ,
23+ Head : './src/components/overrides/CustomHead.astro' ,
2324 } ,
2425 lastUpdated : true ,
2526 // credits: true,
Original file line number Diff line number Diff line change 1+ ---
2+ import type { Props } from ' @astrojs/starlight/props' ;
3+ import Default from ' @astrojs/starlight/components/Head.astro' ;
4+
5+ const html = await Astro .slots .render (' default' );
6+ ---
7+ <Default {... Astro .props } />
8+
9+ <script is:inline >
10+ document.addEventListener('astro:page-load', () => {
11+ if (document.title.includes(' | ')) {
12+ document.title = document.title.replace(' | ', ' - ');
13+ }
14+ });
15+
16+ if (document.title.includes(' | ')) {
17+ document.title = document.title.replace(' | ', ' - ');
18+ }
19+ </script >
Original file line number Diff line number Diff line change 1212 - tag : meta
1313 attrs :
1414 property : og:title
15- content : " Welcome | Jozelot Docs"
15+ content : " Welcome - Jozelot Docs"
1616 - tag : meta
1717 attrs :
1818 property : og:image
You can’t perform that action at this time.
0 commit comments