{"_id":"@aaromp/gatsby-source-ghost","_rev":"3-34090751f17787b6ada33f5ce1d0b0b6","name":"@aaromp/gatsby-source-ghost","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@aaromp/gatsby-source-ghost","version":"1.0.0","description":"Gatsby source plugin for building websites using the Ghost API as a data source.","repository":{"type":"git","url":"git+ssh://git@github.com/aaromp/gatsby-source-ghost.git"},"author":{"name":"Ghost Foundation"},"license":"MIT","keywords":["gatsby","ghost","gatsby-plugin","gatsby-source-plugin"],"scripts":{"lint":"eslint . --ext .js --cache","posttest":"yarn lint","test":"NODE_ENV=testing mocha -- $(find test -name '*.test.js')","preship":"yarn test","ship":"STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push --follow-tags; fi"},"devDependencies":{"eslint":"7.6.0","eslint-plugin-ghost":"1.5.0","mocha":"8.1.1","proxyquire":"2.1.3","should":"13.2.3","sinon":"9.0.3"},"dependencies":{"@tryghost/content-api":"1.4.2","bluebird":"3.7.2","cheerio":"1.0.0-rc.3","gatsby-node-helpers":"0.3.0","qs":"6.9.4"},"bugs":{"url":"https://github.com/aaromp/gatsby-source-ghost/issues"},"homepage":"https://github.com/aaromp/gatsby-source-ghost#readme","main":"index.js","directories":{"test":"test"},"gitHead":"597615efca43fc6bd48879eddbae61bde48d5ebb","_id":"@aaromp/gatsby-source-ghost@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.7","dist":{"integrity":"sha512-JTMryTubDdtqT+aYZ96ML3wd60kzwM3aO2Uhcy4/C413xvoH/NYHD3rlqThaecQMb5m01u2Zh8P/TK4W4P0QcQ==","shasum":"46b0b7465632ec48b065653715ad54c4f01dc88d","tarball":"https://registry.npmjs.org/@aaromp/gatsby-source-ghost/-/gatsby-source-ghost-1.0.0.tgz","fileCount":20,"unpackedSize":28057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM4SdCRA9TVsSAnZWagAAa3cQAKSHyeNKKMS4YMq8Mzpi\nvVjseOPpu8EjX+gqTC5HWexWZVbERvIDg3OBNtfZhz0HSL7HOymd+tocY9gV\nE20zy4cyjPU/NrzuqcT9aEg5AMajIA2+VOvQ5BrOMxNEifQjDRHfWFRavDfV\nYXi8q3UoLegWQI3oRtXkkGsC0EsxGiINNGacvLfQUSKson+drxuZiKlfP3j+\nLulhqv4SIWZ4ePfz1SPKtIQHvdxTLnb4goJad/+D2jOoQlz9FiAlJ2npPANr\nrx3Yh1+hANjEkOkRPIk88Z2oIJtnr4sHPA3ta6w12J/wriLXkkO0/rDWcX+5\nLgEjxG/qpnMfKCNyJNLTjXwmP5AlgatRwLZrqqjqmZ9PbknZ1p687BBYTicg\n5NcV280dPk/LinVkjLhpU+B2An9RXAgHkWwaGBcF2SD1bD7JiH/oHSt4gLPY\n93m1YJUiM3Nem9Rp2siDThDM/y0hvRpPlefGbkAJZ1tZgytU9aN2vq6Qn7rF\nQB7Xy9om+/i4C1inHjtDojlmSWW3eSoTbmJO+aC1VHnnFP4imTH8qHi0EzcO\nYtei70Hp2fo2mXif6E0waBWyWUmZRQQyiXzAu8Ii0xah7VbhG+UUR+Rq9pTJ\ndhqmDFC4lFYODiEIBoZCr6OVMG3t6EK5BNZes5AsPmOTuinXMGmatyxW19E5\nQz+R\r\n=yHS0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBNboiNMCSu3k76leiKZpJVVpc2SZh0uQu3TZwzVriRAiEA6wNJRycEH2R/1ktE3oBT2EgLtzTv6P1XLC+wOzsx46k="}]},"maintainers":[{"name":"aaromp","email":"aaron.wa@gmail.com"}],"_npmUser":{"name":"aaromp","email":"aaron.wa@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-ghost_1.0.0_1597211805169_0.22699000044623863"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aaromp/gatsby-source-ghost","version":"1.0.1","description":"Gatsby source plugin for building websites using the Ghost API as a data source.","repository":{"type":"git","url":"git+ssh://git@github.com/aaromp/gatsby-source-ghost.git"},"author":{"name":"Ghost Foundation"},"license":"MIT","keywords":["gatsby","ghost","gatsby-plugin","gatsby-source-plugin"],"scripts":{"lint":"eslint . --ext .js --cache","posttest":"yarn lint","test":"NODE_ENV=testing mocha -- $(find test -name '*.test.js')","preship":"yarn test","ship":"STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push --follow-tags; fi"},"devDependencies":{"eslint":"7.6.0","eslint-plugin-ghost":"1.5.0","mocha":"8.1.1","proxyquire":"2.1.3","should":"13.2.3","sinon":"9.0.3"},"dependencies":{"@tryghost/content-api":"1.4.2","bluebird":"3.7.2","cheerio":"1.0.0-rc.3","gatsby-node-helpers":"0.3.0","qs":"6.9.4"},"gitHead":"6f90bb90ede2eb05e59c4703455eebeae1e623bc","bugs":{"url":"https://github.com/aaromp/gatsby-source-ghost/issues"},"homepage":"https://github.com/aaromp/gatsby-source-ghost#readme","_id":"@aaromp/gatsby-source-ghost@1.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.7","dist":{"integrity":"sha512-lnmQ47WL6TmP/ouBTAC9GQdoaogmkSn06zZFttYWVHMdOj20BTjs1u3bMNQ+BztrOpv7P40aUE1BknqadSbtzA==","shasum":"a655f0d91692743ab8e818e2e81b540cac34e993","tarball":"https://registry.npmjs.org/@aaromp/gatsby-source-ghost/-/gatsby-source-ghost-1.0.1.tgz","fileCount":20,"unpackedSize":27839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM5CBCRA9TVsSAnZWagAAutoP/ipffJ7JjIyZI8nCm945\nMk7u8S2VFlHZS11By9hcEj7W6k4WidqGynvEV5QzPIT5aTqvkd+tIKkuXFZB\ndvXRyE0V2XxbyjWnMKqoYjHlOtjHxOIldNBotdLc1TBRSSMCXtWBnzRfujFZ\nqTkiEnLrdTJOMRmm/Kjmzo7chUlvqu9bsElvWnW3zIUy5iDCit+JkjCd71sN\nl2DC/fYQ43nXMCLJqYJ9zgreNVmsKfomypeQKWcYT2Dj9nkKsafQmDp1877d\nZ/oUhXV+WwZPe5NuvKqny1Q4KGBZOI5FAwNIn23GKu7oz0+E3j3KZALNuQ2R\nA355BmuJiwO0xu1Qv2wfBa5N2MrOJ7Z7Q7fvY6AQ7kgb0/zm2nu3mHxwAvNp\n8Ww5wAcHCvuB5dOBvIbupdSnPgI8iJOOz4lvicm5oa2l18C2dwQ+en1SrpBG\njCUtCuEyM7T3qygXnX9Z0voaPNjhA7mnQtEqeT7FOUQOH+6w2B786Zhn4C9w\n/Ux2LkFh/3Xww7hnTdqdPROW7X5QLfsCfaiwEKVGOOsWky7mNLsqZ1X+2ZDC\nSE6ZZWubH3PihkSm9tjoLiRZ1vSzEfLAhWqCmdufnmqlYDUi9n/5D3zKCL9W\nWIGcW29432b35DKTyDXHb39tcrsCyjQtB63m6FRui3Rk/1fsc7jchVabxVVE\nu5sv\r\n=GA+A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC09cvRTRYL6qfO/tmeuvWWdVeSfNc++LW5ORadwnS+xgIhAJ0SitqfNL0kudhQOzhLc3fJUkwsRFg7t0Zu+IH5cyZ4"}]},"maintainers":[{"name":"aaromp","email":"aaron.wa@gmail.com"}],"_npmUser":{"name":"aaromp","email":"aaron.wa@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-ghost_1.0.1_1597214849218_0.9893034542391226"},"_hasShrinkwrap":false},"2.0.0":{"name":"@aaromp/gatsby-source-ghost","version":"2.0.0","description":"Gatsby source plugin for building websites using the Ghost API as a data source.","repository":{"type":"git","url":"git+ssh://git@github.com/aaromp/gatsby-source-ghost.git"},"author":{"name":"Ghost Foundation"},"license":"MIT","keywords":["gatsby","ghost","gatsby-plugin","gatsby-source-plugin"],"scripts":{"lint":"eslint . --ext .js --cache","posttest":"yarn lint","test":"NODE_ENV=testing mocha -- $(find test -name '*.test.js')","preship":"yarn test","ship":"STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push --follow-tags; fi"},"devDependencies":{"eslint":"7.6.0","eslint-plugin-ghost":"1.5.0","mocha":"8.1.1","proxyquire":"2.1.3","should":"13.2.3","sinon":"9.0.3"},"dependencies":{"@tryghost/content-api":"1.4.2","bluebird":"3.7.2","cheerio":"1.0.0-rc.3","gatsby-node-helpers":"0.3.0","qs":"6.9.4"},"gitHead":"249366ef1e5214a9c8c68a5ae794bdc587f8556d","bugs":{"url":"https://github.com/aaromp/gatsby-source-ghost/issues"},"homepage":"https://github.com/aaromp/gatsby-source-ghost#readme","_id":"@aaromp/gatsby-source-ghost@2.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Uz3xGXRJBdSTxO1dbMUZnWoTlRHpdYv3Bc8opjKUesGkUZ0rRVgnIQTd3voJN+LMABAbHXiAFMl5aE4AYaeG2A==","shasum":"b174f76cf46b019e5ede5d38d60a1083a78f1342","tarball":"https://registry.npmjs.org/@aaromp/gatsby-source-ghost/-/gatsby-source-ghost-2.0.0.tgz","fileCount":20,"unpackedSize":27842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNDwTCRA9TVsSAnZWagAAftIQAIMyww4xKdVSyOnFtNyQ\n6JrWjhwkRa/b9VHr+29Izbb5y0BmjwPAzsmjsWd4zzFxmK6N7g940Rz6TeZW\npy2q6VMvMt5+GI4Pd2g5nyQ18YUDDfcgskfvsCdgUbBf30uLCAMcRw06uNJF\ntF5b1t3EW7m7fuasTmOrwxUwznG+ZbWGUIDzt7y1h9yYYcbPxWsQHLGPJ3iH\nBnVI5DSDHtWQH8gojPe0f3QghV4L/HmGFXnQngy1kkG7NizmjSpGr/k067Jk\nPbuTUSRLwBTfK+fRmNyBUcU+PctWbOO3/gQyhOfoo4978nViy0uj7s96wqP/\nCGQpjwRI45V4akCQMynpyZSpRTnAo6Kbrcy1e5qFLpppLIIEIgqBaDHLRUwe\n24SERU7974omFwwAxV4+hK7Mns+M4Pjn66SBqhXFowoL6oOd2YGcGC2pTP6v\nIXo/oSuWnHi7MJMdOtpBBN/LPHoTUadK1RJ7oWdRMnLBQmJRLDIAakI+il52\n9qS4XPkLeuLFAzMNaobLGKt4/F7ZtMyhsxzC32vK5XM/dLzGcCvwF0qbJPlZ\n/vdjlBZ3CvBuSUaqeUAPpGPWksSw6NHIA3p+7wx3wA4a+8S3DJxyaHGB8GgB\n3IIenrrdFp3Djn9EsthYr2ZEVzNeQ9gEKqS8AHB9AS5jCBsLAcZbyGjO28G0\n06KR\r\n=saHO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLMDP6j0FWUzfLiaWA3EBtQevtlF8n3jvqRC7kW8mhagIgKET5xOfW2rakZbDR0iPT1NEjlG6D1ruJY0APzgEGtgo="}]},"maintainers":[{"name":"aaromp","email":"aaron.wa@gmail.com"}],"_npmUser":{"name":"aaromp","email":"aaron.wa@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-ghost_2.0.0_1597258770679_0.5148515517565677"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-12T05:56:45.124Z","1.0.0":"2020-08-12T05:56:45.294Z","modified":"2022-04-04T10:55:31.988Z","1.0.1":"2020-08-12T06:47:29.372Z","2.0.0":"2020-08-12T18:59:30.825Z"},"maintainers":[{"name":"aaromp","email":"aaron.wa@gmail.com"}],"description":"Gatsby source plugin for building websites using the Ghost API as a data source.","homepage":"https://github.com/aaromp/gatsby-source-ghost#readme","keywords":["gatsby","ghost","gatsby-plugin","gatsby-source-plugin"],"repository":{"type":"git","url":"git+ssh://git@github.com/aaromp/gatsby-source-ghost.git"},"author":{"name":"Ghost Foundation"},"bugs":{"url":"https://github.com/aaromp/gatsby-source-ghost/issues"},"license":"MIT","readme":"# Gatsby Source Ghost\n\nSource plugin for pulling data into [Gatsby.js](https://www.gatsbyjs.org/) from [Ghost](https://ghost.org), using the Ghost [Content API](https://docs.ghost.org/api/content/).\n\n* **Demo:** https://gatsby.ghost.org\n* **Gatsby Starter** https://github.com/TryGhost/gatsby-starter-ghost\n* **Documentation:** https://docs.ghost.org/api/gatsby/\n\n\n## Install\n\n`yarn add gatsby-source-ghost`\n\n`npm install --save gatsby-source-ghost`\n\n## How to use\n\nPlugin configuration for `gatsby-config.js`:\n\n```\n{\n   resolve: `gatsby-source-ghost`,\n   options: {\n       apiUrl: `https://<your-subdomain>.ghost.io`,\n       contentApiKey: `<your content api key>`,\n       version: `v3` // Ghost API version, optional, defaults to \"v3\".\n                     // Pass in \"v2\" if your Ghost install is not on 3.0 yet!!!\n   }\n}\n```\n\n`apiUrl`\n Ghost Content API URL - for Ghost(Pro) customers this is your `.ghost.io` domain, it’s the same URL used to view the admin panel, but without the `/ghost` subdirectory. This should be served over https.\n\n`contentApiKey`\nThe \"Content API Key\" copied from the \"Integrations\" screen in Ghost Admin.\n\nIf you want to keep these values private (if your site is not public) you can do so using [environment variables](https://www.gatsbyjs.org/docs/environment-variables/).\n\n## How to query\n\nThere are 5 node types available from Ghost: Post, Page, Author, Tag, and Settings.\n\nDocumentation for the full set of fields made available for each resource type can be\nfound in the [Content API docs](https://docs.ghost.org/api/content/). Posts and Pages have the same properties.\n\n**Example Post Query**\n\n```\n{\n  allGhostPost(sort: { order: DESC, fields: [published_at] }) {\n    edges {\n      node {\n        id\n        slug\n        title\n        html\n        published_at\n        ...\n        tags {\n          id\n          slug\n          ...\n        }\n        primary_tag {\n          id\n          slug\n          ...\n        }\n        authors {\n          id\n          slug\n          ...\n        }\n      }\n    }\n  }\n}\n```\n\n**Filter Posts by Tag**\n\nA common but tricky example of filtering posts by tag, can be achieved like this (Gatsby v2+):\n\n```\n{\n  allGhostPost(filter: {tags: {elemMatch: {slug: {eq: $slug}}}}) {\n    edges {\n      node {\n        slug\n        ...\n      }\n    }\n  }\n}\n```\n\n**Query Settings**\n\nThe settings node is different as there's only one object, and it has the properties [listed here](https://docs.ghost.org/api/content/#settings).\n\n```\n{\n  allGhostSettings {\n    edges {\n      node {\n        title\n        description\n        lang\n        ...\n        navigation {\n            label\n            url\n        }\n      }\n    }\n  }\n}\n```\n\n**Query Other Node Types**\n\nThe Post, Page, Author and Tag nodes all work the same. Use the node type you need in this query:\n\n\n```\n{\n  allGhost${NodeType} {\n    edges {\n      node {\n        id\n        slug\n        ...\n      }\n    }\n  }\n}\n```\n\n\n\n# Copyright & License\n\nCopyright (c) 2013-2020 Ghost Foundation - Released under the [MIT license](LICENSE).\n","readmeFilename":"README.md"}