9a0415d3ff
GhostPost and GhostPage are copies of each other: they conditionally render depending on whether the path matches a post or page. The reason for this workaround is that, otherwise, the router would show a 404 for non-matching posts even when a matching page existed, since they both lie under the same path. |
||
---|---|---|
data | ||
src | ||
.gitignore | ||
gridsome.config.js | ||
LICENSE | ||
netlify.toml | ||
package.json | ||
README.md | ||
sample-env | ||
yarn.lock |
This is the source code for the upcoming Snipette website, build with Ghost and Gridsome and using a customised version of Ghost's casper theme.
This project is based on Yashu Mittal's Gridsome Starter Casper project and adapted to pull data via Ghost's API instead of through Markdown files. We'll be updating it to suit our needs, but feel free to clone it for your own use. (Just use your own posts instead of copying ours 😉)
Deploy
To deploy the website, click the deploy button.
You will have to set the GHOST_API_URL
and GHOST_CONTENT_KEY
environment
variables. Alternatively, copy the contents of sample-env
to a file
named .env
(or .env.development
or .env.production
) and replace
the sample values with values from your own Ghost installation.
Donate
This project relies heavily on the original Gridsome Starter Casper project. If you like it, you can support development of that project by using the button below:
If you like Snipette and want to support the magazine itself, please check out our Liberapay profile or contact us through social media for more!