Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement frontmatter.tags and "/tags/:tag" pages #1

Merged
merged 7 commits into from Apr 8, 2019

Conversation

Projects
None yet
1 participant
@erikthedeveloper
Copy link
Owner

commented Mar 29, 2019

Before migrating my existing posts over from Ghost, I needed to implement tags on this Gatsby blog. Fortunately, the Gatsby docs once again have a great guide for exactly this: Creating Tags Pages for Blog Posts.

  • Enable importing ESM modules from gatsby-node.js
  • Implement frontmatter.tags and "/tags/:tag" pages
  • New post: Adding tags to a Gatsby blog

For more details, see the newly added post. The gist of the process was:

  1. Add tags to posts via frontmatter
  2. Create "/tags/:tag" pages to display posts filtered by tag
  3. Display tags in the post template

@erikthedeveloper erikthedeveloper changed the base branch from master to master-02 Mar 29, 2019

@erikthedeveloper erikthedeveloper changed the base branch from master-02 to master Mar 29, 2019

@erikthedeveloper erikthedeveloper merged commit 481e598 into master Apr 8, 2019

1 check failed

netlify/erikaybar/deploy-preview Deploy preview failed.
Details

@erikthedeveloper erikthedeveloper deleted the frontmatter-tags branch Apr 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.