How To Generate A Slug In Gatsby.JS

Akiko Green
Nerd For Tech
Published in
4 min readApr 19, 2021

--

image of a slug — Bay Nature

You read the title right! In this article, we will be talking about slugs and how to generate a slug for a post in a blog component using Gatsby.js.

What Is A Slug?

By programming definition, a Slug is a unique identifier of a web address, usually seen at the end of a URL. It may also be the final component when a new document is created under a parent document; for…

--

--

Akiko Green
Nerd For Tech

Software Engineer, Novice Blogger, Indoor Climbing Cutie 🥰