MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / BlogListPageMetadata

Function BlogListPageMetadata

src/theme/BlogListPage/index.tsx:17–31  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

15import { pushGtmEvent } from "@site/src/utils/pushGtmEvent";
16
17function BlogListPageMetadata(props: Props): JSX.Element {
18 const { metadata } = props;
19 const {
20 siteConfig: { title: siteTitle },
21 } = useDocusaurusContext();
22 const { blogDescription, blogTitle, permalink } = metadata;
23 const isBlogOnlyMode = permalink === "/";
24 const title = isBlogOnlyMode ? siteTitle : blogTitle;
25 return (
26 <>
27 <PageMetadata title={title} description={blogDescription} />
28 <SearchMetadata tag="blog_posts_list" />
29 </>
30 );
31}
32
33function BlogListPageContent(props: Props): JSX.Element {
34 const { metadata, items, sidebar } = props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected