@@ -7,7 +7,6 @@ import { getEntry } from "astro:content";
77import { getOgImage } from " ~/util/og" ;
88import type { CollectionEntry } from " astro:content" ;
99
10- const DEFAULT_TITLE_DELIMITER = " |" ;
1110const NOINDEX_PRODUCTS = [" email-security" , " style-guide" , " security" ];
1211
1312const currentSection = Astro .url .pathname .split (" /" )[1 ].replaceAll (" ." , " " );
@@ -32,9 +31,7 @@ if (currentSection) {
3231 let title: string ;
3332
3433 if (titleIdx !== - 1 ) {
35- const existingTitle = head [titleIdx ].content ?.split (
36- ` ${DEFAULT_TITLE_DELIMITER } ` ,
37- )[0 ];
34+ const existingTitle = head [titleIdx ].content ;
3835 title = ` ${existingTitle } · ${product .data .meta .title } ` ;
3936
4037 head [titleIdx ] = {
@@ -83,26 +80,6 @@ if (shouldNoIndex) {
8380 });
8481}
8582
86- if (
87- frontmatter .description &&
88- head .findIndex (
89- ({ tag , attrs }) => tag === " meta" && attrs ?.name === " description" ,
90- ) === - 1
91- ) {
92- const existingOpenGraphTag = head .findIndex (
93- ({ tag , attrs }) => tag === " meta" && attrs ?.property === " og:description" ,
94- );
95-
96- if (existingOpenGraphTag !== - 1 ) {
97- head [existingOpenGraphTag ].attrs ! .content = frontmatter .description ;
98- }
99-
100- metaTags .push ({
101- name: " description" ,
102- content: frontmatter .description as string ,
103- });
104- }
105-
10683if (frontmatter .pcx_content_type ) {
10784 [" pcx_content_type" , " algolia_content_type" ].map ((name ) => {
10885 metaTags .push ({
0 commit comments