-
- {post.title}
-
-
-
- {formatDate(post.date_published)}
-
-
- {post.tags
- ?.filter((tag) => tag !== "post" && tag !== "page")
- .map((tag) => (
- {
- e.preventDefault()
- router.push(`/tag/${tag}`)
- }}
- >
- #{tag}
-
- ))}
-
-
-
- {excerpt}
- {excerpt && "..."}
-
+
+
+
+ {post.title}
+
+
+
+ {formatDate(post.date_published)}
+
+
+ {post.tags
+ ?.filter((tag) => tag !== "post" && tag !== "page")
+ .map((tag) => (
+ {
+ e.preventDefault()
+ router.push(`/tag/${tag}`)
+ }}
+ >
+ #{tag}
+
+ ))}
+
- {post.cover && (
-
-
-
- )}
-
+
+ {excerpt}
+ {excerpt && "..."}
+
+
+ {post.cover && (
+
+
+
+ )}
)
})}
diff --git a/src/components/ui/Image.tsx b/src/components/ui/Image.tsx
index 7ae09115..a899642a 100644
--- a/src/components/ui/Image.tsx
+++ b/src/components/ui/Image.tsx
@@ -11,11 +11,11 @@ export const Image: React.FC<
height?: number | string
} & React.HTMLAttributes
&
ImageProps
-> = ({ layout, className, alt, src, width, height, ...props }) => {
+> = ({ fill, className, alt, src, width, height, ...props }) => {
src = toIPFS(src)
const [paddingTop, setPaddingTop] = React.useState("0")
const [autoWidth, setAutoWidth] = React.useState(0)
- const autoSize = !width && !height && !layout
+ const autoSize = !width && !height && !fill
return (
{
if (autoSize) {
const { naturalWidth, naturalHeight } = target as HTMLImageElement
diff --git a/src/components/ui/UniLink.tsx b/src/components/ui/UniLink.tsx
index 6cdccda0..e2e39dae 100644
--- a/src/components/ui/UniLink.tsx
+++ b/src/components/ui/UniLink.tsx
@@ -35,8 +35,8 @@ export const UniLink: React.FC<{
}
return (
-
- {children}
+
+ {children}
)
}