Remove favicons from the environment.
It's hard to assume people will have those setup correctly from the beginning. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
0a81eb2f9b
commit
444a66a192
@ -16,7 +16,6 @@ Before creating the site, Netlify will ask you to fill required environment vari
|
|||||||
- `STATUSKIT_COMPANY_LOGO` - URL to your company's logo.
|
- `STATUSKIT_COMPANY_LOGO` - URL to your company's logo.
|
||||||
- `STATUSKIT_SUPPORT_CONTACT_LINK` - URL to a support page for your users to talk with you.
|
- `STATUSKIT_SUPPORT_CONTACT_LINK` - URL to a support page for your users to talk with you.
|
||||||
- `STATUSKIT_RESOURCES_LINK` - URL to documentation for your users.
|
- `STATUSKIT_RESOURCES_LINK` - URL to documentation for your users.
|
||||||
- `STATUSKIT_FAVICONS_PATH` - Path where the favicons for different statuses are. By default, we use `/images/favicon/favicon-ok.ico` when there are no incidents, `/images/favicon/favicon-warning.ico` when there are no major incidents, and `/images/favicon/favicon-danger.ico` when there are major incidents. This path can be an external URL, like `https://my-favourite-cdn/images/status-favicons`. The names for the different statuses must be `favicon-ok.ico`, `favicon-warning.ico` and `favicon-danger.ico`.
|
|
||||||
|
|
||||||
## Extra configuration
|
## Extra configuration
|
||||||
|
|
||||||
|
@ -10,4 +10,3 @@
|
|||||||
STATUSKIT_COMPANY_LOGO = "url to your company's logo"
|
STATUSKIT_COMPANY_LOGO = "url to your company's logo"
|
||||||
STATUSKIT_SUPPORT_CONTACT_LINK = "url to your support page"
|
STATUSKIT_SUPPORT_CONTACT_LINK = "url to your support page"
|
||||||
STATUSKIT_RESOURCES_LINK = "url to your knowledge base page"
|
STATUSKIT_RESOURCES_LINK = "url to your knowledge base page"
|
||||||
STATUSKIT_FAVICONS_PATH = "/images/favicons/"
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
{{ $title := getenv "STATUSKIT_PAGE_TITLE" | default .Site.Title }}
|
{{ $title := getenv "STATUSKIT_PAGE_TITLE" | default .Site.Title }}
|
||||||
{{ $resources := getenv "STATUSKIT_RESOURCES_LINK" | default .Site.Params.resourcesLink }}
|
{{ $resources := getenv "STATUSKIT_RESOURCES_LINK" | default .Site.Params.resourcesLink }}
|
||||||
{{ $contact := getenv "STATUSKIT_SUPPORT_CONTACT_LINK" | default .Site.Params.contactLink }}
|
{{ $contact := getenv "STATUSKIT_SUPPORT_CONTACT_LINK" | default .Site.Params.contactLink }}
|
||||||
{{ $favicons := getenv "STATUSKIT_FAVICONS_PATH" | default .Site.Params.faviconsPath }}
|
|
||||||
|
|
||||||
{{ $incidents := where .Site.Pages.ByDate.Reverse "Section" "incidents" }}
|
{{ $incidents := where .Site.Pages.ByDate.Reverse "Section" "incidents" }}
|
||||||
{{ $active := where $incidents "Params.resolved" "!=" true }}
|
{{ $active := where $incidents "Params.resolved" "!=" true }}
|
||||||
|
Loading…
Reference in New Issue
Block a user