diff --git a/package-lock.json b/package-lock.json index eeaa19a9..a0092a55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "hast-util-heading-rank": "^2.1.0", "junk": "^4.0.0", "preact": "^10.7.3", - "rehype-img-size": "^1.0.1", + "rehype-img-size": "github:unicorn-utterances/rehype-img-size#relative-path-full", "rehype-slug-custom-id": "^1.1.0", "rehype-stringify": "^9.0.3", "remark-behead": "^3.1.0", @@ -21249,9 +21249,9 @@ } }, "node_modules/rehype-img-size": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/rehype-img-size/-/rehype-img-size-1.0.1.tgz", - "integrity": "sha512-+rLkxF2H3mQULAg3iA2Z2spJQlBcCpApG8sHC47bc0p33ol+ddz+O3gyUcTgk5xX5jGaj1oQOBs/cBy8nIIhoQ==", + "version": "0.0.1", + "resolved": "git+ssh://git@github.com/unicorn-utterances/rehype-img-size.git#6868057d15abaa94c0240b2d1d62b4f159d3024a", + "license": "MIT", "dependencies": { "image-size": "^1.0.0", "unist-util-visit": "^4.1.0" @@ -41225,9 +41225,8 @@ } }, "rehype-img-size": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/rehype-img-size/-/rehype-img-size-1.0.1.tgz", - "integrity": "sha512-+rLkxF2H3mQULAg3iA2Z2spJQlBcCpApG8sHC47bc0p33ol+ddz+O3gyUcTgk5xX5jGaj1oQOBs/cBy8nIIhoQ==", + "version": "git+ssh://git@github.com/unicorn-utterances/rehype-img-size.git#6868057d15abaa94c0240b2d1d62b4f159d3024a", + "from": "rehype-img-size@github:unicorn-utterances/rehype-img-size#relative-path-full", "requires": { "image-size": "^1.0.0", "unist-util-visit": "^4.1.0" diff --git a/package.json b/package.json index 912a2469..530ad4d2 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "hast-util-heading-rank": "^2.1.0", "junk": "^4.0.0", "preact": "^10.7.3", - "rehype-img-size": "^1.0.1", + "rehype-img-size": "github:unicorn-utterances/rehype-img-size#relative-path-full", "rehype-slug-custom-id": "^1.1.0", "rehype-stringify": "^9.0.3", "remark-behead": "^3.1.0", diff --git a/src/components/BlogPostPreview.astro b/src/components/BlogPostPreview.astro index f935ff8b..f2bdef21 100644 --- a/src/components/BlogPostPreview.astro +++ b/src/components/BlogPostPreview.astro @@ -1,18 +1,20 @@ --- +import { ListViewPosts } from "utils/fs/api"; + export interface Props { - post: any; + post: ListViewPosts[number]; } -const { post } = Astro.props; +const { post } = Astro.props as Props; ---
-

{post.frontmatter.publishDate}

-

{post.frontmatter.title}

+

{post.published}

+

{post.title}

-

{post.frontmatter.description}

- Read more +

{post.description}

+ Read more