Skip to content

Commit

Permalink
fix: blog landing page having problem with showing 2 authors names (a…
Browse files Browse the repository at this point in the history
…syncapi#3051)

Co-authored-by: asyncapi-bot <[email protected]>%0ACo-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
TenzDelek and derberg committed Jul 26, 2024
1 parent 1ab6e4a commit 63d64bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion components/campaigns/AnnouncementHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn
</div>
)}
<div className='relative flex w-5/6 flex-col items-center justify-center gap-2'>
<div className='relative flex items-center justify-center min-h-72 w-full overflow-hidden lg:h-[17rem] lg:w-[38rem]'>
<div className='relative flex min-h-72 w-full items-center justify-center overflow-hidden lg:h-[17rem] lg:w-[38rem]'>
{banners.map(
(banner, index) =>
banner.show && (
Expand Down
12 changes: 0 additions & 12 deletions components/helpers/read-yaml-file.js

This file was deleted.

6 changes: 5 additions & 1 deletion components/navigation/BlogPostItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ export default forwardRef(function BlogPostItem(
author.name
)
)
.reduce((prev, curr) => [prev, ' & ', curr].join(''))}
.reduce((prev, curr) => (
<>
{prev} & {curr}
</>
))}
</span>
</Heading>
<Paragraph typeStyle={ParagraphTypeStyle.sm} className='flex'>
Expand Down
2 changes: 1 addition & 1 deletion pages/casestudies/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { MDXRemoteSerializeResult } from 'next-mdx-remote';
import { MDXRemote } from 'next-mdx-remote';
import { serialize } from 'next-mdx-remote/serialize';

import { readYamlFile } from '@/components/helpers/read-yaml-file';
import type { ICaseStudy } from '@/types/post';
import { HeadingTypeStyle } from '@/types/typography/Heading';
import { ParagraphTypeStyle } from '@/types/typography/Paragraph';
Expand All @@ -14,7 +15,6 @@ import Heading from '../../components/typography/Heading';
import Paragraph from '../../components/typography/Paragraph';
import CaseStudiesList from '../../config/case-studies.json';
import { generateCaseStudyContent } from '../../utils/staticHelpers';
import { readYamlFile } from '@/components/helpers/read-yaml-file';

interface IndexProps {
casestudy: ICaseStudy;
Expand Down

0 comments on commit 63d64bf

Please sign in to comment.