mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
d2f2888da0
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.
73 lines
2.4 KiB
JSON
73 lines
2.4 KiB
JSON
{
|
|
"paths": {
|
|
"appRoot": ".",
|
|
"corePath": "core/",
|
|
"clientAssets": "core/built/assets",
|
|
"imagesRelPath": "content/images",
|
|
"helperTemplates": "core/server/helpers/tpl/",
|
|
"adminViews": "core/server/views/",
|
|
"internalAppPath": "core/server/apps/",
|
|
"internalStoragePath": "core/server/storage/",
|
|
"internalSchedulingPath": "core/server/scheduling/",
|
|
"migrationPath": "core/server/data/migrations"
|
|
},
|
|
"internalApps": [
|
|
"private-blogging",
|
|
"subscribers",
|
|
"amp"
|
|
],
|
|
"routeKeywords": {
|
|
"tag": "tag",
|
|
"author": "author",
|
|
"page": "page",
|
|
"preview": "p",
|
|
"private": "private",
|
|
"subscribe": "subscribe",
|
|
"amp": "amp"
|
|
},
|
|
"slugs": {
|
|
"reserved": ["admin", "app", "apps", "archive", "archives", "categories",
|
|
"category", "dashboard", "feed", "ghost-admin", "login", "logout",
|
|
"page", "pages", "post", "posts", "public", "register", "setup",
|
|
"signin", "signout", "signup", "user", "users", "wp-admin", "wp-login"],
|
|
"protected": ["ghost", "rss", "amp"]
|
|
},
|
|
"uploads": {
|
|
"subscribers": {
|
|
"extensions": [".csv"],
|
|
"contentTypes": ["text/csv", "application/csv", "application/octet-stream"]
|
|
},
|
|
"images": {
|
|
"extensions": [".jpg", ".jpeg", ".gif", ".png", ".svg", ".svgz"],
|
|
"contentTypes": ["image/jpeg", "image/png", "image/gif", "image/svg+xml"]
|
|
},
|
|
"icons": {
|
|
"extensions": [".png", ".ico"],
|
|
"contentTypes": ["image/png", "image/x-icon", "image/vnd.microsoft.icon"]
|
|
},
|
|
"db": {
|
|
"extensions": [".json", ".zip"],
|
|
"contentTypes": ["application/octet-stream", "application/json", "application/zip", "application/x-zip-compressed"]
|
|
},
|
|
"themes": {
|
|
"extensions": [".zip"],
|
|
"contentTypes": ["application/zip", "application/x-zip-compressed", "application/octet-stream"]
|
|
}
|
|
},
|
|
"storage": {
|
|
"active": {
|
|
"themes": "local-file-store"
|
|
}
|
|
},
|
|
"times": {
|
|
"cannotScheduleAPostBeforeInMinutes": 2,
|
|
"publishAPostBySchedulerToleranceInMinutes": 2
|
|
},
|
|
"theme": {
|
|
"timezone": "Etc/UTC"
|
|
},
|
|
"maintenance": {
|
|
"enabled": false
|
|
}
|
|
}
|