From 02dff219dc1affc8ea01ee4f569f289b72df9cf8 Mon Sep 17 00:00:00 2001 From: Surjith S M Date: Sat, 12 Nov 2022 19:15:38 +0530 Subject: [PATCH] image to picture, bug fix --- src/layouts/BlogLayout.astro | 6 +++--- src/pages/blog.astro | 20 +++++++++----------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index 848135e..cd0f7bf 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -17,7 +17,7 @@ const { frontmatter } = Astro.props; class="text-4xl lg:text-5xl font-bold lg:tracking-tight mt-1 lg:leading-tight"> {frontmatter.title} -
+
{frontmatter.author} @@ -25,8 +25,8 @@ const { frontmatter } = Astro.props; - -
+ +
{ frontmatter.tags.map((tag) => ( #{tag} diff --git a/src/pages/blog.astro b/src/pages/blog.astro index 33983a4..1c28e49 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -1,5 +1,5 @@ --- -import { Image } from "@astrojs/image/components"; +import { Picture } from "@astrojs/image/components"; import Container from "@components/container.astro"; import Sectionhead from "@components/sectionhead.astro"; import Layout from "@layouts/Layout.astro"; @@ -30,16 +30,14 @@ console.log(posts[0].frontmatter.image);
  • -
    - Thumbnail -
    +
    {post.frontmatter.category}