Skip to content

Commit 6c52840

Browse files
committed
Move page description in 'News' & 'Posts' pages
1 parent 2e17ea2 commit 6c52840

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/pages/blog.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const BlogPage = (): JSX.Element => (
2323
layoutTitle={PAGE.blog}
2424
containerTitle={SECTION.blog}
2525
posts={postsContent.posts}
26+
description="Here you will find all the blog posts explaining how to use the
27+
libraries developed by Process Analytics, as well as those explaining
28+
how they were developed using external technical tools, and more."
2629
/>
2730
);
2831

src/pages/news.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const NewsPage = (): JSX.Element => (
2323
layoutTitle={PAGE.news}
2424
containerTitle={SECTION.news}
2525
posts={newsContent.news}
26+
description=""
2627
/>
2728
);
2829

src/theme/pages/PageWithPosts.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ interface PageWithPostsProps {
3131
layoutTitle: PAGE;
3232
containerTitle: SECTION;
3333
posts: PostDescription[];
34+
description: string;
3435
}
3536

3637
export const PageWithPosts = ({
3738
layoutTitle,
3839
containerTitle,
3940
posts,
41+
description,
4042
}: PageWithPostsProps): JSX.Element => (
4143
<Layout title={layoutTitle}>
4244
<PageHeader />
@@ -61,10 +63,7 @@ export const PageWithPosts = ({
6163
style={centerHorizontally}
6264
>
6365
<Text width={[300, 700]} key="presentation">
64-
{/*TODO move to content for a specific content for blog and news*/}
65-
Here you will find all the blog posts explaining how to use the
66-
libraries developed by Process Analytics, as well as those explaining
67-
how they were developed using external technical tools, and more.
66+
{description}
6867
</Text>
6968
</Heading>
7069
<PostContainer posts={posts} />

0 commit comments

Comments
 (0)