Skip to content

Commit

Permalink
📝 Remove extra directory in slug
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcarpenter committed Jan 5, 2024
1 parent f7ae557 commit 35c503f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion landing/src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SITE_TITLE } from '../consts';
type Props = CollectionEntry<'blog'>['data'];
const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
const { title, description } = Astro.props;
---

<Base overrideDescription={description} overrideTitle={title}>
Expand Down
5 changes: 1 addition & 4 deletions landing/src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ const posts = (await getCollection('blog')).sort(
posts.map((post) => (
<li class="grid grid-cols-[1fr] md:grid-cols-[1fr_auto] mb-3 md:gap-2 items-start">
<div class="before:float-left before:leading-7 before:text-red-300 before:text-sm before:mr-2 before:content-['>>']">
<a
href={`blog/${post.slug}`}
class="unset hover:text-navy-light"
>
<a href={`${post.slug}`} class="unset hover:text-navy-light">
<h4 class="font-bold font-title">{post.data.title}</h4>
</a>
</div>
Expand Down

0 comments on commit 35c503f

Please sign in to comment.