0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/config
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
..
env Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
defaults.json Replace memory spam prevention with brute-express (#7579) 2016-11-08 12:33:19 +01:00
index.js 🎨 make sqlite filename absolute (#7585) 2016-10-18 09:04:44 +01:00
overrides.json Favicon URI (#7700) 2017-01-26 18:01:19 +00:00
utils.js 🎨 logging improvements (#7597) 2016-10-25 12:17:43 +01:00