code for upcoming Snipette website https://snipettemag.com
Find a file
Badri Sunderarajan abdaff4a7f Update PreviousNext when navigating to a new page
Earlier, it was just computing it once and then leaving it there
permanently. So you'd get "recommends" for the first post you
opened rather than the current one, unless you went to a non-post
page in the middle or reloaded the page.
2020-03-15 15:05:22 +05:30
data Enable and activate MailChimp support in subscribe form 2020-03-15 13:31:23 +05:30
src Update PreviousNext when navigating to a new page 2020-03-15 15:05:22 +05:30
.gitignore Add .env files and .geany projects to .gitignore 2019-12-18 19:29:00 +05:30
gridsome.config.js Create view for Pages 2019-12-24 13:38:50 +05:30
LICENSE Initial commit with Casper starter template 2019-12-05 17:16:27 +05:30
netlify.toml Initial commit with Casper starter template 2019-12-05 17:16:27 +05:30
package.json Implement "infinite scrolling" in the homepage! 2020-03-09 19:31:46 +05:30
README.md Update README 2019-12-19 19:23:41 +05:30
sample-env Add sample .env file 2019-12-18 19:28:14 +05:30
yarn.lock Implement "infinite scrolling" in the homepage! 2020-03-09 19:31:46 +05:30

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.

Deploy to Netlify

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:

Become a Patron

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!