0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/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 🎨 optimisations for brute (#7867) 2017-01-23 22:44:39 +01:00
validation Blog icon validations (#7893) 2017-01-26 10:01:52 +01:00
brute.js 🎨 optimisations for brute (#7867) 2017-01-23 22:44:39 +01:00
cache-control.js
check-ssl.js More consistant usage of urlFor('home') (#7689) 2017-01-23 09:22:37 +01:00
error-handler.js 🎨 error improvements (#7600) 2016-10-21 13:10:17 +01:00
ghost-locals.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
labs.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
log-request.js chore(package): update uuid to version 3.0.0 (#7742) 2017-01-04 17:10:29 +01:00
maintenance.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
pretty-urls.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
redirect-to-setup.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
serve-favicon.js Favicon URI (#7700) 2017-01-26 18:01:19 +00:00
serve-shared-file.js More consistant usage of urlFor('home') (#7689) 2017-01-23 09:22:37 +01:00
static-theme.js Fixed caching of theme in development mode. (#7812) (#7857) 2017-01-25 15:10:46 +01:00
theme-handler.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
uncapitalise.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00