Gatsby starter for creating a blog
Switch branches/tags
Clone or download
Pull request Compare This branch is 5 commits ahead, 181 commits behind gatsbyjs:master.
Chiedo
Chiedo gatbsy 1.0
Latest commit 9d68151 Jul 18, 2017

README.md

gatsby-amp-starter-blog

A gatsby v1 starter for creating an AMP compliant blog.

For a gatsby v0 version, see this version.

Obviously you will want to invest more time on css/amponly.scss on your project to add more needed styling

Not sure what Amp is? Learn about Project AMP.

Running in development

npm run develop

Building for production

To create a production build, run yarn run build

The build will output to the public directory and that directory will contain an amp directory which has the amp version of your site.

You can then spin up a web server using MAMP or your tool of choice locally that points to your public directory. And test that your site is AMP compliant using this Chrome Extension

Requirements

  • Every image must have an image and width so image tags must be added to markdown as html tags. Img tags haven't been switched out in this example but the change is trivial.