Skip to content

Commit 8302e8a

Browse files
authored
chore: add partner list on security blog post
1 parent e646e29 commit 8302e8a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

apps/site/components/Common/Partners/PartnersLogoList/index.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
display: grid;
55
gap: 16px;
66
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
7+
width: 100%;
78
}

apps/site/layouts/Post.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Preview from '@node-core/ui-components/Common/Preview';
22
import type { FC, PropsWithChildren } from 'react';
33

4+
import Link from '#site/components/Link';
45
import WithAvatarGroup from '#site/components/withAvatarGroup';
56
import WithBlogCrossLinks from '#site/components/withBlogCrossLinks';
67
import WithFooter from '#site/components/withFooter';
@@ -11,6 +12,7 @@ import { mapAuthorToCardAuthors } from '#site/util/author';
1112
import { mapBlogCategoryToPreviewType } from '#site/util/blog';
1213

1314
import styles from './layouts.module.css';
15+
import PartnersLogoList from '../components/Common/Partners/PartnersLogoList';
1416

1517
const PostLayout: FC<PropsWithChildren> = ({ children }) => {
1618
const { frontmatter } = useClientContext();
@@ -37,7 +39,17 @@ const PostLayout: FC<PropsWithChildren> = ({ children }) => {
3739
<Preview title={frontmatter.title!} type={type} />
3840

3941
{children}
40-
42+
{type === 'vulnerability' && (
43+
<section className="flex-col! flex w-full gap-4">
44+
<h2 className="text-center">Thanks by Our Partners</h2>
45+
<p>
46+
We are able to offer security releases proudly due to the
47+
support of these partners
48+
<Link href="/about/partners/"> and more</Link>.
49+
</p>
50+
<PartnersLogoList categories="security" />
51+
</section>
52+
)}
4153
<WithBlogCrossLinks />
4254
</main>
4355
</div>

0 commit comments

Comments
 (0)