juusaw / amp-jekyll

Build Accelerated Mobile Page versions of your Jekyll posts
MIT License
281 stars 59 forks source link

Allows for skipping the generation of some pages #13

Closed tosbourn closed 7 years ago

tosbourn commented 7 years ago

An issue I and I am sure many others have experienced is that some posts just don't make good AMP pages.

If your post requires certain elements to be present on a page or for particular CSS/JavaScript to be used there is little that can be done to make it a workable AMP page.

This PR updates the README to explain how you can skip posts, and adds one line of code that will stop these marked pages from being generated.

I could have made the one line more concise by removing the == true but I wanted it to only happen on the actual true value, not just any truthy value.

Any questions or concerns let me know 😄

juusaw commented 7 years ago

Nice!

This is indeed a good feature to have. The code and documentation looks really good. I'll merge this immediately.

Thanks!