Add gist code loading

This commit is contained in:
Defectink
2022-04-24 10:24:53 +08:00
parent 23a8f1be77
commit a659b1e753
7 changed files with 52 additions and 14 deletions

View File

@ -6,7 +6,7 @@ const Image = ({ alt, ...rest }: Props) => {
return (
<>
<span className="block text-center">
<NextImage alt={alt} {...rest} />
<NextImage alt={alt} placeholder="blur" {...rest} />
{alt && <span className="block text-center text-gray-400">{alt}</span>}
</span>
</>