{"_id":"@alexs7/eleventy-plugin-ghost","_rev":"2-2ab89b60398e3ed13fc550ee365a4cda","name":"@alexs7/eleventy-plugin-ghost","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alexs7/eleventy-plugin-ghost","version":"1.0.0","description":"Access the Ghost Content API in Eleventy 👻🎛","homepage":"https://github.com/Alexs7zzh/eleventy-plugin-ghost","main":".eleventy.js","scripts":{"build":"eleventy"},"repository":{"type":"git","url":"git+https://github.com/Alexs7zzh/eleventy-plugin-ghost.git"},"keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin","ghost","ghost-api","headless-cms"],"author":{"name":"Alex Zhou"},"license":"ISC","dependencies":{"@11ty/eleventy-cache-assets":"^2.3.0"},"peerDependencies":{"@11ty/eleventy":"1.x"},"gitHead":"4911ad5ae2632e5fb4a7f9dbd88a7042b7e6e7d6","bugs":{"url":"https://github.com/Alexs7zzh/eleventy-plugin-ghost/issues"},"_id":"@alexs7/eleventy-plugin-ghost@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.1","dist":{"integrity":"sha512-xcg1uqlYGUaZqJYNT/PCInemkT+TxTHzLadA+QQCZDmoRO9Nbycotxh+ctJs2cUIdejdjlMkkclLdibwwig0+Q==","shasum":"69414a856a663330a6a4538ebff1f760fa936ab4","tarball":"https://registry.npmjs.org/@alexs7/eleventy-plugin-ghost/-/eleventy-plugin-ghost-1.0.0.tgz","fileCount":3,"unpackedSize":9017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7peFCRA9TVsSAnZWagAAq1MP/iunjFwd0diSKDb9fFaZ\nrZ8ftEbW46C1HoDzQMQQUgNnR+8ix9XNtkfxcp9hInakDhVO8SD1BVJ96vQI\nJ4pP9OvHKusPwE/HUn1FbM31ZGWpd2DU8VLttRwMyI9TP3RKwkO+YXhwfy5R\ner9eiJzJro3Ia+vXsQX+HaMOZmnUcWM0YMohnff+NEvyivENztq2cf+3r3EY\n6pWyvL1tpqGcbUIG4K8dMaTgNrXM1BFUGkfkZTM0G2CyEIzLvlEKqOZoY2Ab\nEFm3N6enGsGgrg5OC0OZ46gUT9J8sINQO3v28QbZi+l7W44inKQcN5YZc8OG\nfQZ4Qs5ORek0wUtM2Hr+dVOVMbY7hAN+dZOXwcURiUxJJgsl2/srrGWLSRy6\njRBv27aLoI8WBw4GVsNtH4cRCD4VFfrRrc8e4lmYLUkciUxeCRj+RYa0y/Mr\nlPruwREjLCO9u/nlUtfuDBW5GNCHy4cHRNBgUXQXJ8LIgtPVBv+XDWVa55Wc\nmgRVhgVk+mGStsVZPnyKUhoctyyzW7DQcJ39tJBQB44W3Gm2MTBIKXchj7Mg\neOAB0PMXGsiEAHzoiX0sDMMPVOKNoSrZi3ytTKxwdguPLVBuuhAz6BUryfU3\nNrxEiYHzE+haT1ELHIjnwlT0EQSzv5dAjeZlwFXhUc0we8ih/k6CHqB5GFUY\nhksx\r\n=yt1H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCi0fC+8t1tGkwCzVEIgp4qQ9FdA6ODLWwKrUiAJLx9BgIhAL7Bf76iGBcBqNVa0o4u2DSU6E1b+TiMPisTeaDyVKsF"}]},"_npmUser":{"name":"alexs7","email":"alex.zzh.s7@gmail.com"},"directories":{},"maintainers":[{"name":"alexs7","email":"alex.zzh.s7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-ghost_1.0.0_1643026309234_0.47140258895388065"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alexs7/eleventy-plugin-ghost","version":"1.0.1","description":"Access the Ghost Content API in Eleventy 👻🎛","homepage":"https://github.com/Alexs7zzh/eleventy-plugin-ghost","main":".eleventy.js","scripts":{"build":"eleventy"},"repository":{"type":"git","url":"git+https://github.com/Alexs7zzh/eleventy-plugin-ghost.git"},"keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin","ghost","ghost-api","headless-cms"],"author":{"name":"Alex Zhou"},"license":"ISC","dependencies":{"@11ty/eleventy-cache-assets":"^2.3.0"},"peerDependencies":{"@11ty/eleventy":"1.x"},"gitHead":"b906de2d5fa65b871009ddfe50d194690e890ea6","bugs":{"url":"https://github.com/Alexs7zzh/eleventy-plugin-ghost/issues"},"_id":"@alexs7/eleventy-plugin-ghost@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.3.1","dist":{"integrity":"sha512-hu7JNmVYKXvTpuMZbZGHSLGFa7hlsYu/OksE3Q+2cDWtkKfRYuH9YZBSUeG9KsN8TsMbK4ll+txtFGG8u8s0yw==","shasum":"0bc1316fc740b3020c156bc6c8f3e9582cc21179","tarball":"https://registry.npmjs.org/@alexs7/eleventy-plugin-ghost/-/eleventy-plugin-ghost-1.0.1.tgz","fileCount":3,"unpackedSize":4741,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7pmVCRA9TVsSAnZWagAAai0P/1rR/yIGjVkRtMcNe79L\nhNAaNrH99U3Rlukol8+91JGCUGRPmBitn+2LUhTuyX8YsP5mGkQtzVwd3yVq\n1khHaUnbTXasKqyXS3I4GoocCaRq0gOwFh3/jboePn30Apz7jeg/yBKfn1v4\nfBsi3GkM9mHHN4sYfci8A97g4ftqfc1UGPiGY0FyQE6tXLAOSczqStCAxe3a\n8xLbMEO7BAgASZbuMDraDLQNynU1LNz4TmrFEXpTKARDIweqQA/sjOis5XdX\nWNrNKWaetZFPrImQXrHgQlR8gsN++Ou9iZOD3XSO0YrP1EZrahB7G6MVger3\n0G3hAHjdDVXijZCKa5NqpcADh5Rct4/yXm1znukejD6uwHbpa37Ym2lHEvw5\nMUMpYkuXRv+guInmvXQM3gbb0ALQbmkH6Qcr3kAisXDaTchbLy8OZV1OMsBd\nmmd4KqY0sjiysSJEJ1KuWf+pMuO03o38C1fYM76ITAX206pm2B8ws9eHPpgp\nWV+26HNPOICWRQncAZusRy6gmpw0Ir3p3RumHRuwVLptBKEHLApLYpueHyT0\nkUkKIm9kahxWX6JBUdD7SLruNywXnRzNWt8N9ftY/ydaXwaX0+z/9W6Bht89\nqP3hwjvcK7hBColVyr9nbfhKG+Ny3WN2B35LzLkkcwUueDux63HYEJi5jpRw\neFi5\r\n=yxl/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgzpo0s/YGE9a0ijCQ0Ddy9V+jGc54gWGDjcR5thVdxQIgAzkgPPpocuuLb9OuZrbYxhl7aymTGAS9jX+QRvz61GM="}]},"_npmUser":{"name":"alexs7","email":"alex.zzh.s7@gmail.com"},"directories":{},"maintainers":[{"name":"alexs7","email":"alex.zzh.s7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-ghost_1.0.1_1643026837547_0.03405096266753893"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-24T12:11:49.174Z","1.0.0":"2022-01-24T12:11:49.359Z","modified":"2022-04-04T12:41:32.135Z","1.0.1":"2022-01-24T12:20:37.668Z"},"maintainers":[{"name":"alexs7","email":"alex.zzh.s7@gmail.com"}],"description":"Access the Ghost Content API in Eleventy 👻🎛","homepage":"https://github.com/Alexs7zzh/eleventy-plugin-ghost","keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin","ghost","ghost-api","headless-cms"],"repository":{"type":"git","url":"git+https://github.com/Alexs7zzh/eleventy-plugin-ghost.git"},"author":{"name":"Alex Zhou"},"bugs":{"url":"https://github.com/Alexs7zzh/eleventy-plugin-ghost/issues"},"license":"ISC","readme":"# eleventy-plugin-ghost\n\nImport your [Ghost](https://ghost.org) content directly into [Eleventy](https://github.com/11ty/eleventy) as global data.\n\n## Installation\n\n1. Install plugin using npm:\n\n   ```\n   npm install @alexs7/eleventy-plugin-ghost\n   ```\n\n2. Add plugin to your `.eleventy.js` config, ensuring to add your Ghost url and Content API key. Check out the Ghost docs for [how to create a Content API key](http://www.ghost.org/docs/content-api/):\n\n   ```js\n   const pluginGhost = require(\"eleventy-plugin-ghost\");\n\n   require(\"dotenv\").config();\n   const { GHOST_URL, GHOST_KEY } = process.env;\n\n   module.exports = eleventyConfig => {\n     eleventyConfig.addPlugin(pluginGhost, {\n      url: GHOST_URL,\n      key: GHOST_KEY,\n      cache: process.env.DEV\n     });\n   };\n   ```\n\n   The example above is using `dotenv` with a `.env` file to ensure credentials are **not** stored in the source code. Here's an example of the `.env` file:\n\n   ```text\n   GHOST_URL=https://demo.ghost.io\n   GHOST_KEY=22444f78447824223cefc48062\n   ```\n\n3. Run your Eleventy project and use the global `ghost` data variable to access `posts`, `pages`, `tags`, `authors` and `settings`.\n\nThe API will default to the latest version, which is `v4` presently. However passing `version` into the plugin options will set the version returned, as shown in the above code sample.\n\n## Usage\n\nAfter installing and running you'll be provided with a global `ghost` key, which gives you access to the following:\n\n- `ghost.posts`: An array of all posts in Ghost, including their tags and authors\n- `ghost.pages`: An array of all pages in Ghost\n- `ghost.tags`: An array of all tags in Ghost, including the number of posts within each tag but filtered to only contain public tags\n- `ghost.authors`: An array of all authors in Ghost, including the number of posts within each author\n- `ghost.settings`: All settings set in Ghost\n\nAll data is cached using [`@11ty/eleventy-cache-assets`](https://www.11ty.dev/docs/plugins/cache/) with a duration of 1 minute. This keeps the local builds fast while still inheriting newly applied content.\n","readmeFilename":"README.md"}