Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 970 Bytes

gatsby-theme-blog.mdx

File metadata and controls

35 lines (20 loc) · 970 Bytes

Setup Gatsby Theme Blog

Gatsby theme blog is a great theme for adding blog functionality to your site.

This recipe:


Installs necessary NPM packages.


Installs the gatsby-theme-blog plugin in gatsby-config.js and makes use of the basePath configuration so the blog listing appears at /blog.

<GatsbyPlugin name="gatsby-theme-blog" options={{ basePath: /blog }} />


Adds a post.


When you've finished installing the recipe, run gatsby develop and check out http://localhost:8000/blog for the list of posts.

Example content is available at http://localhost:8000/blog/first-blog.