Ghost/core/server/controllers/frontend
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
..
channel-config.js 💄 Improve URL consistency, Part 1: urlJoin (#7668) 2016-11-14 14:38:55 +00:00
channels.js 💄 Improve URL consistency, Part 1: urlJoin (#7668) 2016-11-14 14:38:55 +00:00
context.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
error.js Split helper functions from frontend controller 2015-10-22 18:46:58 +01:00
fetch-data.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
format-response.js Switch frontend controller to use new filter param 2015-10-26 09:40:19 +00:00
index.js Make AMP optional (#7830) 2017-01-17 16:40:06 +01:00
post-lookup.js Make AMP optional (#7830) 2017-01-17 16:40:06 +01:00
render-channel.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
secure.js Split helper functions from frontend controller 2015-10-22 18:46:58 +01:00
templates.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00