Skip to content

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kharann committed Nov 21, 2023
1 parent e6a44c0 commit daca52c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions web/src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import BlogPostItem from '../../components/BlogPostItem.astro';
import Section from '../../components/Section.astro';
import Layout from '../../layouts/Layout.astro';
const posts = await getCollection('blog', ({ data }) => {
return data.draft !== true;
});
const posts = await getCollection('blog', ({ data }) => !data.draft);
---

<Layout title="Kharann • All posts">
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Section from '../components/Section.astro';
import Layout from '../layouts/Layout.astro';
const posts = await getCollection("blog", ({data}) => data.draft !== false)
const posts = await getCollection("blog", ({data}) => !data.draft)
---

<Layout title="Kharann • Homepage" description="Anhkha's developer portfolio">
Expand Down Expand Up @@ -39,7 +39,7 @@ const posts = await getCollection("blog", ({data}) => data.draft !== false)
</Section>
<!-- <Section name="Experiences.">
<Experiences experiences={experiences} client:load />
</Section>
<true/Section>
<Section name="Projects.">
I've worked on multiple projects, from commercial ones to small hobby projects.
<br />
Expand Down

1 comment on commit daca52c

@vercel
Copy link

@vercel vercel bot commented on daca52c Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

homepage-web – ./

homepage-web-roan.vercel.app
homepage-web-kharann.vercel.app
homepage-web-git-master-kharann.vercel.app

Please sign in to comment.