gatsby-plugin-slug
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "gatsby-plugin-slug", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Add slug field to MarkdownRemark and Mdx nodes", | ||
@@ -24,7 +24,7 @@ "repository": "https://github.com/cedricdelpoux/gatsby-plugin-slug", | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"husky": "^4.2.1", | ||
"lint-staged": "^10.0.7", | ||
"prettier": "1.19.1" | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.4.0", | ||
"prettier": "2.1.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
@@ -1,7 +0,15 @@ | ||
# gatsby-plugin-slug | ||
<div align="center"> | ||
<h1>gatsby-plugin-slug</h1> | ||
Add slug field to `MarkdownRemark` and `Mdx` nodes | ||
[![Npm version][badge-npm]][npm] | ||
[![Npm downloads][badge-npm-dl]][npm] | ||
[![MIT license][badge-licence]](./LICENCE.md) | ||
[![PRs welcome][badge-prs-welcome]](#contributing) | ||
[![npm package][npm-badge]][npm] | ||
</div> | ||
--- | ||
Add slug field to `MarkdownRemark` and `Mdx` nodes. | ||
By default gatsby generate url by following directories structure. | ||
@@ -21,4 +29,2 @@ | ||
[](https://nodei.co/npm/gatsby-plugin-slug/) | ||
You can download `gatsby-plugin-slug` from the NPM registry via the | ||
@@ -71,5 +77,5 @@ `npm` or `yarn` commands | ||
` | ||
).then(result => { | ||
).then((result) => { | ||
const posts = result.data.posts.nodes | ||
posts.forEach(post => { | ||
posts.forEach((post) => { | ||
createPage({ | ||
@@ -131,4 +137,7 @@ path: post.fields.slug, | ||
[npm-badge]: https://img.shields.io/npm/v/gatsby-plugin-slug.svg?style=flat-square | ||
[badge-npm]: https://img.shields.io/npm/v/gatsby-plugin-slug.svg?style=flat-square | ||
[badge-npm-dl]: https://img.shields.io/npm/dt/gatsby-plugin-slug.svg?style=flat-square | ||
[badge-licence]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square | ||
[badge-prs-welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square | ||
[npm]: https://www.npmjs.org/package/gatsby-plugin-slug | ||
[github-issue]: https://github.com/xuopled/gatsby-plugin-slug/issues/new |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6230
141
0