feat(blog): recreate article footer navigation and related posts
- add reusable live-site-faithful blog footer component - extract previous, next, and related post data from article content - remove duplicated footer fragments from multilingual articles - document the repeatable footer extraction workflow
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import BaseLayout from './BaseLayout.astro';
|
||||
import BlogPostFooter from '../components/BlogPostFooter.astro';
|
||||
import LikeViewCounter from '../components/LikeViewCounter.astro';
|
||||
const { entry } = Astro.props;
|
||||
---
|
||||
@@ -16,4 +17,5 @@ const { entry } = Astro.props;
|
||||
<div class="prose blog-post-body container"><slot /></div>
|
||||
<div class="container"><LikeViewCounter slug={entry.data.slug} /></div>
|
||||
</article>
|
||||
<BlogPostFooter entryId={entry.id} />
|
||||
</BaseLayout>
|
||||
|
||||
Reference in New Issue
Block a user