🖼️ added images support
- Should investigate how to resize the image from .md specs
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Link from 'next/link';
|
||||
import { TagInfo } from '@/lib/tags';
|
||||
import Link from 'next/link'
|
||||
import { TagInfo } from '@/lib/tags'
|
||||
|
||||
interface TagCloudProps {
|
||||
tags: Array<TagInfo & { size: 'sm' | 'md' | 'lg' | 'xl' }>;
|
||||
tags: Array<TagInfo & { size: 'sm' | 'md' | 'lg' | 'xl' }>
|
||||
}
|
||||
|
||||
export function TagCloud({ tags }: TagCloudProps) {
|
||||
@@ -11,7 +11,7 @@ export function TagCloud({ tags }: TagCloudProps) {
|
||||
md: 'text-sm',
|
||||
lg: 'text-base font-bold',
|
||||
xl: 'text-lg font-bold',
|
||||
};
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-wrap gap-4 items-baseline">
|
||||
@@ -32,5 +32,5 @@ export function TagCloud({ tags }: TagCloudProps) {
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user