0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/unit/middleware
Aileen Nowak d2f2888da0 Favicon URI (#7700)
closes #7688

- Use `/favicon.ico` and `/favicon.png` in blog app. Depending on type of storage (custom upload = local file storage), serves either from storage adapter with `read()` method or reads the bytes via `fs`.
- Redirects requests for `favicon.ico` to `favicon.png` if custom `png` icon is uploaded and vice versa.
- Redirect requests for `favicon.png` to `favicon.ico` if default icon is used (in `core/shared`).
- Changes the `{{asset}}` helper for favicon to not serve from theme assets anymore. It will either be served the custom blog-icon or the default one.
- The `{{@blog.icon}}` helper renders the url of the **uploaded** blog icon. It won't render the default icon.
2017-01-26 18:01:19 +00:00
..
api Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
cache-control_spec.js 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
check-ssl_spec.js 🎉 🎨 Remove middleware/index.js (#7548) 2016-10-13 17:24:09 +02:00
ghost-locals_spec.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
redirect-to-setup_spec.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
serve-favicon_spec.js Favicon URI (#7700) 2017-01-26 18:01:19 +00:00
serve-shared-file_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
static-theme_spec.js allow manifest.json in theme root (#6986) 2016-06-29 14:44:01 -06:00
theme-handler_spec.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
uncapitalise_spec.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00