Ghost/core/server/apps/amp/tests
Aileen Nowak 2f3081fa9f Make AMP optional (#7830)
closes #7769

Because Google AMP is bitching around and shows errors in Googles' webmaster tools for missing post images and blog icons, we decided to make AMP optional. It will be enabled by default, but can be disabled in general settings. Once disabled, the `amp` route doesn't work anymore.

This PR contains the back end changes for Ghost-alpha:
- Adds `amp` to settings table incl default setting `true`
- Adds `amp` value to our settings cache
- Changes the route handling of AMP app to check for the `amp` setting first.
- Adds tests to check the route handling and ghost_head output
- Includes changes to `post-lookup.js` as done by @kirrg001 in #7842
2017-01-17 16:40:06 +01:00
..
amp_components_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
amp_content_spec.js ⬆️ 🚨 Update Amperize dep and fix test (#7374) 2016-09-14 12:30:37 +01:00
router_spec.js Make AMP optional (#7830) 2017-01-17 16:40:06 +01:00