0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core/test/unit
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
..
api 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
auth Fix brute for token exchanges (#7725) 2016-11-17 14:02:56 +01:00
config 🎨 make sqlite filename absolute (#7585) 2016-10-18 09:04:44 +01:00
controllers/frontend Make AMP optional (#7830) 2017-01-17 16:40:06 +01:00
logging 🎨 logging improvements (#7597) 2016-10-25 12:17:43 +01:00
mail 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
metadata 🎨 escape sameAs for structured data (#7833) 2017-01-10 12:21:37 +00:00
middleware Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
models/base improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
models_plugins change default order of posts (#7096) 2016-07-15 11:04:10 +01:00
scheduling Error creation (#7477) 2016-10-06 13:27:35 +01:00
server_helpers Make AMP optional (#7830) 2017-01-17 16:40:06 +01:00
sitemap 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
storage add read method to local file storage 2016-11-09 11:31:56 +01:00
utils chore(package): update uuid to version 3.0.0 (#7742) 2017-01-04 17:10:29 +01:00
api_utils_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
apps_filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
apps_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
errors_spec.js small error improvements 2016-11-09 09:22:33 +01:00
exporter_spec.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
filters_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_url_spec.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
importer_spec.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
migration_fixture_utils_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
migration_spec.js knex-migrator v2 (#7605) 2016-11-07 11:39:49 +00:00
permissions_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
rss_spec.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
server_helpers_index_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_helpers_template_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
server_spec.js 🎨 make settings cache available (#7692) 2016-11-08 13:37:19 +00:00
server_utils_spec.js 🎨 change gravatar file design (#7553) 2016-10-13 13:52:22 +01:00
showdown_client_integrated_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
slack_spec.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
social-urls_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
utils_pipeline_spec.js Update mocha to version 3.0.2 🚀 (#7165) 2016-08-11 08:51:19 +01:00
validation_spec.js 🔑 Update Validator to 6.2.1 (#7823) 2017-01-10 13:05:25 +01:00
versioning_spec.js migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00
xmlrpc_spec.js 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00