Skip to content

Commit

Permalink
Merge pull request #1593 from milvus-io/fix/meta-title
Browse files Browse the repository at this point in the history
fix: meta title
  • Loading branch information
zhanshuyou authored Sep 6, 2024
2 parents ca3649e + 07c8e93 commit ad389d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/localization/DocDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import clsx from 'clsx';
import { DocDetailPageProps } from '@/types/docs';
import { LanguageEnum } from '@/components/language-selector';

const DOC_HOME_TITLE = 'Milvus vector database documentation';

export function DocDetailPage(props: DocDetailPageProps) {
const {
homeData,
Expand Down Expand Up @@ -61,7 +59,7 @@ export function DocDetailPage(props: DocDetailPageProps) {

const seoInfo = useMemo(() => {
const title = isHome
? DOC_HOME_TITLE
? t('metaTitle')
: `${frontMatter?.title || headingContent}`;

const pageTitle =
Expand Down

0 comments on commit ad389d2

Please sign in to comment.