diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 6c59086d..00000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -enable-pre-post-scripts=true diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index fe833704..20542a1e 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -18,6 +18,7 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props + @@ -40,7 +41,7 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props -{title} +{title} diff --git a/src/components/BlogList.astro b/src/components/BlogList.astro new file mode 100644 index 00000000..fa5d71d3 --- /dev/null +++ b/src/components/BlogList.astro @@ -0,0 +1,105 @@ +--- +import type { CollectionEntry } from 'astro:content' +import FormattedDate from '@/components/FormattedDate.astro' +import Svg from '@/components/Svg/index.astro' + +type Props = { + entries: CollectionEntry<'blog'>[] + kind: 'blog' | 'taxonomy' +} + +const { entries, kind } = Astro.props +--- + +{ + entries.length !== 0 ? ( + + ) : ( +

Woops! No entry found..

+ ) +} + diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 524dd3b7..82491671 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,7 +2,7 @@ const today = new Date() --- -