Section Component
Blog Navigation
A navigation component that provides previous and next links between sequential blog posts. This component automatically integrates with Metalsmith's collections plugin to display contextual navigation at the end of blog articles.
How It Works
Unlike most section components, blog-navigation doesn't use frontmatter configuration for its content. Instead, it reads previous and next variables that are automatically populated by Metalsmith's collections plugin when processing blog posts.
The component only renders when a page has previous or next posts available, making it safe to include in any blog post template.
Live Example
To see this component in action, visit any blog post on this site. For example, check the bottom of theSample Blog Postto see the previous and next navigation links.